if Check(player's held item, "store") is true:
make player shoot a snowball at velocity 10
set metadata value "storestaff::%player's uuid%" of last spawned snowball to true
on projectile hit:
if event-projectile is a snowball:
set {_proj} to event-projectile
set {_uuid} to shooter's uuid
if metadata value "storestaff::%{_uuid}%" of event-projectile is true:
set {_player} to shooter
set {_loc} to event-location
loop all monsters within 10 blocks of {_loc}:
set {_monster} to loop-entity
set {_type} to {_monster} parsed as entity type
add {_type} to {storedstaff::%{_uuid}%::*}
if loop-entity's name is "%{_player}%'s &5%{_type}%":
set {_mobuuid} to uuid of loop-entity
remove {_mobuuid} from {alivestaff::%{_uuid}%::*}
delete loop-entity```
I'm trying to save entity types and then Spawn them later but when the snowball hits no monster disappears and I can't shoot them out can anyone help
#Absorbing entities and saving type
1 messages · Page 1 of 1 (latest)