Advertisement
Randall123459

Webcage

Jan 5th, 2017
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bWebcage&f]
  4. C: &b
  5. H: &f
  6.  
  7. command /Webcage <text>:
  8. permission: {@Perm}
  9. usage: /Webcage <On:Off>
  10. trigger:
  11. if arg-1 is "enable" or "on":
  12. set {Webcage} to true
  13. broadcast "{@P}{@C} Webcage {@H}Enabled{@C}!"
  14. if arg-1 is "disable" or "off":
  15. delete {Webcage}
  16. broadcast "{@P}{@C} Webcage {@H}Disabled{@C}!"
  17.  
  18.  
  19. on death of player:
  20. {Webcage} is true
  21. set {_loc} to location of player
  22. loop blocks in radius 10 around {_loc}:
  23. set {_distance} to rounded down distance between {_loc} and loop-block
  24. {_distance} is 4
  25. loop-block is air
  26. set block at loop-block to cobweb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement