Started by
DancingMouse80
on
Topic category: Help with MCreator software
My son has created an enchantment (called ‘dash’) which he wants to work only when a player is wearing boots (of any type). The enchantment is activated when you press the space bar. At the moment the enchantment is working all the time in game. How does he set the procedure correctly so the enchantment only works when wearing boots? I hope this makes sense, I’ve very limited understanding of MCreator.
The situation is currently, whenever the space bar is pressed, the dash effect activates, regardless of whether or not enchanted boots are being worn, correct?
If so, it sounds like the procedure that is run when the spacebar is pressed need to be modified by putting its contents inside an 'If' procedure block, with the condition as follows:
"Has Get item from armor slot 0 of Event/target entity enchantment Dash"
The condition can be put together by taking the "Has Provided itemstack enchantment No entry selected" procedure block, then swapping out the "Provided itemstack" procedure block in it with a "Get item from armor slot 0 of Event/target entity" procedure block, and also clicking the "No entry selected" part of it to open a dropdown menu to select the Dash enchantment.
This condition will check if the player is wearing boots enchanted with the Dash enchantment, and if so, it will do everything inside the "If" procedure block, which is where the current effect for the enchantment will need to be placed.