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..
also, the image is too small just right-click and paste the url.
The Set Damage means the Durability Damage. You can add an Enchantment with Sharpness 1 or create another Wooden Sword that have 1 Attack Damage more.
When I put the tools i selected, wooden sword, wooden pickaxe, and wooden hoe,in slot 1 it should disappear and reappear in slot 2 with sharpness 1 or something.
But in my case, nothing happens.
I know I'm missing something..
Go to your GUI Mod Element select in "GUI Open Tick" your Procedure
Where is "GUI Open Tick"? I can't find it
i also is there a block that gets the current enchantment level?
I don't want it to be sharpness 1 forever. i want it to change +1 each time the person adds the same tool
i think i found GUI Open Tick
I found update tick but not GUI open tick..
I tried using "Update Tick"
in the triggers section of my block.
But I don't have the required dependencies
Found it now :)
If you use 2020.5 or the current Snapshot you can find GUI Open Tick in the GUI Mod Element where you created your GUI with Slots etc. at the bottom should GUI Open Tick Selector.
I now found it, but still, it's not working.
I add one of the tools in my custom list, slot one, and nothing happens. even though i have the procedure set in GUI Open Tick
action. What's Wrong?? I even tried changing the double input block
to OR to AND. and no luck.
I also tried removing the. if block. but you guessed it no luck again.
It's still not working after doing what you said with GUI Open tick.
Ok, I will make an Procedure Template for you today. Wait until I reply again.