Topic category: Help with modding (Java Edition)
Hey, I am new to using MCreator and I am trying to make a mod where after a random tick, it will change a block underneath, skipping the air block in the process.
For example, if my block is at Z 64 and there is air blocks between Z 59 to Z 63 and another block at Z 58. At a random tick, the Block at 64 will change the block at 58.
I am quite fluent in Java, so if code is needed, that is find. Just give steps to it so others may understand.
I don't want to spam topics so I will give a bonus question.
I need to make Vanilla Sheep eat a custom grass block I created. However, I can't find a way to edit the Sheep AI to do so. Unless I can use tags and assign a grass tag to my custom grass block and ot will make it where the sheep will turn it into a dirt block.