Started by
ImmenseFlame
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
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.