Skip to content

Instantly share code, notes, and snippets.

@tterrag1098
Created July 16, 2017 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tterrag1098/2bee6a3d1e3128508886f2e22de8175e to your computer and use it in GitHub Desktop.
Save tterrag1098/2bee6a3d1e3128508886f2e22de8175e to your computer and use it in GitHub Desktop.
NBTTagCompound testtag = new NBTTagCompound();
testtag.setString("group", "marble");
testtag.setTag("stack", new ItemStack(Items.DIAMOND_PICKAXE, 1, 100).serializeNBT());
FMLInterModComms.sendMessage(MOD_ID, IMC.ADD_VARIATION_2.toString(), testtag);
testtag = new NBTTagCompound();
testtag.setString("group", "marble");
testtag.setString("block", Blocks.WOOL.getRegistryName().toString());
FMLInterModComms.sendMessage(MOD_ID, IMC.ADD_VARIATION_2.toString(), testtag);
testtag = new NBTTagCompound();
testtag.setString("group", "marble");
testtag.setString("block", Blocks.WOOL.getRegistryName().toString());
testtag.setInteger("meta", Blocks.WOOL.getMetaFromState(Blocks.WOOL.getDefaultState().withProperty(BlockColored.COLOR, EnumDyeColor.BROWN)));
FMLInterModComms.sendMessage(MOD_ID, IMC.ADD_VARIATION_2.toString(), testtag);
testtag = new NBTTagCompound();
testtag.setString("group", "marble");
testtag.setTag("stack", new ItemStack(Items.REDSTONE).serializeNBT());
testtag.setString("block", Blocks.REDSTONE_WIRE.getRegistryName().toString());
FMLInterModComms.sendMessage(MOD_ID, IMC.ADD_VARIATION_2.toString(), testtag);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment