Transform Vanilla Items into ExecutableItems

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

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.

It is in plugins/ExecutableItems/items/<itemID>.yml

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

recognitions:
- MATERIAL
  • 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 !!

Any question you can ask on discord ^^

Method by Special70

Last updated