Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- send "&7[&6IslePvPbuildings&7] loaded &asuccessfuly." to console
- on first join:
- set {buildTime.%player%} to true
- command /ipbship1:
- trigger:
- if player has permission "ship.admin":
- give a paper named "&9Ship I &aSchematic" with lore "||&6>> &7Click on &9Blue &7wool to build a ship||||&6>> &7Requirements:||&6>> &7Wood: &a500||&6>> &7Stone: &a250||&6>> &7Clay Block: &a250" to player
- send "&7[&6IslePvPbuildings&7] &6>> &cYou received &aShip Schematic&c!"
- stop
- else:
- send ""
- send "&c&l>>>>>>>>>> &7[&6IslePvPbuildings&7] &c&l<<<<<<<<<<"
- send "&7/ipb - List of available commands."
- send "&7/ipbs - List of available buildings"
- send ""
- send "&7Author: &d&mi&f&lNe&8&lzu&6&lko"
- stop
- command /ipb:
- trigger:
- send ""
- send "&c&l>>>>>>>>>> &7[&6IslePvPbuildings&7] &c&l<<<<<<<<<<"
- send "&7/ipb - List of available commands."
- send "&7/ipbs - List of available buildings"
- send ""
- send "&7Author: &d&mi&f&lNe&8&lzu&6&lko"
- stop
- command /ipbs:
- trigger:
- send ""
- send "&c&l>>>>>>>>>> &7[&6IslePvPbuildings&7] &c&l<<<<<<<<<<"
- send "&7/ipbship1 - First level of Ship"
- send ""
- send "&7Author: &d&mi&f&lNe&8&lzu&6&lko"
- stop
- command /ipbtrue <text>:
- trigger:
- if arg 1 is set:
- set {buildTime.%arg 1%} to true
- send "&7[&6IslePvPbuildings&7] &6>> &7%arg 1%'s &atrue!"
- else:
- send "&7[&6IslePvPbuildings&7] &6>> &7Arg 1 is empty!"
- command /ipbfalse <text>:
- trigger:
- if arg 1 is set:
- set {buildTime.%arg 1%} to false
- send "&7[&6IslePvPbuildings&7] &6>> &7%arg 1%'s &cfalse!"
- else:
- send "&7[&6IslePvPbuildings&7] &6>> &7Arg 1 is empty!"
- command /ipbcheck <text>:
- trigger:
- send "&7[&6IslePvPbuildings&7] &6>> &7 %arg 1% is %{builtTime.%arg 1%}% !"
- on rightclick on blue wool:
- if "%world of player%" is "islepvp":
- if block below event-block is anvil:
- if player's held item is paper named "&9Ship I &aSchematic" with lore "||&6>> &7Click on &9Blue &7wool to build a ship||||&6>> &7Requirements:||&6>> &7Wood: &a500||&6>> &7Stone: &a250||&6>> &7Clay Block: &a250":
- if {buildTime.%player%} is true:
- if player has 10 dirt and 5 diamond:
- remove 10 dirt and 5 diamond from player's inventory
- remove 1 of player's held item from player's inventory
- send "&7[&6IslePvPbuildings&7] &6>> &7Building &9Ship I &7started!"
- set event-block to sign
- set line 1 of event-block to "Time: 30"
- set {buildTime.%player%} to false
- loop 30 times:
- wait 1 minutes
- set line 1 of event-block to "Time: x"
- set {loc} to location of event-block
- set {loc} to location of block 1 down 1 north event-block
- paste schem "ship1.schematic" at {loc}
- wait 2 seconds
- send "&7[&6IslePvPbuildings&7] &9Ship I &7has been built!"
- broadcast "&7[&6IslePvPbuildings&7] &a%player% &7has just built &9Ship &7level &aI"
- set {buildTime.%player%} to true
- else:
- send "&7[&6IslePvPbuildings&7] &6>> &cYou dont have enough items yet!"
- else:
- send "&7[&6IslePvPbuildings&7] &6>> &c*******MESSAGE*******!"
- else:
- send "&7[&6IslePvPbuildings&7] &6>> &aYou can build &9Ship I &ahere!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement