Started by
Demon_Cry
on
Topic category: Help with Minecraft modding (Java Edition)
I created a staff, when you right-click it gives me regeneration, and takes the earth. How to make sure that if I don't have land, it doesn't work.
Topic category: Help with Minecraft modding (Java Edition)
I created a staff, when you right-click it gives me regeneration, and takes the earth. How to make sure that if I don't have land, it doesn't work.
You are looking for,
To clarify, this only works if you are on the ground. Is that what you want?
If the land is in the inventory
If the land is in the inventory.
If the land is in the inventory
if the land is in the inventory
Like if you have dirt in the inventory?
Yes
Ok, so I tested some methods in MCreator and this is possible without coding. Here is the MCreator method,
Mirror Link
Alternatively, you can add this snippet of code to your item,
Thank you very much, I have been looking for an answer for a long time.
No problem 😁