```command /addblist: permission: op trigger: if player's held item is not air: add player's held item to {blist::*} send "added %player's held item% to the bidding list." command /removeblist: permission: op trigger: if player's held item is not air: remove player's held item from {blist::*} send "removed %player's held item% from the bidding list." command /viewblist: permission: op trigger: send "%{blist::*}%" command /ah: aliases: /bid, /auctionhouse, /bidding trigger: set {gui} to a new chest inventory with 3 rows named "&2Auction House" set slot (integers between 0 and 26) of {gui} to yellow stained glass pane set slot (integers between 10 and 16) of {gui} to red stained glass pane if {pb::%player's uuid%} is set: set slot 11 of {gui} to paper named "&eYour Bid &c%{pb::%player's uuid%}%❤" else: set slot 11 of {gui} to paper named "&cYou have not Bid any hearts." set slot 13 of {gui} to {bitem} if {hb} is set: set slot 13 of {gui} to paper named "&eHighest Bid &c%{pb::%player's uuid%}%❤" else: set slot 13 of {gui} to paper named "&cNo one has bid any hearts." set slot 4 of {gui} to clock named "%{btime}% seconds left." set slot 22 of {gui} to diamond named "&eBid" open {gui} to player on load: set {bitem} to a random element out of {blist::*} every hour: loop {votes::*}: if {_hbid} is not set: set {_hbid} to {votes::%loop-index%} set {_hbidder} to loop-index if {_hbidder} is online: give {_hbidder} {bitem} wait 1 tick set {bitem} to a random element out of {blist::*} set {btime} to 3600 loop 3600 times: wait 1 second remove 1 from {btime} else: add {hb} to {_hbidder}'s max health on inventory click: if name of event-inventory is "&2Auction House": cancel event if event-slot is diamond named "&eBid": set {maxbid} to {hb} add 1 to {maxbid} if player's max health is more than {maxbid}: remove {maxbid} from player's max health set {hb} to {maxbid} set {pb::%player's uuid%} to {hb} ```