Skript version: 2.5.3-MH
Minecraft version: 1.16.5
Code:
if player has unbreakable leather helmet of protection 1:
format gui slot 10 of player with leather helmet named "&bLeather Helmet 2" with lore "Price: 32 Cobble" to run:
if player has 32 of cobblestone:
remove unbreakable leather helmet of Protection 1 from player
give player unbreakable leather helmet of protection 2
remove 32 of cobblestone from player's inventory
send "&aUpgraded to Leather Helmet 2" to player
close player's inventory
else:
send "&4You do not have enough cobblestone for this upgrade" to player
close player's inventory
(there is already a 3 row tuske gui, and i have used similar code for the rest of it)
No errors shown, but the leather helmet isn't there
Addons:
MorkazSk 1.2
skRayFall 1.9.20
Tuske 1.8.2 Pickachu Patch 3
[doublepost=1615049781,1615041702][/doublepost]the reason i didnt send the whole skript is cus its over 2000 lines
if you need a file with it in tell me and ill dm
Minecraft version: 1.16.5
Code:
if player has unbreakable leather helmet of protection 1:
format gui slot 10 of player with leather helmet named "&bLeather Helmet 2" with lore "Price: 32 Cobble" to run:
if player has 32 of cobblestone:
remove unbreakable leather helmet of Protection 1 from player
give player unbreakable leather helmet of protection 2
remove 32 of cobblestone from player's inventory
send "&aUpgraded to Leather Helmet 2" to player
close player's inventory
else:
send "&4You do not have enough cobblestone for this upgrade" to player
close player's inventory
(there is already a 3 row tuske gui, and i have used similar code for the rest of it)
No errors shown, but the leather helmet isn't there
Addons:
MorkazSk 1.2
skRayFall 1.9.20
Tuske 1.8.2 Pickachu Patch 3
[doublepost=1615049781,1615041702][/doublepost]the reason i didnt send the whole skript is cus its over 2000 lines
if you need a file with it in tell me and ill dm