Hello! I'm Zach20 and i'm trying to figure out how to skript in a system where a player can upgrade a gen from tier 1 to tier 2, but i can't figure out how to remove the old gen and the cost of upgrading it from the player.
Skript Version: Skript 2.4
Skript Author: Bensku
Minecraft Version 1.15.2
here's my skript:
if anyone can help me on this, it would be much appreciated
Skript Version: Skript 2.4
Skript Author: Bensku
Minecraft Version 1.15.2
here's my skript:
Code:
on left click:
if player's held item is music disc 13:
wait 1 tick
open chest with 1 row named "&7&lStarter Gen" to player
wait 1 tick
format slot 6 of player with diamond named "&a&lUpgrade Gen" to close then run [execute console command "/1genupgrade %player%"]
command /1genupgrade <player>:
trigger:
if player has 128 cobblestone and 128 coal:
give 1 music disc cat named "&9&lTier 2 Gen" to arg-1
remove 128 cobblestone from arg-1
remove 128 coal from arg-1
remove music disc 13 from arg-1
else:
send "&c&lSorry! You dont have the resources to upgrade this gen!"
if anyone can help me on this, it would be much appreciated
Last edited: