Started by
jimmyim10
on
Topic category: Help with Minecraft modding (Java Edition)
So im trying to make an item that when you right click in the air with it. it spawns an item where you are. Right now i'm setting a local variable to a random number and based on that number dropping an item with the spawn gem function. It's not working so i need a little help with this
Im not on MCreator at the moment so I may be wrong, but Im pretty sure you can just make it so once you right click remove it from the inventory, pick a random number, then have different if statements be activated if the number is the same as it. Again not on MCreator so I can't really check but that would be my first guess if I were to try something like this.
that's what im doing, but it won't work
This worked for me:
I think you might have to open that image in a new tab to see it btw.