How can I detect the player's light level?

Started by DeXus18 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Oct 2023
Points:
169

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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 :(

Active 2 days ago
Joined May 2022
Points:
1255

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
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.

Active 1 year ago
Joined Oct 2023
Points:
169

User statistics:

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

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