so im trying to make a generator thing but it doesnt work. theres no errors and it doesnt work.
edit: im trying to make generators buyable.
edit 2: the on inventory click is the function that should buy them
Code:
on load:
set {moneygeneration} to sunflower of mending named "&fMoney Generation" with lore "&8Welcome %player%!"
set {gen} to green concrete named "&2Money Gen" with lore "&eCosts 15 &2Money!"
on right click:
if clicked block is fletching table:
open chest with 5 rows named "&eMarket" to player
format slot 0 of player with yellow stained glass named "&eClick These Items To Change Shop Page! ->" with lore "&8Welcome %player%!" to close
format slot 1 of player with sunflower of mending named "&fMoney Generation" with lore "&8Welcome %player%!" to close
format slot 9 of player with green concrete named "&2Money Gen" with lore "&eCosts 15 &2Money!" to run [wait 1 tick]
on inventory click:
if clicked slot contains {gen}:
if {money::%player's uuid%} > 14:
subtract 15 from {money::%player's uuid%}
give player green concrete named "&2Money Gen" with lore "" and "&a&l| &7Generates &aMoney"
else:
send "&cYou do not have enough money for that!" to player
edit: im trying to make generators buyable.
edit 2: the on inventory click is the function that should buy them
Last edited: