Need some help, I'm trying to make a Tool upgrader..

Started by Minecrafter99 on

Topic category: Help with modding (Java Edition)

Last seen on 17:47, 19. May 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need some help, I'm trying to make a Tool upgrader..

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:

script

Is there something i did wrong??

Thank..

Last seen on 17:47, 19. May 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for saying the same…
Tue, 02/23/2021 - 18:21

sorry for saying the same thing two times. I did not see it.

so i thought i never posted it

Last seen on 11:11, 27. Nov 2022
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could remove the GUI and…
Sat, 03/06/2021 - 11:42

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.