# Transform Vanilla Items into ExecutableItems

Canonical: https://splugins.net/docs/executableitems/questions-or-guides/methods-or-template/transform-vanilla-items-into-executableitems

# Transform Vanilla Items into ExecutableItems

> **INFO**
First of all you have to know that this method is only available to PREMIUM VERSION

![](https://media.ssomar.com/m/docs-img-executable-items-color3.png)

### Let's create it, first decide what vanilla item you want to transform.

* For this tutorial it will be the **diamond\_sword**

![](https://media.ssomar.com/m/docs-img-image-96.png)

### **Then, we have to create the item that it will be replaced for**

* To create an item type `/ei create ` command

![](https://media.ssomar.com/m/docs-img-image-194.png)

* Change the Material of the Item to the vanilla-item you are going to change (In this case diamond\_sword)

![](https://media.ssomar.com/m/docs-img-image-168.png)

* Let's create an activator

![](https://media.ssomar.com/m/docs-img-image-92.png)

* For this example it will be `PLAYER_CLICK_ON_ENTITY`

![](https://media.ssomar.com/m/docs-img-image-213.png)

* Detailed click to left, to only work when hitting

![](https://media.ssomar.com/m/docs-img-image-272.png)

* And on commands I'll put this:

```yaml
playerCommands:
- 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.

> **INFO**
It is in plugins/ExecutableItems/items/\.yml

![](https://media.ssomar.com/m/docs-img-image-195.png)

* Open it and add these lines. (they must be without ident/spaces on the left side)

```yaml
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 \.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.

![](https://media.ssomar.com/m/docs-img-image-245.png)

![](https://media.ssomar.com/m/docs-img-image-105.png)

![](https://media.ssomar.com/m/docs-img-image-73.png)![](https://media.ssomar.com/m/docs-img-image-181.png)

* Tested and works ! Yup !!

> **INFO**
Any question you can ask on discord ^^

Method by Special70