Created
July 16, 2017 05:30
-
-
Save tterrag1098/2bee6a3d1e3128508886f2e22de8175e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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