Jump to content

SirBlobman

Members
  • Posts

    4
  • Joined

Everything posted by SirBlobman

  1. Try changing the "type" to "minecraft:crafting_shaped" I had this issue until I figured it out Example: { "type": "minecraft:crafting_shaped", "group": "minecraft:slime", "pattern": [ "###", "###", "###" ], "key": { "#": { "item": "blobman:blue_slimeball" } }, "result": { "item": "blobman:blue_slime" } }
  2. I use this code and registered the Event but the fog is always white! public class SwimFog { @SubscribeEvent public void playerSwim(FogColors e) { Entity ent = e.getEntity(); World w = ent.getEntityWorld(); BlockPos pos = ent.getPosition(); IBlockState bs = w.getBlockState(pos); Block b = bs.getBlock(); if(b.equals(GFluids.amethyst.getBlock())) { int red = 80, green = 13, blue = 147; e.setRed(red); e.setGreen(green); e.setBlue(blue); } } @SubscribeEvent public void playerSwim(FogDensity e) { e.setCanceled(true); Entity ent = e.getEntity(); World w = ent.getEntityWorld(); BlockPos pos = ent.getPosition(); IBlockState bs = w.getBlockState(pos); Block b = bs.getBlock(); if(b.equals(GFluids.amethyst.getBlock())) { float alpha = 234.0F; e.setDensity(alpha/100.0F); } } }
  3. Thank you, I will try this later and update if it doesn't work
  4. I have successfully create a new Fluid and registered its Block I am wondering if there is a way to get the Fluid to render purple when you swim in it As of right now, it just renders the same as lava. Do I have to use ASM or is there a better way Using Forge 1.10.2 12.18.1.2044 I have searched Google and this forum, but I couldn't find anything
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.