How can I detect the player's light level?

Started by DeXus18 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I detect the player's light level?

I need help from the most experienced people at Mcreator, I need to make an entity generate at a specific light level, right where the player is, (for example in a cave), please help :(

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There's a function that…
Thu, 10/12/2023 - 21:50

There's a function that checks the light level at a specific block. You can check for the light level at the player's x/y/z position using this function. Should be in the world data tab.

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you very much I'm…
Fri, 10/13/2023 - 02:16

thank you very much I'm going to try it :D