How do I make a block that only lights up when entities walk on it?

Started by ImmenseFlame on

Topic category: Help with modding (Java Edition)

Last seen on 02:58, 27. Dec 2023
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block that only lights up when entities walk on it?

Hello, I need help, I don't know if it is possible yet, but I kind of want a block that lights up only when entities or the player walks on it. I tried some things, but I don't know what procedure allows me to detect when the block isn't being touched, and the things I have tried to work around it don't work.

Last seen on 21:37, 28. Sep 2021
Joined Oct 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could have it to where…
Thu, 12/03/2020 - 18:00

You could have it to where if an entity steps on the block it sets off a very short timer that makes the block glow so when the an entity is on it they keep resetting the timer and when they step off the timer stops and so the block stops glowing.

Last seen on 01:55, 3. May 2023
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to create 2 blocks,…
Thu, 12/03/2020 - 21:27

You need to create 2 blocks, on and off, in the settings of the block that is lit, set the tick, the time after which it is to go out, then create two procedures, when the player will walk on the block (the off one), change it to the block on and the tick update procedure for the second block, which will replace with the previous block.