Trampling farmland block

Started by HectorsitoXD on

Topic category: Help with modding (Java Edition)

Last seen on 12:56, 3. Jan 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Trampling farmland block

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.

Last seen on 18:01, 13. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The 'entity falls' trigger…
Fri, 12/29/2023 - 13:08

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.)

Last seen on 12:56, 3. Jan 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is not working for me :…
Fri, 12/29/2023 - 21:24

This is not working for me :( Am I doing something wrong?

This is not working for me :( Am I doing something wrong?

Last seen on 12:56, 3. Jan 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh it seems it had to do…
Fri, 12/29/2023 - 21:27

Oh it seems it had to do with coordinates, the block is not fully height so that was the problem, thank you :D