Hello, as I think you have already noticed, I need to randomly add items between two values, the problem is the error I get.
Skript:
Error:
Does anyone know why or how to fix it?
Skript:
code_language.skript:
options:
# Diamond
SinEncantar-Diamante: 1
FortunaI-Diamante: 1 and 2
FortunaII-Diamante: none
FortunaIII-Diamante: none
# Event
on mine:
if tool of player is enchanted with fortune 1:
set {_cant} to random integer between {@FortunaI-Diamante}
send "%{_cant}%" # work
add {_cant} stone to player's inventory
Error:
code_language.skript:
[20:36:42 ERROR]: '{_cant} stone' can't be added to an inventory because the for
mer is neither an item type nor an inventory (EasiMine.sk, line 14: add {_cant}
stone to player's inventory')
Does anyone know why or how to fix it?