Passengers from Spawn Eggs

Passengers from Spawn Eggs

Data pack

Makes the Passenger NBT work for entities in spawn eggs.

Server

60 downloads
1 follower
Follow Save
Filter versions...

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"}]}}]).

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}]}}}

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}]}}}

Project members

TheKnytemayor

Member

Details

Licensed ARR
Published a year ago
Updated a month ago