Advertisement
akon1248

the bone

Jul 25th, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. on rightclick with enchanted book:
  2. name of player's tool is "&4&lザ・ボーン"
  3. if {mp.%UUID of player%} >= 50:
  4. remove 50 from {mp.%UUID of player%}
  5. play sound "entity.zombie_villager.converted" to all players at player with volume 1 pitch 1
  6. execute console command "execute %player% ~ ~ ~ particle witchMagic ~ ~1 ~ 0.3 0.5 0.3 0 500 force"
  7. spawn a skeleton at player
  8. add "the_bone" to scoreboard tags of last spawned skeleton
  9. add "owner:%player%" to scoreboard tags of last spawned skeleton
  10. set {disappeartime::%UUID of last spawned skeleton%} to 400
  11. wait 1 tick
  12. ignite last spawned skeleton for 0 tick
  13. add "{Fire:-1s,Health:50.0f,Attributes:[{Name:""generic.maxHealth"",Base:50.0d},{Name:""generic.attackDamage"",Base:4.0d},{Name:""generic.followRange"",Base:100.0d}],ArmorItems:[{},{},{},{id:""minecraft:leather_helmet"",Count:1b,Damage:0s,Unbreakable:1b,AttributeModifiers:[]}],HandItems:[{},{}]}" to nbt of last spawned skeleton
  14. else:
  15. send "&cMPが足りません!"
  16. play sound "ITEM_BOTTLE_FILL_DRAGONBREATH" to player with volume 1 and pitch 5
  17. on death of skeleton:
  18. victim has scoreboard tag "the_bone"
  19. clear drops
  20. on damage of skeleton:
  21. victim has scoreboard tag "the_bone"
  22. attacker is a player
  23. attacker's gamemode is not creative
  24. cancel event
  25. on target:
  26. event-entity is a skeleton
  27. event-entity has scoreboard tag "the_bone"
  28. cancel event
  29. on packet event play_server_entity_equipment:
  30. player's world pentity 0 of event-packet is a skeleton
  31. player's world pentity 0 of event-packet has scoreboard tag "the_bone"
  32. "ItemModifier" pinfo 0 of event-packet is not air
  33. cancel event
  34. every tick:
  35. loop {disappeartime::*}:
  36. remove 1 from {disappeartime::%loop-index%}
  37. {disappeartime::%loop-index%} <= 0
  38. delete {disappeartime::%loop-index%}
  39. set {_e} to entity from uuid loop-index
  40. execute console command "execute %loop-index% ~ ~ ~ particle explode ~ ~1 ~ 0.3 0.5 0.3 0 500 force"
  41. set {_packet} to new play_server_entity_destroy packet
  42. set int array pnum 0 of {_packet} to id of {_e}
  43. send all players packet {_packet}
  44. add "{Silent:1b,DeathTime:20s}" to nbt of {_e}
  45. kill {_e}
  46. on damage of player:
  47. event is not cancelled
  48. attacker is a living entity
  49. attacker is not a player
  50. loop all entities:
  51. loop-entity is not a player
  52. loop-entity is not armor stand
  53. loop-entity is a living entity
  54. attacker is not loop-entity
  55. loop scoreboard tags of loop-entity:
  56. loop-value-2 is "owner:%victim%"
  57. set target of loop-entity to attacker
  58. stop loop
  59. on damage:
  60. attacker is a player
  61. victim is a living entity
  62. victim is not armor stand
  63. victim is not a player
  64. event is not cancelled
  65. loop all entities:
  66. loop-entity is not a player
  67. loop-entity is not armor stand
  68. loop-entity is a living entity
  69. victim is not loop-entity
  70. loop scoreboard tags of loop-entity:
  71. loop-value-2 is "owner:%attacker%"
  72. set target of loop-entity to victim
  73. stop loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement