Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function builingsProgress(player: player,time: number,name: text,loc: location,schematic: text):
- if {BuildingCount.%{_player}%} is greater than 0:
- remove 1 from {BuildingCount.%{_player}%}
- set block at {_loc} to beacon
- set {_time.%{_player}%.now} to convert date now to unix date
- set {_time.%{_player}%.start} to convert date now to unix date
- while difference between {_time.%{_player}%.start} and {_time.%{_player}%.now} is less than {_time}:
- wait 5 ticks
- set {_time.%{_player}%.now} to convert date now to unix date
- set {_%{_player}%.czasowaZmienna} to difference between {_time.%{_player}%.start} and {_time.%{_player}%.now}
- set {_czas} to {_time} - {_%{_player}%.czasowaZmienna}
- set {_czas} to rounded down ({_czas}/60)
- set {_czas} to {_czas}+1
- set block at {_loc} to air
- paste schematic "%{_schematic}%" at {_loc}
- wait 2 ticks
- send "&7[&6IslePvPbuildings&7] &7&l%{_name}% &7has been built!" to {_player}
- broadcast "&7[&6IslePvPbuildings&7] &a%{_player}% &7has just built &7&l%{_name}%"
- if {_player} has permission "ipb.elite":
- if {BuildingCount.{_player}} is less than 2:
- add 1 to {BuildingCount.%player%}
- else:
- if {BuildingCount.{_player}} is less than 1:
- add 1 to {BuildingCount.{_player}}
- function buildingsWoolCoast(player: player,block: location):
- drawDot count 2, particle "smoke", material wool, XYZ 0.5, 0.4, 0.5, center location of {_block}, visibleRange 10, pulseDelay 1, keepFor 1 seconds
- play raw sound "note.bassattack" at {_player} with pitch 1 volume 1
- send "&7[&6IslePvPbuildings&7] &6>> &cYou dont have enough items yet!" to {_player}
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement