Posted August 30, 20241 yr I'm trying to make a block that lights up when you step on it and returns normal when you step off. I can get it to light up but can't find a way to detect when the player steps off. Is there a way to check that, maybe with a tile entity?
August 30, 20241 yr I was doing something similar (except the block grows tentacles and attacks you instead of lighting up) and I just scheduled a tick half a second later each time I detected the player standing on the block.
August 31, 20241 yr You can use either a ticking block entity or override tick in your block class. When the block ticks, check if there is a player on it and if there is, light it up, else de light it Edited August 31, 20241 yr by Xoroshio
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.