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

Started by ImmenseFlame on Thu, 12/03/2020 - 14:48

Topic category: Help with modding (Java Edition)

Last seen on 03:48, 10. Dec 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a block that only lights up when entities walk on it?
Thu, 12/03/2020 - 14:48

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 16:41, 9. Dec 2020
Joined Oct 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 11:52, 22. Jan 2021
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.