跳到正文

Passengers from Spawn Eggs

作者:Xhaelen

Makes the Passenger NBT work for entities in spawn eggs.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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!

常见问题

Passengers from Spawn Eggs 支持哪些 Minecraft 版本?

Passengers from Spawn Eggs 支持 Minecraft Java 版 1.21–26.1.2,共 10 个版本。下载时注意选择和你游戏版本一致的文件。

Passengers from Spawn Eggs 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

Xhaelen 的其他作品

查看全部 →