Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /is [<text>] [<offline player>]:
- trigger:
- if arg-1 is "create":
- if {island.%player%} is not set:
- add 1000 to {fd}
- add 1000 to {sd}
- set {island.%player%} to location({fd}, 77, {sd}, world "TheIslands", -90, 0)
- set block at location({fd}, 76, {sd}, world "TheIslands",-90, 0) to bedrock
- load "island" at location({fd} - 1, 74, {sd} - 4, world "TheIslands",-90, 0)
- teleport player to {island.%player%}
- send "&aYou succesfully created your Island"
- set {island.b::%player%::z::*} to {sd} + 28 and {sd} - 28
- set {island.b::%player%::x::*} to {fd} + 28 and {fd} - 28
- if arg-1 is "home" or "h":
- if {island.%player%} is set:
- teleport player to {island.%player%}
- send "&aTeleporting to your &eIsland"
- else:
- send "&cYou don't have a island!"
- if arg-1 is "delete":
- if {island.%player%} is set:
- send "&cAre you sure you want to remove your island?" to player
- send "&cType &bYes &cin the chat" to player
- set {removecooldown.%player%} to true
- if arg-1 is "invite":
- send "&a&l%player% &ainvited you to their island type&7""/is join %player%""" to arg-2
- set {invite.%arg-2%.%player%} to true
- wait 30 seconds
- clear {invite.%arg-2%.%player%}
- if arg-1 is "join":
- if {invite.%player%.%arg-2%} is true:
- set {_d} to "%player%"
- loop all players:
- z-loc of loop-player is between {island.b::%{_d}%::z::1} and {island.b::%{_d}%::z::2}:
- x-loc of loop-player is between {island.b::%{_d}%::x::1} and {island.b::%{_d}%::x::2}:
- make loop-player execute command "/spawn"
- send "&cThis island closed!"
- set {island.%player%} to {island.%arg-2%}
- set {island.b::%player%::z::1} to {island.b::%arg-1%::z::1}
- set {island.b::%player%::z::2} to {island.b::%arg-1%::z::2}
- set {island.b::%player%::x::1} to {island.b::%arg-1%::x::1}
- set {island.b::%player%::x::2} to {island.b::%arg-1%::x::2}
- send "&aYou succesfully joined &a&l%arg-2%&a&l's &a island" to player
- send "&a&l%player% &aJoined your team" to arg-2
- if arg-1 is "visit" or "v":
- if {island.%arg-2%} is set:
- if {lock.island.%arg-2%} is not set:
- if {ban.%arg-2%.%player%} is not set:
- teleport player to {island.%arg-2%}
- send "&aYou have been teleported to &a&l%arg-2%'s &aIsland!"
- else:
- send "&cYou are banned from this island!"
- else:
- send "&c&l%arg-2%'s &cisland is locked!"
- else:
- send "&cThis player does not have a island!"
- if arg-1 is "lock":
- if {lock.island.%player%} is not set:
- set {lock.island.%arg-2%} to true
- if {lock.island.%arg-2%} is true:
- clear {lock.island.%arg-2%}
- if arg-1 is "ban":
- if {island.%player%} is set:
- set {ban.%player%.%arg-2%} to true
- z-loc of arg-2 is between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
- x-loc of arg-2 is between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
- make arg-2 execute command "/spawn"
- send "&cYou got banned from &c&l%player%'s &cisland!" to arg-2
- send "&aYou succesfully banned &a&l%arg-2% from your island!"
- if arg-1 is "unban":
- if {ban.%player%.%arg-2%} is set:
- clear {ban.%player%.%arg-2%}
- send "&aYou succesfully unbanned &a&l%arg-2%"
- send "&aYou got unbanned from &a&l%player%'s &aisland!" to arg-2
- if arg-1 is "settings":
- if {island.%player%} is set:
- create a gui with virtual chest inventory named "settings" with 4 rows
- format gui slot 1 to grey stained glass pane
- on left click with stick:
- cancel event
- set {loc1} to location of clicked block
- send "pos1"
- on right click with stick:
- cancel event
- set {loc2} to location of clicked block
- send "pos2"
- command /skem:
- trigger:
- set {fd} to 0.5
- on block break:
- if player's world is not "TheIslands":
- if player doesn't have permission "block break":
- cancel event
- if player's world is "TheIslands":
- z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
- x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
- if player doesn't have permission "island.bypass":
- send "&cYou can't break here!"
- cancel event
- on block place:
- if player's world is not "TheIslands":
- if player doesn't have permission "block break":
- cancel event
- if player's world is "TheIslands":
- z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
- x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
- if player doesn't have permission "island.bypass":
- send "&cYou can't build here!"
- cancel event
- on right click:
- if player's world is "TheIslands":
- z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
- x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
- if player doesn't have permission "island.bypass":
- send "&cThis isn't your island!"
- cancel event
- on damage:
- loop all players:
- z-loc of attacker is between {island.b::%loop-player%::z::1} and {island.b::%loop-player%::z::2}:
- x-loc of attacker is between {island.b::%loop-player%::x::1} and {island.b::%loop-player%::x::2}:
- if {setting.pvp.%loop-player%} is not set:
- cancel event
- on pickup:
- if player's world is "TheIslands":
- z-loc of player is not between {island.b::%player%::z::1} and {island.b::%player%::z::2}:
- x-loc of player is not between {island.b::%player%::x::1} and {island.b::%player%::x::2}:
- if player doesn't have permission "island.bypass":
- loop all players:
- z-loc of player is between {island.b::%loop-player%::z::1} and {island.b::%loop-player%::z::2}:
- x-loc of player is between {island.b::%loop-player%::x::1} and {island.b::%loop-player%::x::2}:
- if {settings.pickup.%player%} is not set:
- cancel event
- command /pee:
- trigger:
- send "e"
Add Comment
Please, Sign In to add comment