Posted January 22, 20241 yr What would the best way to make an entity emit light be? There doesn't seem to be a way similar to how light source blocks work
January 23, 20241 yr I think the standard approach is to create an invisible block which gives off light, and then automatically place that block down where they entity is.
January 26, 20241 yr this two methods in the entity renderer makes the entity visible in the dark but it dint light the surrounding blocks @Override protected int getBlockLightLevel(door_ghost2 ie, BlockPos pos) { return door_ghost2.fullBright ? 15 : super.getBlockLightLevel(ie, pos); } @Override protected int getSkyLightLevel(door_ghost2 ie, BlockPos pos) { return ie.level().getBrightness(LightLayer.SKY, pos); //return 15; } atomicstricker its doing something else than placing invisible non hitbox blocks coze his torch light works when you inside tall grass https://www.curseforge.com/minecraft/mc-mods/dynamic-lights Edited January 26, 20241 yr by perromercenary00
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.