Started by
HectorsitoXD
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, I am trying to make a block that acts as the vanilla block "farmland" and I amb struggling to make it convert into dirt when an entity jumps on it. I can't use the trigger "Entity jumps" cause that makes the block change at the moment the player starts jumping, and I need that to happen when the player lands on the crop. Is there any way to make it? Thanks.
The 'entity falls' trigger seems to work whenever an entity lands, not just if they take fall damage. (At least it did in 2023.2, I haven't checked since.) Worth a try- otherwise you could use a procedure that triggers on entity update tick, and checks if the entity is both not on solid ground, has negative y velocity, and has your custom block, say, 0.3 meters below them. (and is thus about to land on your block.)
This is not working for me :( Am I doing something wrong?
Oh it seems it had to do with coordinates, the block is not fully height so that was the problem, thank you :D