Перейти к содержимому
Mineforgian

Passengers from Spawn Eggs

Makes the Passenger NBT work for entities in spawn eggs.

Загрузки
127
Подписчики
1
Обновлён
2 июня 2026 г.
Лицензия
All-Rights-Reserved

Опубликован 21 сентября 2024 г.

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!

Ченджлог

26.1-2Релиз26.1, 26.1.1, 26.1.2 · 2 июня 2026 г.
  • Changed branding from "Made by TheKnytemayor" to "Made by Xhaelan"
  • Pack format is now 101, with a max of 107 (26.2, though not updated for this version)
1.21.7-8Релиз1.21.7, 1.21.8 · 27 июля 2025 г.

Changes in this version:

  • Updated namespace from pfse tp passengersfromspawneggs to remove ambiguity and potential for clashing with other resource packs, mods and data packs

  • Updated pack format to 64 for Minecraft 1.21.7 and 1.21.8

Note

  • The casing of the replace_with_entity and nbt tags in the marker's data NBT is not finalised
  • Due to accessibility to the data tag in all entity types, the system may change to instead use data.passengers as the source of the passengers of the ridden entity/entities, while all other data would stay (eg. give @p minecraft:spider_spawn_egg[entity_data={id:"minecraft:spider",Health:2.0f,data:{passengers:[{id:"minecraft:skeleton"}]}}]).
1.21.4Релиз1.21.2, 1.21.3, 1.21.4 · 29 декабря 2024 г.

The red highlight over pack selection and the 'incompatable' warning is no more.

The two small changes made are:

  • The spawnData tag is now replace_with_entity
  • The entity_data tag is now nbt

The wording changes were made for better understandability, and the casing change was made to conform with the current migration from camelCase or PascalCase to snake_case.

Spider Jockey Example:

/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

Or with just the 'data' NBT (unchanged):

{replace_with_entity:{id:"minecraft:spider",nbt:{Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow"}]}],active_effects:[{id:"minecraft:strength",duration:-1}]}}}
1.21.xРелиз1.21, 1.21.1 · 21 сентября 2024 г.

Added support for 1.21 (Note: backwards compatability is not planned).

Markers use a 'data' NBT component called "spawnData", which transforms the marker into the 'id' specified, with 'entity_data' as the entity's data.

Spider Jockey Example:

/give @p skeleton_spawn_egg[entity_data={id:"minecraft:marker",data:{spawnData:{id:"minecraft:spider",entity_data:{Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow"}]}],active_effects:[{id:"minecraft:strength",duration:-1}]}}}},item_name='"Spider Jockey Spawn Egg"'] 1

Or with just the 'data' NBT:

{spawnData:{id:"minecraft:spider",entity_data:{Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow"}]}],active_effects:[{id:"minecraft:strength",duration:-1}]}}}

Комментарии

Загружаем…