Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. on place of stone:
  2. if player is in the world "{@world}":
  3. if player is holding a stone named "&4&lLille plotmine":
  4. loop blocks in radius 7 around the target block:
  5. if player can build at loop-block:
  6. cancel event
  7. make console execute command "/manuaddp %player% worldedit.*"
  8. wait 0.1 second
  9. set {pos2.x.%player%} to rounded down x coordinate of event-block
  10. set {pos2.y.%player%} to rounded down y coordinate of event-block
  11. set {pos2.z.%player%} to rounded down z coordinate of event-block
  12. set {pos1.x.%player%} to rounded down x coordinate of event-block
  13. set {pos1.y.%player%} to rounded down y coordinate of event-block
  14. set {pos1.z.%player%} to rounded down z coordinate of event-block
  15. set {pos3.x.%player%} to rounded down x coordinate of event-block
  16. set {pos3.y.%player%} to rounded down y coordinate of event-block
  17. set {pos3.z.%player%} to rounded down z coordinate of event-block
  18. set {pos4.x.%player%} to rounded down x coordinate of event-block
  19. set {pos4.y.%player%} to rounded down y coordinate of event-block
  20. set {pos4.z.%player%} to rounded down z coordinate of event-block
  21. remove 1 from {pos1.y.%player%}
  22. set {plotmine.location.%player%} to "x: %{pos1.x.%player%}%, y: %{pos1.y.%player%}%, z: %{pos1.z.%player%}%" parsed as a location
  23. if player can build at {plotmine.location.%player%}:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement