Jump to content

ClientCrash

Members
  • Posts

    2
  • Joined

  • Last visited

ClientCrash's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. public class GreenIceBlockEntity extends BlockEntity { public GreenIceBlockEntity(BlockPos pos, BlockState state) { super(ModBlockEntitys.GREENICE.get(), pos, state); } public void tick(Level level, BlockPos pos, BlockState state, GreenIceBlockEntity blockEntity){ int l = level.getBrightness(LightLayer.BLOCK,pos); System.out.println(l); } }
  2. I wanted to make a block that melts like ice. I use the tick method in the BlockEntity to periodically check the light level. However level.getBrightness(LightLayer.BLOCK,pos); always returns 0.
×
×
  • Create New...

Important Information

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