Started by
Minecrafter99
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I'm trying to make a cube that lets you upgrade any tool's damage. I've made a basic cube, with a texture I made.
So I made this script when the block is right-clicked. I also made GUI with two slots
One where you enter your tool and the other where it gives you back your tool with +1 damage.
When i put the tool in the slot sadly nothing happens.
Here's the script:
Is there something i did wrong??
Thank..
sorry for saying the same thing two times. I did not see it.
so i thought i never posted it
You could remove the GUI and simply make your block executing the procedure when you right-click on it with an item. You have to modify your procedure to remove the item from inventory and add a new modified one in the player's main hand.
This way would be less effective for automation, because for example hoppers would not be compatible, but it should work with your hand at least.
PS: Sorry for my bad english, I'm french.