Walking mod

Started by papayachin123 on

Topic category: Help with modding (Java Edition)

Last seen on 21:27, 4. Mar 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Walking mod

I am trying to make a mod where the ground changes as you walk (the block beneath the player gets replaced by a magma block each tick so that the player can walk and only directly) beneath them will be the magma block. How would I go about doing this?

 

Last seen on 22:34, 11. Feb 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On player update tick, set…
Wed, 01/05/2022 - 02:21

On player update tick, set block at x, y - 1, z to magma block, (could be laggy)

If it is laggy, then create a global logic variable called blockSetTick, player lifetime, (because that way if it stops working you can kill urself) initial value = true, then create a procedure as follows: On player tick update, check if blockSetTick = true, and if so, set it to false, set the block at x, y - 1, z, to magma block, and then wait 10 ticks on server side then set blockSetTick to true.

This will have some problems, the player might not be able to fall because the air blocks beneath them turn to magma blocks. If you don't figure it out, then just ask for more informaion.