Transform Vanilla Items into ExecutableItems

Let's create it, first decide what vanilla item you want to transform.
For this tutorial it will be the diamond_sword
Then, we have to create the item that it will be replaced for
To create an item type
/ei create <id>
command

Change the Material of the Item to the vanilla-item you are going to change (In this case diamond_sword)
Let's create an activator
For this example it will be
PLAYER_CLICK_ON_ENTITY
Detailed click to left, to only work when hitting
And on commands I'll put these commands:
commands:
- SENDMESSAGE §6This is not a normal sword..
- PARTICLE FLAME 50 0.5 0
entityCommands:
- BURN 4
So when hitting the swords will say This is not a normal sword and the entity will burn for 4 seconds
OK ! We have the item ready, you can test it if you want (to be sure the EI Item works fine). Now we have to make the.. transformation 😈😈
Transforming the vanilla item into the EI Created
To do this, you first have to go to edit the yml of your item.

Open it and add these lines. (they must be without ident/spaces on the left side)
recognitions:
- MATERIAL
Now ExecutableItems
will think that any item that has the same material as the EI Item (that we just created) will be the EI Item.
Save the <item>.yml , go inside the game and type
/ei reload
Let's test it
If we did every step fine, now we have to take a diamond_sword from vanilla, get close to a cow, and hit it -> It should burn for 4 seconds, some particle will show up and you will recieve a message.
Tested and works ! Yup !!
Last updated