Hello
how to do in this skript to give 64 stone instead of wool? (I want to do it without variables)
how to do in this skript to give 64 stone instead of wool? (I want to do it without variables)
Code:
command /shop:
trigger:
wait 1 tick
open chest with 1 rows named "&5&lSHOP" to player
set player's current inventory's slot 0 to 64 stone named "&7Stone"
on inventory click:
cancel event
if name of player's current inventory is "&5&lSHOP":
if clicked item is not air:
if inventory type of clicked inventory is "CHEST":
if clicked item is stone:
wait 1 tick
open chest with 1 rows named "&5&lCONFRIM BUY" to player
set player's current inventory's slot 4 to green wool named "&2Confirm"
if name of player's current inventory is "&5&lCONFRIM BUY":
if clicked item is not air:
if inventory type of clicked inventory is "CHEST":
if clicked item is green wool:
give player clicked item # Give green wool instead stone
close player's inventory