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