# Item Scripts # ## - MONSTERBALL - ## mobcapture: type: world events: after monsterball damages entity: # - Prevent players from deleting certain entities - define capturable - if <[capturable].contains[]>: # - Drop spawn egg here - playeffect effect:TOTEM at: visibility:50 quantity:100 offset:2.0 - playsound sound:item_totem_use pitch:8 volume:0.2 - drop _spawn_egg - remove - else: - playsound sound:entity_enderman_teleport pitch:1 volume:0.4 - give monsterball - narrate "You can't capture this!" - stop ## - MONSTERBALL - ##