Hello,
I am having problems with a variable changing its value, but I do not change it in the code:
Here is my code:
The result when wearing a leather helmet is:
leather_cap
leather_cap of Sharpness 1
But I never changed the variable {helmet.%player%} I only enchanted the players helmet, so the 2nd message should also have been leather_cap?
How do I fix this?
Thanks in advance.
I am having problems with a variable changing its value, but I do not change it in the code:
Here is my code:
code_language.skript:
command /derp:
trigger:
set {helmet.%player%} to player's helmet
message "%{helmet.%player%}%"
enchant player's helmet with sharpness 1
message "%{helmet.%player%}%"
delete {helmet.%player%}
The result when wearing a leather helmet is:
leather_cap
leather_cap of Sharpness 1
But I never changed the variable {helmet.%player%} I only enchanted the players helmet, so the 2nd message should also have been leather_cap?
How do I fix this?
Thanks in advance.