Started by
Alex Khang
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I'm creating two blocks: one that functions similarly to grass and the other like dirt.
I've been trying to make it function like the vanilla blocks:
- Custom grass becomes dirt after a certain time when detecting that the block above (y + 1) is solid.
- Custom dirt becomes grass after a certain time when detecting that the block above (y + 1) is not solid.
I'm trying to do so via NBT timers, but I'm confused about what to do because I just can't seem to get my timer to work.
Any help regarding my question is greatly appreciated. Thank you!
bump :c
set the tick rate to the time after which your block changes and create a trigger for the tick update that changes it.
Thank you, but what I meant was that I don't know how to code it out. I kinda know what I have to do, but my efforts so far has amounted to nothing.
I used Tick Update trigger and used the "Wait 20 ticks on server side" in Flow Control. It didn't work.