I'm trying to make a skript where when you right click with it, it'll upgrade the pickaxe. Not gonna show the full skript, but if you wan't it i'll give it to you
the issue:
the issue is it won't upgrade past tier 2. when I try to upgrade it through a GUI I made, it just doesn't work, and stays at two. I've tried to fix this for hours but I gave up and just came here.
Again, if you want the full code, just ask. I'm not very active but i'll try to check for msgs.
Many Thanks!
EDIT: incase anyone didn't read, there are no errors on reload. it simply doesn't work
Alright, New Update, i switched everything to loop-player/player variables and it doesn't work, this time with errors on reload.
ERROR:
"{pick::%loop-player%} can only ever have one value at most, thus the 'amount of ... ' has a value. (pick.sk, line 65: if amount of {pick::%loop-player%} = 3"
now my shop gui and stuff doesn't work and I broke everything.
New Code:
the issue:
Code:
every tick:
loop all players:
if amount of {pick::*} = 2:
replace wooden pickaxe named "&7Wooden Pickaxe&8 [&c1&8]" in loop-player's inventory with wooden pickaxe of efficiency 1 named "&7Wooden Pickaxe&8 [&c2&8]"
set {pickcost::*} to 32
set {pickcost} to 32
stop
if amount of {pick::*} = 3:
replace wooden pickaxe named "&7Wooden Pickaxe&8 [&c2&8]" in loop-player's inventory with wooden pickaxe of efficiency 2 named "&7Wooden Pickaxe&8 [&c3&8]"
set {pickcost::*} to 48
set {pickcost} to 48
stop
if amount of {pick::*} = 4:
replace wooden pickaxe named "&7Wooden Pickaxe&8 [&c3&8]" in loop-player's inventory with wooden pickaxe of efficiency 3 named "&7Wooden Pickaxe&8 [&c4&8]"
set {pickcost::*} to 64
set {pickcost} to 64
stop
the issue is it won't upgrade past tier 2. when I try to upgrade it through a GUI I made, it just doesn't work, and stays at two. I've tried to fix this for hours but I gave up and just came here.
Again, if you want the full code, just ask. I'm not very active but i'll try to check for msgs.
Many Thanks!
EDIT: incase anyone didn't read, there are no errors on reload. it simply doesn't work
Alright, New Update, i switched everything to loop-player/player variables and it doesn't work, this time with errors on reload.
ERROR:
"{pick::%loop-player%} can only ever have one value at most, thus the 'amount of ... ' has a value. (pick.sk, line 65: if amount of {pick::%loop-player%} = 3"
now my shop gui and stuff doesn't work and I broke everything.
New Code:
Code:
every tick:
loop all players:
if amount of {pick::%loop-player%} = 2:
replace wooden pickaxe named "&7Wooden Pickaxe&8 [&c1&8]" in loop-player's inventory with wooden pickaxe of efficiency 1 named "&7Wooden Pickaxe&8 [&c2&8]"
set {pickcost::%loop-player%} to 32
set {pickcost2::%loop-player%} to 32
stop
if amount of {pick::%loop-player%} = 3:
replace wooden pickaxe named "&7Wooden Pickaxe&8 [&c2&8]" in loop-player's inventory with wooden pickaxe of efficiency 2 named "&7Wooden Pickaxe&8 [&c3&8]"
set {pickcost::%loop-player%} to 48
set {pickcost2::%loop-player%} to 48
stop
if amount of {pick::%loop-player%} = 4:
replace wooden pickaxe named "&7Wooden Pickaxe&8 [&c3&8]" in loop-player's inventory with wooden pickaxe of efficiency 3 named "&7Wooden Pickaxe&8 [&c4&8]"
set {pickcost::%loop-player%} to 64
set {pickcost2::%loop-player%} to 64
stop
Last edited: