so I am trying my very best to make the left click shop but here is what I got...
on leftclick with dirt:
open chest with 3 rows named "&3&lDirty Shop" to player
format slot 10 of player with dirt named "&9Another dirt clicker" with lore "&4&lAdds $1 to each click" to close
on inventory click:
if name of current inventory of player is "&3&lDirty Shop":
if name of event-item is "&9Another dirt clicker":
add 1 to {moneyperclick::%player%}
remove 50 from {money::%player%}
What I am trying to do is to remove money from player's uuid. give the moneyperclick to player and make it so if you click it. it will do the stuff.
idk what is happening. I know it is trying to see the player's inventory. but can it see from a gui through?
I am using: Skript, SkQuery, SkRayFall, Skellett