Passengers from Spawn Eggs
This pack fixes the bug where spawn eggs do not allow mobs to spawn with passengers. To acheive this, the pack uses marker entities' data NBT component.
The tree of the data needed to be used looks like this:
id:"minecraft:marker",data:{replace_with_entity:{id:"<namespaced_id: entity>",nbt:<compound: entity data>}}
Here is an example for a spider jockey:
/give @p skeleton_spawn_egg[entity_data={id:"minecraft:marker",data:{replace_with_entity:{id:"minecraft:spider",nbt:{Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow"}]}],active_effects:[{id:"minecraft:strength",duration:-1}]}}}},item_name='"Spider Jockey Spawn Egg"'] 1
ℹ️ IMPORTANT ℹ️
These examples work successfully in 1.21 to 1.21.4 (1.21.x - current).
Hope this data pack helps!
Details
Licensed ARR
Published a year ago
Updated a month ago