Morph Tools
Ok so the morph tool is an item that it changes between tools, from sword, to pickaxe, axe, shovel, etc. Let's do it !
Create the individual tool items
First of all you'll need to create each item that the Morph tool will cycle through.

Let's edit the items
First, set the item's usage to 0
Plan how the tool will cycle between states
Create the activator
This will be the activator that will allow us to cycle.
Set the Usage Modification to -1
Set the sneak condition (In this example we want the cycle starts when SHIFT+RIGHT CLICK)
Don't forget that you can remove the condition message.
Add the commands
We have the condition ready, now let's add the commands. For this you will need /ei giveslot
command for this to work properly
And now we have to take a look at the order of the cycle we wanted, in this case it will be
AXE -> PICKAXE -> HOE
If you are editing the Axe we will have to give the pickaxe:
ei giveslot %player% (item id of the Pickaxe state) 1 %slot%
Then for the pickaxe item, we will have to create the same activator, usageModification, set the conditions and on commands:
ei giveslot %player% (item id of the Hoe state) 1 %slot%
And so on, when you reach the final item you will have to give the first item of the cycle, to complete it :D
Last updated