How do i make a block store its location and owner in variables i can compare?

  • 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.

Twinblocker

New Member
May 30, 2020
7
0
1
23
options:
name: "&eCollecters &7>"

on place of banner:
if {bannerlimit.%player%} is less than 1:
set {bannerowner.%location%} to player
send "%{bannerowner.%location%}%"
set {bannerloc.%location%} to location
send "%{bannerloc.%location%}%"
add 1 to {bannerlimit.%player%}
else:
send "%{name}% You already have a banner placed!"
cancel event

on break of banner:
if %{bannerloc.%location%}% is %{bannerowner.%location%}%
set {_bannerowner} to {bannerowner.%location%} parsed as a player
remove 1 from {bannerlimit.%{_bannerowner}%}
send "%{name}% &e%player% &7broke your banner" to {_bannerowner}
send "%{name}% you broke &e{_bannerowner}'s &7banner."
else:
send "failed"


command /banner:
trigger:
send "%{name}% %{banner::%location%}%"
send "%{name}% %{bannerlimit.%player%}%"

command /bannerreset:
trigger:
set {bannerlocation::%player%} to false
set {bannerlimit.%player%} to 0
 
Status
Not open for further replies.