How do i make that function remember the clicked item/slot?
I also dont know what return used for
[doublepost=1574085398,1573970700][/doublepost]bump
Code:
command /shop-halloween-299 <text>:
trigger:
if arg 1 is "enchanter":
open virtual chest inventory with size 5 named "&aHey" to player
on inventory click:
if name of player's current inventory is "&aHey":
cancel event
if clicked item is not enchanted book:
format gui slot 22 of player with clicked item
if clicked item is bow:
format gui slot 17 of player with enchanted book named "&eExplosive I" to run function enchant(Explosive I)"
function enchant(type: String):
if {_type} is "Explosive I":
return clicked item
add lore of clicked item to "&eExplosive I"
I also dont know what return used for
[doublepost=1574085398,1573970700][/doublepost]bump