Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 5 tick in "Rust":
- loop all players:
- if tool of loop-player is paper:
- if name of loop-player's tool contains "&f&oWall":
- set {_block} to loop-player's targeted block
- if {_block} is stone:6:
- make loop-player see block at location 1 meters above {_block} as light blue glass block
- if block 1 up 0 south event-location is not air:
- make loop-player see block at location 1 meters above {_loc
- make loop-player see block at location 2 meters above {_block} as light blue glass block
- make loop-player see block at location 3 meters above {_block} as light blue glass block
- make loop-player see block at location 4 meters above {_block} as light blue glass block
- make loop-player see block 1 meter east above {_block} as light blue glass block
- make loop-player see block 1 meter west above {_block} as light blue glass block
- make loop-player see block 1 meter east 1 meter above {_block} as light blue glass block
- on right click with paper:
- {cooldown::click::%player%} is not set:
- set {cooldown::click::%player%} to now
- difference between now and {cooldown::click::%player%} is more than 5 tick:
- set {cooldown::click::%player%} to now
- if name of player's tool is "&f&oPlataform":
- set {_build} to true
- if block 1 up 3 south event-location is not air:
- set {_build} to false
- if block 1 up 0 south event-location is not air:
- set {_build} to false
- if block up 1 north event-location is not air:
- set {_build} to false
- if block up 1 south event-location is not air:
- set {_build} to false
- if block up 1 east event-location is not air:
- set {_build} to false
- if block up 1 west event-location is not air:
- set {_build} to false
- if block up 1 southeast event-location is not air:
- set {_build} to false
- if block up 1 northwest event-location is not air:
- set {_build} to false
- if block up 1 southwest event-location is not air:
- set {_build} to false
- if block up 1 northeast event-location is not air:
- set {_build} to false
- if block up 2 north event-location is not air:
- set {_build} to false
- if block up 2 south event-location is not air:
- set {_build} to false
- if block up 2 east event-location is not air:
- set {_build} to false
- if block up 2 west event-location is not air:
- set {_build} to false
- if block up 2 east 1 south event-location is not air:
- set {_build} to false
- if block up 2 east 1 north event-location is not air:
- set {_build} to false
- if block up 2 north 1 east event-location is not air:
- set {_build} to false
- if block up 2 north 1 west event-location is not air:
- set {_build} to false
- if block up 2 west 1 north event-location is not air:
- set {_build} to false
- if block up 2 west 1 south event-location is not air:
- set {_build} to false
- if block up 2 south 1 west event-location is not air:
- set {_build} to false
- if block up 2 south 1 east event-location is not air:
- set {_build} to false
- if block up 2 southeast event-location is not air:
- set {_build} to false
- if block up 2 northwest event-location is not air:
- set {_build} to false
- if block up 2 southwest event-location is not air:
- set {_build} to false
- if block up 2 northeast event-location is not air:
- set {_build} to false
- if {_build} is true:
- if the target block is grass or snow:
- drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
- play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
- set block 1 up 0 south event-location to piston:1
- set block at block up 1 north event-location to oak wood plank
- set block at block up 1 south event-location to oak wood plank
- set block at block up 1 east event-location to oak wood plank
- set block at block up 1 west event-location to oak wood plank
- set block at block up 1 southeast event-location to oak wood plank
- set block at block up 1 northwest event-location to oak wood plank
- set block at block up 1 southwest event-location to oak wood plank
- set block at block up 1 northeast event-location to oak wood plank
- set block at block up 2 north event-location to stone:6
- set block at block up 2 south event-location to stone:6
- set block at block up 2 east event-location to stone:6
- set block at block up 2 west event-location to stone:6
- set block at block up 2 east 1 south event-location to upside-down double stone slab
- set block at block up 2 east 1 north event-location to upside-down double stone slab
- set block at block up 2 north 1 east event-location to upside-down double stone slab
- set block at block up 2 north 1 west event-location to upside-down double stone slab
- set block at block up 2 west 1 north event-location to upside-down double stone slab
- set block at block up 2 west 1 south event-location to upside-down double stone slab
- set block at block up 2 south 1 west event-location to upside-down double stone slab
- set block at block up 2 south 1 east event-location to upside-down double stone slab
- set block at block up 2 southeast event-location to mushroom stem6 block
- set block at block up 2 northwest event-location to mushroom stem6 block
- set block at block up 2 southwest event-location to mushroom stem6 block
- set block at block up 2 northeast event-location to mushroom stem6 block
- set block at block -0 up 2 southeast event-location to oak wood
- set block at block -1 up 2 southeast event-location to oak wood
- set block at block -2 up 2 southeast event-location to oak wood
- set block at block -3 up 2 southeast event-location to oak wood
- set block at block -0 up 2 northwest event-location to oak wood
- set block at block -1 up 2 northwest event-location to oak wood
- set block at block -2 up 2 northwest event-location to oak wood
- set block at block -3 up 2 northwest event-location to oak wood
- set block at block -0 up 2 southwest event-location to oak wood
- set block at block -1 up 2 southwest event-location to oak wood
- set block at block -2 up 2 southwest event-location to oak wood
- set block at block -3 up 2 southwest event-location to oak wood
- set block at block -0 up 2 northeast event-location to oak wood
- set block at block -1 up 2 northeast event-location to oak wood
- set block at block -2 up 2 northeast event-location to oak wood
- set block at block -3 up 2 northeast event-location to oak wood
- remove paper named "&f&oPlataform" from the player
- else if the target block is stone:6:
- if player's facing is north:
- set {_build} to true
- if block 1 north 1 west event-location is not air:
- set {_build} to false
- if {_build} is true:
- drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
- play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
- set block at block 1 north event-location to oak wood plank
- set block at block 1 north 1 west to oak wood plank
- set block at block 1 north 2 west to upside-down double stone slab
- set block at block 1 north 1 east to oak wood plank
- set block at block 1 north 2 east to upside-down double stone slab
- set block 2 north event-location to piston:1
- set block at block 2 north 1 west to oak wood plank
- set block at block 2 north 2 west to stone:6
- set block at block 2 north 1 east to oak wood plank
- set block at block 2 north 2 east to stone:6
- set block at block 3 north event-location to oak wood plank
- set block at block 3 north 1 west to oak wood plank
- set block at block 3 north 2 west to upside-down double stone slab
- set block at block 3 north 1 east to oak wood plank
- set block at block 3 north 2 east to upside-down double stone slab
- set block at block 4 north event-location to stone:6
- set block at block 4 north 1 west to upside-down double stone slab
- set block at block 4 north 2 west to mushroom stem6 block
- set block at block 4 north 1 east to upside-down double stone slab
- set block at block 4 north 2 east to mushroom stem6 block
- set block at block 4 north 2 west -1 up to oak wood
- set block at block 4 north 2 west -2 up to oak wood
- set block at block 4 north 2 west -3 up to oak wood
- set block at block 4 north 2 west -4 up to oak wood
- set block at block 4 north 2 east -1 up to oak wood
- set block at block 4 north 2 east -2 up to oak wood
- set block at block 4 north 2 east -3 up to oak wood
- set block at block 4 north 2 east -4 up to oak wood
- else if player's facing is south:
- set {_build} to true
- if block 1 north 1 west event-location i13s not air:
- set {_build} to false
- if {_build} is true:
- drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
- play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
- set block at block 1 south event-location to oak wood plank
- set block at block 1 south 1 west to oak wood plank
- set block at block 1 south 2 west to upside-down double stone slab
- set block at block 1 south 1 east to oak wood plank
- set block at block 1 south 2 east to upside-down double stone slab
- set block 2 south event-location to piston:1
- set block at block 2 south 1 west to oak wood plank
- set block at block 2 south 2 west to stone:6
- set block at block 2 south 1 east to oak wood plank
- set block at block 2 south 2 east to stone:6
- set block at block 3 south event-location to oak wood plank
- set block at block 3 south 1 west to oak wood plank
- set block at block 3 south 2 west to upside-down double stone slab
- set block at block 3 south 1 east to oak wood plank
- set block at block 3 south 2 east to upside-down double stone slab
- set block at block 4 south event-location to stone:6
- set block at block 4 south 1 west to upside-down double stone slab
- set block at block 4 south 2 west to mushroom stem6 block
- set block at block 4 south 1 east to upside-down double stone slab
- set block at block 4 south 2 east to mushroom stem6 block
- else if player's facing is east:
- set {_build} to true
- if block 1 north 1 west event-location i13s not air:
- set {_build} to false
- if {_build} is true:
- drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
- play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
- set block at block 1 east event-location to oak wood plank
- set block at block 1 east 1 north event-location to oak wood plank
- set block at block 1 east 1 south event-location to oak wood plank
- set block at block 1 east 2 north event-location to upside-down double stone slab
- set block at block 1 east 2 south event-location to upside-down double stone slab
- set block at block 2 east event-location to piston:1
- set block at block 2 east 1 north event-location to oak wood plank
- set block at block 2 east 1 south event-location to oak wood plank
- set block at block 2 east 2 north event-location to stone:6
- set block at block 2 east 2 south event-location to stone:6
- set block at block 3 east event-location to oak wood plank
- set block at block 3 east 1 north event-location to oak wood plank
- set block at block 3 east 1 south event-location to oak wood plank
- set block at block 3 east 2 north event-location to upside-down double stone slab
- set block at block 3 east 2 south event-location to upside-down double stone slab
- set block at block 4 east event-location to stone:6
- set block at block 4 east 1 north event-location to upside-down double stone slab
- set block at block 4 east 1 south event-location to upside-down double stone slab
- set block at block 4 east 2 north event-location to mushroom stem6 block
- set block at block 4 east 2 south event-location to mushroom stem6 block
- else if player's facing is west:
- set {_build} to true
- if block 1 north 1 west event-location i13s not air:
- set {_build} to false
- if {_build} is true:
- drawDot count 5, particle "cloud", offsetXYZ 1, 1, 1, center location of target block, visibleRange 10, keepFor 1 second
- play raw sound "build.woodupgrade" at player with pitch 1 volume 0.6
- set block at block 1 west event-location to oak wood plank
- set block at block 1 west 1 north event-location to oak wood plank
- set block at block 1 west 1 south event-location to oak wood plank
- set block at block 1 west 2 north event-location to upside-down double stone slab
- set block at block 1 west 2 south event-location to upside-down double stone slab
- set block at block 2 west event-location to piston:1
- set block at block 2 west 1 north event-location to oak wood plank
- set block at block 2 west 1 south event-location to oak wood plank
- set block at block 2 west 2 north event-location to stone:6
- set block at block 2 west 2 south event-location to stone:6
- set block at block 3 west event-location to oak wood plank
- set block at block 3 west 1 north event-location to oak wood plank
- set block at block 3 west 1 south event-location to oak wood plank
- set block at block 3 west 2 north event-location to upside-down double stone slab
- set block at block 3 west 2 south event-location to upside-down double stone slab
- set block at block 4 west event-location to stone:6
- set block at block 4 west 1 north event-location to upside-down double stone slab
- set block at block 4 west 1 south event-location to upside-down double stone slab
- set block at block 4 west 2 north event-location to mushroom stem6 block
- set block at block 4 west 2 south event-location to mushroom stem6 block
- else:
- cancel event
- message "&cVocê não pode construir essa plataforma com blocos pertos."
- else:
- send "&aAguarde alguns segundo(s) para construir outra plataforma." to player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement