on connect:
if {uuid::%player%} is not set:
set {uuid::%player%} to player's uuid
on place:
set {blockplace:%{uuid::%player%}%} to true
on right click on bedrock:
if {blockplace:%{uuid::%player%}%} = true:
set {_pickup::%player%} to 500000
open chest with 1 row named "&8&lUpgrade Bedrock" to player
format gui slot 3 of player with blue glazed terracotta named "&a&lPickup" with lore "" and "&7It will cost you &2500k!"
format gui slot 4 of player with lime glazed terracotta named "&9&lUpgrade" with lore "&8Upgraded Bedrock" with lore "" and "&7Can only be broken by &cUpgraded TNT" and "" and "&2$500M &8Per Bedrock" and "" and "&7Cost&8: &2$&a%{_co::%player%}% &8| &7%{_amount::%player%}% Bedrock in your inventory"
format gui slot 5 of player with red stained glass named "&c&lCancel" with lore "&7This will take you out of the menu"
on inventory click:
if inventory name of player's current inventory is "&8&lUpgrade Bedrock":
clicked slot is 3:
Ok, so I need to save the block that they have right-clicked into a variable and then set that to air. Does anyone know of a way to do that or some other way around it?
if {uuid::%player%} is not set:
set {uuid::%player%} to player's uuid
on place:
set {blockplace:%{uuid::%player%}%} to true
on right click on bedrock:
if {blockplace:%{uuid::%player%}%} = true:
set {_pickup::%player%} to 500000
open chest with 1 row named "&8&lUpgrade Bedrock" to player
format gui slot 3 of player with blue glazed terracotta named "&a&lPickup" with lore "" and "&7It will cost you &2500k!"
format gui slot 4 of player with lime glazed terracotta named "&9&lUpgrade" with lore "&8Upgraded Bedrock" with lore "" and "&7Can only be broken by &cUpgraded TNT" and "" and "&2$500M &8Per Bedrock" and "" and "&7Cost&8: &2$&a%{_co::%player%}% &8| &7%{_amount::%player%}% Bedrock in your inventory"
format gui slot 5 of player with red stained glass named "&c&lCancel" with lore "&7This will take you out of the menu"
on inventory click:
if inventory name of player's current inventory is "&8&lUpgrade Bedrock":
clicked slot is 3:
Ok, so I need to save the block that they have right-clicked into a variable and then set that to air. Does anyone know of a way to do that or some other way around it?