Advertisement
sora200507

Untitled

Aug 20th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. on death of powered creeper:
  2. message "&bLooted : 1x diamond" to attacker
  3. execute console command "/give %attacker% diamond 1 0"
  4. stop
  5. on death of player:
  6. message "&bLooted : 2x diamond" to attacker
  7. execute console command "/give %attacker% diamond 2 0"
  8. wait 1 seconds
  9. force the event-player to respawn
  10. wait 2 ticks
  11. execute console command "/effect %victim% resistance 20 99"
  12. stop
  13. on first join:
  14. set {%player%::notpvp} to true
  15. message "&b準備ができたら/pvpでPVPがonになります"
  16. stop
  17. command /pvp:
  18. trigger:
  19. if {%player%::notpvp} is set:
  20. broadcast "%player%さんがpvpをonにしました!"
  21. clear {%player%::notpvp}
  22. stop
  23. else:
  24. stop
  25. on damage of player:
  26. attacker is player
  27. if {%attacker%::notpvp} is set:
  28. cancel event
  29. stop
  30. if {%victim%::notpvp} is set:
  31. cancel event
  32. stop
  33. else:
  34. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement