Hi!
So, i was trying to make a variable for looting, but even if the held item is enchanted with looting 1 or 2, the variable is always 3.
I tried to fix that adding an "else" between every "if held item..", but it does the opposite: the variable is always one, even if the sword is enchanted with looting 2 or 3
Anyone got any idea on why this is happening? I tried to fix it myself, but this is my first time using skript and im not very used to it
So, i was trying to make a variable for looting, but even if the held item is enchanted with looting 1 or 2, the variable is always 3.
I tried to fix that adding an "else" between every "if held item..", but it does the opposite: the variable is always one, even if the sword is enchanted with looting 2 or 3
Anyone got any idea on why this is happening? I tried to fix it myself, but this is my first time using skript and im not very used to it
Code:
on player tool changing:
if held item is enchanted with looting 1:
set {looting.%player%} to 1
if held item is enchanted with looting 2:
set {looting.%player%} to 2
if held item is enchanted with looting 2:
set {looting.%player%} to 2