Posted June 28, 20178 yr How to place invisible glowing block without collision at defined location? Something like invisible torch?
June 28, 20178 yr I have implemented an invisible light block in my mod, you can see it here. Overriding rayTrace to return null means the block has no collision box or wireframe highlight, and overriding getRenderType to return INVISIBLE means the block has no model. Get/set the light value in the same way as any other block (in mine I have the light value as a changeable property of the block which is stored in the state, but for a constant light level that's not necessary). Place the block in the world in the same way as any other, using World#setBlockState.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.