Skip to content

Instantly share code, notes, and snippets.

@PrincessOfEvil
Created October 10, 2017 08:59
Show Gist options
  • Save PrincessOfEvil/d52f5e047deac3f94908d2f1ea7d133a to your computer and use it in GitHub Desktop.
Save PrincessOfEvil/d52f5e047deac3f94908d2f1ea7d133a to your computer and use it in GitHub Desktop.
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