Pickup

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Jolt

New Member
Oct 19, 2019
9
0
0
24
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?
 
Status
Not open for further replies.