Armor Set Bonus
Last updated
Last updated
For this example, the name of the items will be: Helmet = nameofhelmet.yml Chestplate = nameofchestplate.yml Leggings = nameofleggings.yml Boots = nameofboots.yml
To create them
/ei create nameofhelmet -> Save
/ei create nameofchestplate -> Save
/ei create nameofleggings -> Save
/ei create nameofboots -> Save
In this example we will create an armor that gives you strength always you have the whole set, so, we will need a LOOP ACTIVATOR, also you have to choose where part of the armor will be the "main", the one where all commands will run from. In this case the "main" will be the helmet.
So, as told before, the activator will be LOOP
We want this to only work when worn, so in detailedSlots we will set it only work when having in the head slot.
And, for the bonus effect we will use vanilla effect command:
Right ! we just created the "ability" that the whole set has, but we need to add the condition to have the whole set !!
Go to the Player conditions->ifHasExecutableItem
Here we will add the other 3 parts of the armor, in this case, as I chose the helmet as main, I need to add the chestplate, leggings and boots.
I will explain adding the chestplate as a condition first:
So in the photo above, add a condition and you will see this
The first one is the EI needed, in this case, I will scroll down until get the chestplate
Once we got it, let's go to the next option -> "Amount" it will be 1
And then, the slot we want this ExecutableItem to be, in case of chestplate the slot of chestplate.
Remember to disable the main hand and only enable 1 slot, the one that you want.
And in this case we aren't going to use the usage condition so don't touch it.
And save.
You have to do the same for the another 2 pieces, once done, we will have 3 conditions in total
And that's all ! Save the item and test!
Works ! Now.. if you don't have one of the armors, the condition will tell you..
To deactivate it we will need to enter to the condition editor again and click here
And set it to NO VALUE
And that's it now save and no message of condition will appear.
And now.. that's all !! 😁😁😎
If you have any question you can ask it in Discord ^^
Method by Special70