CREAMPAN0408

Untitled

Jan 17th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. #ダメージを与えた際に敵MOBの体力を表示させまする(いらなさそう)
  2. on damage:
  3. victim is a monster
  4. set {_victim-name::*} to name of victim split by "?"
  5. loop {_victim-name::*}:
  6. set {_mob-name} to loop-value
  7. stop loop
  8. set name of victim to "%{_mob-name}%&c?&f%health of victim%"
  9.  
  10. #死んだときのメッセージを自由にCustomできまする
  11. options:
  12.  
  13. other: %player% is dead.
  14. potion: &f
  15. fall: &f
  16. blockexplosion: &f
  17. entityexplosion: &f
  18. lava: &f
  19. drown: &f
  20.  
  21. # %player% - playername
  22. # %attacker% - attackername
  23. # %attacker's health% - attackerhealth
  24.  
  25. on death of player:
  26. if arg-1 is not set:
  27. if victim is player:
  28. set the death message to "{@other}"
  29. if damage was caused by attack:
  30. if victim is player:
  31. set the death message to "&c%player%&7&l<< &f%attacker%'s HP &e&l%attacker's health%"
  32. if damage was caused by potion:
  33. if victim is player:
  34. set the death message to "{@potion}"
  35. if damage was caused by fall:
  36. if victim is player:
  37. set the death message to "{@fall}"
  38. if damage was caused by block explosion:
  39. if victim is player:
  40. set the death message to "{@blockexplosion}"
  41. if damage was caused by entity explosion:
  42. if victim is player:
  43. set the death message to "{@entityexplosion}"
  44. if damage was caused by lava:
  45. if victim is player:
  46. set the death message to "{@lava}"
  47. if damage was caused by drown:
  48. if victim is player:
  49. set the death message to "{@drown}"
Advertisement
Add Comment
Please, Sign In to add comment