Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with enchanted book:
- name of player's tool is "&4&lザ・ボーン"
- if {mp.%UUID of player%} >= 50:
- remove 50 from {mp.%UUID of player%}
- play sound "entity.zombie_villager.converted" to all players at player with volume 1 pitch 1
- execute console command "execute %player% ~ ~ ~ particle witchMagic ~ ~1 ~ 0.3 0.5 0.3 0 500 force"
- spawn a skeleton at player
- add "the_bone" to scoreboard tags of last spawned skeleton
- add "owner:%player%" to scoreboard tags of last spawned skeleton
- set {disappeartime::%UUID of last spawned skeleton%} to 400
- wait 1 tick
- ignite last spawned skeleton for 0 tick
- 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
- else:
- send "&cMPが足りません!"
- play sound "ITEM_BOTTLE_FILL_DRAGONBREATH" to player with volume 1 and pitch 5
- on death of skeleton:
- victim has scoreboard tag "the_bone"
- clear drops
- on damage of skeleton:
- victim has scoreboard tag "the_bone"
- attacker is a player
- attacker's gamemode is not creative
- cancel event
- on target:
- event-entity is a skeleton
- event-entity has scoreboard tag "the_bone"
- cancel event
- on packet event play_server_entity_equipment:
- player's world pentity 0 of event-packet is a skeleton
- player's world pentity 0 of event-packet has scoreboard tag "the_bone"
- "ItemModifier" pinfo 0 of event-packet is not air
- cancel event
- every tick:
- loop {disappeartime::*}:
- remove 1 from {disappeartime::%loop-index%}
- {disappeartime::%loop-index%} <= 0
- delete {disappeartime::%loop-index%}
- set {_e} to entity from uuid loop-index
- execute console command "execute %loop-index% ~ ~ ~ particle explode ~ ~1 ~ 0.3 0.5 0.3 0 500 force"
- set {_packet} to new play_server_entity_destroy packet
- set int array pnum 0 of {_packet} to id of {_e}
- send all players packet {_packet}
- add "{Silent:1b,DeathTime:20s}" to nbt of {_e}
- kill {_e}
- on damage of player:
- event is not cancelled
- attacker is a living entity
- attacker is not a player
- loop all entities:
- loop-entity is not a player
- loop-entity is not armor stand
- loop-entity is a living entity
- attacker is not loop-entity
- loop scoreboard tags of loop-entity:
- loop-value-2 is "owner:%victim%"
- set target of loop-entity to attacker
- stop loop
- on damage:
- attacker is a player
- victim is a living entity
- victim is not armor stand
- victim is not a player
- event is not cancelled
- loop all entities:
- loop-entity is not a player
- loop-entity is not armor stand
- loop-entity is a living entity
- victim is not loop-entity
- loop scoreboard tags of loop-entity:
- loop-value-2 is "owner:%attacker%"
- set target of loop-entity to victim
- stop loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement