Advertisement
mrkeith782

Untitled

Apr 16th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /pinata:
  2. permission: dp.epic
  3. trigger:
  4. set {pinata} to true
  5. spawn 1 sheep
  6. set {pinata} to false
  7. broadcast "<red><italic>ThePrisonServer <reset><gray>> <red>Pinata? Yeah! Pinatas!"
  8. on spawn of a sheep:
  9. {pinata} is true:
  10. apply resistance 3 to entity for 999 days
  11. apply regeneration 6 to entity for 999 days
  12. apply slowness 7 to entity for 999 days
  13. set {pinata1} to true
  14. on death of a sheep:
  15. {pinata1} is not true:
  16. stop trigger
  17. set {pinata1} to false
  18. set {_temp} to location of victim
  19. loop 250 times:
  20. wait 0.05 seconds
  21. chance of 4%:
  22. drop a diamond block at {_temp}
  23. chance of 2%:
  24. drop an emerald block at {_temp}
  25. chance of 20%:
  26. drop an iron ingot at {_temp}
  27. chance of 10%:
  28. drop a diamond at {_temp}
  29. chance of 0.5%:
  30. drop a diamond sword of sharpness 2 at {_temp}
  31. chance of 10%:
  32. drop steak at {_temp}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement