#how do I solve this function
1 messages · Page 1 of 1 (latest)
What is the 'mode one'? Is it when players have bl:sharingan on their head?
I am sorry, I don't really understand your question, could you explain your addon more?
But, I see that you put the wrong slotID for slot.armor.head, it's supposed to be:
replaceitem entity @p slot.armor.head 0 bl:sharingan
(Correct me if I'm wrong)
What do you mean by "Don't come out"?
Do you mean the player didn't get the effect, or the player's effect didn't clear?
I think he wants to give effects to the player if he is wearing a helmet
If so, maybe this file can help:
Yes, that's it, but when I take off the helmet the effects still remain
Yeah, I don't want that to happen
You should use scoreboards. Set the score of whoever has the helmet to 2, when the player removes it the score drops to 1 and it removes the effects, then the score drops to 0.
what is this command??
Try this function, replace diamond_helmet with your helmet, don't forget the tick.json! You can also change the name of the score if you prefer.
This is just an example, it adds the speed effect if the player is wearing a diamond helmet.
The effect is removed along with the helmet.
You can add and remove as many effects as you want, just follow what I did in the function and follow the order it is in.
Can I change the name of the helmet?? if I can do it I also have to change the name within the function... I don't know how to use the tick very well😓 can you explain, bro.... I've been trying to do this for several days... if you don't understand some things, it's because I'm br🇧🇷 and I don't know English.... I'm sorry if I'm bothering you a lot