Created
October 10, 2017 08:59
-
-
Save PrincessOfEvil/d52f5e047deac3f94908d2f1ea7d133a to your computer and use it in GitHub Desktop.
This file contains 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
Fluid myFluid = new FluidColored("fluff", 0xFF00FF, new ResourceLocation("tconstruct:blocks/fluids/molten_metal"), new ResourceLocation("tconstruct:blocks/fluids/molten_metal_flow")); FluidRegistry.registerFluid(myFluid); FluidRegistry.addBucketForFluid(myFluid); | |
NBTTagList alloysTagList = new NBTTagList(); | |
NBTTagCompound fluid = new NBTTagCompound(); | |
fluid.setString("FluidName", "fluff"); | |
fluid.setInteger("Amount", 1000); | |
alloysTagList.appendTag(fluid); | |
fluid = new NBTTagCompound(); | |
fluid.setString("FluidName", "lava"); | |
fluid.setInteger("Amount", 1000); | |
alloysTagList.appendTag(fluid); | |
fluid = new NBTTagCompound(); | |
fluid.setString("FluidName", "iron"); | |
fluid.setInteger("Amount", 144); | |
alloysTagList.appendTag(fluid); | |
NBTTagCompound tag = new NBTTagCompound(); | |
tag.setString("ore", "Fluff"); | |
tag.setTag("alloy", alloysTagList); | |
tag.setString("fluid", myFluid.getName()); | |
FMLInterModComms.sendMessage("tconstruct", "integrateSmeltery", tag); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment