Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on enable:
- set {cw::title} to "&8[&eCraftWars&8]&7" #Default: "&8[&eCraftWars&8]&7"
- command /craftwars [<text>] [<text>] [<text>]:
- aliases: cw
- trigger:
- if player has permission "craftwars.*":
- if arg 1 is "help":
- if arg 2 is not set:
- execute player command "/cw help 1"
- stop
- if arg 2 is "1":
- send "&8________[&eCraftWars&8]________"
- json("%player%", "&8/craftwars help||ttp:&9Krijg de help pagina||cmd:/cw help")
- json("%player%", "&8/craftwars shop||ttp:&9Ga naar de shop||cmd:/cw shop")
- send "&8________[&ePag: 1/1&8]________"
- stop
- if arg 1 is "shop":
- openShop(player, "engineer", "main")
- stop
- else:
- send "%{cw::title}% Dit is geen geldig argument, doe /craftwars help."
- stop
- #else
- #Machine:
- on rightclick:
- if player is holding a book named "&3Dirt Machine" with lore "&8Plaats deze om een dirt machine te maken.":
- set {_world} to world of player
- if player's facing is north:
- set {_fblock.x2} to targeted block of player's x-coordinate
- set {_fblock.y2} to targeted block of player's y-coordinate+1
- set {_fblock.z2} to targeted block of player's z-coordinate-1
- set {_fblock.x3} to targeted block of player's x-coordinate
- set {_fblock.y3} to targeted block of player's y-coordinate+1
- set {_fblock.z3} to targeted block of player's z-coordinate-1
- if player's facing is east:
- set {_fblock.x2} to targeted block of player's x-coordinate+1
- set {_fblock.y2} to targeted block of player's y-coordinate+1
- set {_fblock.z2} to targeted block of player's z-coordinate
- if player's facing is south:
- #Belt
- set {_fblock.x1} to targeted block of player's x-coordinate
- set {_fblock.y1} to targeted block of player's y-coordinate+1
- set {_fblock.z1} to targeted block of player's z-coordinate
- set {_fblock.x2} to targeted block of player's x-coordinate
- set {_fblock.y2} to targeted block of player's y-coordinate+1
- set {_fblock.z2} to targeted block of player's z-coordinate+1
- set {_fblock.x3} to targeted block of player's x-coordinate
- set {_fblock.y3} to targeted block of player's y-coordinate+1
- set {_fblock.z3} to targeted block of player's z-coordinate+2
- set {_fblock.x4} to targeted block of player's x-coordinate
- set {_fblock.y4} to targeted block of player's y-coordinate+1
- set {_fblock.z4} to targeted block of player's z-coordinate+3
- set {_fblock.x5} to targeted block of player's x-coordinate
- set {_fblock.y5} to targeted block of player's y-coordinate+1
- set {_fblock.z5} to targeted block of player's z-coordinate+4
- set {_fblock.x6} to targeted block of player's x-coordinate
- set {_fblock.y6} to targeted block of player's y-coordinate+1
- set {_fblock.z6} to targeted block of player's z-coordinate+5
- set {_fblock.x7} to targeted block of player's x-coordinate
- set {_fblock.y7} to targeted block of player's y-coordinate+1
- set {_fblock.z7} to targeted block of player's z-coordinate+6
- #Walls
- set {_fblock.x8} to targeted block of player's x-coordinate+1
- set {_fblock.y8} to targeted block of player's y-coordinate+1
- set {_fblock.z8} to targeted block of player's z-coordinate
- set {_fblock.x9} to targeted block of player's x-coordinate-1
- set {_fblock.y9} to targeted block of player's y-coordinate+1
- set {_fblock.z9} to targeted block of player's z-coordinate
- set {_fblock.x10} to targeted block of player's x-coordinate+1
- set {_fblock.y10} to targeted block of player's y-coordinate+1
- set {_fblock.z10} to targeted block of player's z-coordinate+1
- set {_fblock.x11} to targeted block of player's x-coordinate+1
- set {_fblock.y11} to targeted block of player's y-coordinate+1
- set {_fblock.z11} to targeted block of player's z-coordinate+2
- set {_fblock.x12} to targeted block of player's x-coordinate+1
- set {_fblock.y12} to targeted block of player's y-coordinate+1
- set {_fblock.z12} to targeted block of player's z-coordinate+3
- set {_fblock.x13} to targeted block of player's x-coordinate+1
- set {_fblock.y13} to targeted block of player's y-coordinate+1
- set {_fblock.z13} to targeted block of player's z-coordinate+4
- set {_fblock.x14} to targeted block of player's x-coordinate+1
- set {_fblock.y14} to targeted block of player's y-coordinate+1
- set {_fblock.z14} to targeted block of player's z-coordinate+5
- set {_fblock.x15} to targeted block of player's x-coordinate+1
- set {_fblock.y15} to targeted block of player's y-coordinate+1
- set {_fblock.z15} to targeted block of player's z-coordinate+6
- set {_fblock.x16} to targeted block of player's x-coordinate-1
- set {_fblock.y16} to targeted block of player's y-coordinate+1
- set {_fblock.z16} to targeted block of player's z-coordinate
- set {_fblock.x17} to targeted block of player's x-coordinate+1
- set {_fblock.y17} to targeted block of player's y-coordinate+1
- set {_fblock.z17} to targeted block of player's z-coordinate
- set {_fblock.x18} to targeted block of player's x-coordinate-1
- set {_fblock.y18} to targeted block of player's y-coordinate+1
- set {_fblock.z18} to targeted block of player's z-coordinate
- set {_fblock.x19} to targeted block of player's x-coordinate-1
- set {_fblock.y19} to targeted block of player's y-coordinate+1
- set {_fblock.z19} to targeted block of player's z-coordinate+1
- set {_fblock.x20} to targeted block of player's x-coordinate-1
- set {_fblock.y20} to targeted block of player's y-coordinate+1
- set {_fblock.z20} to targeted block of player's z-coordinate+2
- set {_fblock.x21} to targeted block of player's x-coordinate-1
- set {_fblock.y21} to targeted block of player's y-coordinate+1
- set {_fblock.z21} to targeted block of player's z-coordinate+3
- set {_fblock.x22} to targeted block of player's x-coordinate-1
- set {_fblock.y22} to targeted block of player's y-coordinate+1
- set {_fblock.z22} to targeted block of player's z-coordinate+4
- set {_fblock.x23} to targeted block of player's x-coordinate-1
- set {_fblock.y23} to targeted block of player's y-coordinate+1
- set {_fblock.z23} to targeted block of player's z-coordinate+5
- set {_fblock.x24} to targeted block of player's x-coordinate-1
- set {_fblock.y24} to targeted block of player's y-coordinate+1
- set {_fblock.z24} to targeted block of player's z-coordinate+6
- set {_fblock.x25} to targeted block of player's x-coordinate+1
- set {_fblock.y25} to targeted block of player's y-coordinate+2
- set {_fblock.z25} to targeted block of player's z-coordinate
- set {_fblock.x26} to targeted block of player's x-coordinate+1
- set {_fblock.y26} to targeted block of player's y-coordinate+2
- set {_fblock.z26} to targeted block of player's z-coordinate+1
- set {_fblock.x27} to targeted block of player's x-coordinate+1
- set {_fblock.y27} to targeted block of player's y-coordinate+2
- set {_fblock.z27} to targeted block of player's z-coordinate+2
- set {_fblock.x28} to targeted block of player's x-coordinate+1
- set {_fblock.y28} to targeted block of player's y-coordinate+2
- set {_fblock.z28} to targeted block of player's z-coordinate+3
- set {_fblock.x29} to targeted block of player's x-coordinate+1
- set {_fblock.y29} to targeted block of player's y-coordinate+2
- set {_fblock.z29} to targeted block of player's z-coordinate+4
- if player's facing is west:
- set {_fblock.x2} to targeted block of player's x-coordinate-1
- set {_fblock.y2} to targeted block of player's y-coordinate+1
- set {_fblock.z2} to targeted block of player's z-coordinate
- #stone bricks:3 = chiseled stone bricks
- #Belt
- set block at location {_fblock.x1}, {_fblock.y1}, {_fblock.z1} in world {_world} to polished andesite
- set block at location {_fblock.x2}, {_fblock.y2}, {_fblock.z2} in world {_world} to polished andesite
- set block at location {_fblock.x3}, {_fblock.y3}, {_fblock.z3} in world {_world} to polished andesite
- set block at location {_fblock.x4}, {_fblock.y4}, {_fblock.z4} in world {_world} to polished andesite
- set block at location {_fblock.x5}, {_fblock.y5}, {_fblock.z5} in world {_world} to polished andesite
- set block at location {_fblock.x6}, {_fblock.y6}, {_fblock.z6} in world {_world} to polished andesite
- set block at location {_fblock.x7}, {_fblock.y7}, {_fblock.z7} in world {_world} to polished andesite
- #Walls - Left
- set block at location {_fblock.x8}, {_fblock.y8}, {_fblock.z8} in world {_world} to stone bricks:3
- set block at location {_fblock.x9}, {_fblock.y9}, {_fblock.z9} in world {_world} to stone bricks:3
- set block at location {_fblock.x10}, {_fblock.y10}, {_fblock.z10} in world {_world} to stone bricks
- set block at location {_fblock.x11}, {_fblock.y11}, {_fblock.z11} in world {_world} to stone bricks
- set block at location {_fblock.x12}, {_fblock.y12}, {_fblock.z12} in world {_world} to stone bricks:3
- set block at location {_fblock.x13}, {_fblock.y13}, {_fblock.z13} in world {_world} to stone bricks
- set block at location {_fblock.x14}, {_fblock.y14}, {_fblock.z14} in world {_world} to stone bricks
- set block at location {_fblock.x15}, {_fblock.y15}, {_fblock.z15} in world {_world} to stone bricks:3
- set block at location {_fblock.x16}, {_fblock.y16}, {_fblock.z16} in world {_world} to stone bricks:3
- #Walls - Right
- set block at location {_fblock.x17}, {_fblock.y17}, {_fblock.z17} in world {_world} to stone bricks:3
- set block at location {_fblock.x18}, {_fblock.y18}, {_fblock.z18} in world {_world} to stone bricks:3
- set block at location {_fblock.x19}, {_fblock.y19}, {_fblock.z19} in world {_world} to stone bricks
- set block at location {_fblock.x20}, {_fblock.y20}, {_fblock.z20} in world {_world} to stone bricks
- set block at location {_fblock.x21}, {_fblock.y21}, {_fblock.z21} in world {_world} to stone bricks:3
- set block at location {_fblock.x22}, {_fblock.y22}, {_fblock.z22} in world {_world} to stone bricks
- set block at location {_fblock.x23}, {_fblock.y23}, {_fblock.z23} in world {_world} to stone bricks
- set block at location {_fblock.x24}, {_fblock.y24}, {_fblock.z24} in world {_world} to stone bricks:3
- #Slabs
- set block at location {_fblock.x25}, {_fblock.y25}, {_fblock.z25} in world {_world} to cobblestone slab
- set block at location {_fblock.x26}, {_fblock.y26}, {_fblock.z26} in world {_world} to cobblestone slab
- set block at location {_fblock.x27}, {_fblock.y27}, {_fblock.z27} in world {_world} to stone brick stairs
- set block at location {_fblock.x28}, {_fblock.y28}, {_fblock.z28} in world {_world} to stone bricks:3
- set block at location {_fblock.x29}, {_fblock.y29}, {_fblock.z29} in world {_world} to stone brick stairs
- stop
Advertisement
Add Comment
Please, Sign In to add comment