Jump to content

[1.20.4] Best way to make an entity emit light?


DrNickenstein

Recommended Posts

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 by perromercenary00
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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