Simple Animal Pens 是一个数据包,允许玩家在单个方块中存储无限数量的生物。该数据包力求全面支持所有原版功能,并与其他数据包(在某些情况下甚至包括模组)兼容。
请在此项目的 GitHub 页面或我的 Discord 服务器上报错。
Fabric 加载器需要 Fabric API。
支持 Ponder lib。
使用 Smithed conventions 以确保兼容性。
物品:
- 动物罐
动物罐用于收集并将动物存入其中。
- 动物栏
这是一个方块,允许你将罐子放置在世界中。首先在你的罐子里收集一些动物,然后右键点击空的动物栏即可放置。
命令:
获取罐子:
loot give @p loot sap:animal_jar
获取动物栏:
loot give @p loot sap:animal_pen
更改数据包设置:
dialog show @s sap:settings
修改数据包行为的技术细节
如果你想为默认不支持的新生物添加支持,本节将为你提供指导。 请记住,你必须使用相同的命名空间才能使其正常工作。 > 注意:当你在函数或标签中看到 `ENTITY` 时,你需要放入不带命名空间的实体名称,例如 "minecraft:cow" -> "cow"1、添加生物
将生物添加到实体标签 #sap:fit_in_jar 中。
你可以编辑整个标签以移除动物,或者你也可以在其上方进行添加,使用 replace: false。
{
"replace": false,
"values": [
"minecraft:cow",
"minecraft:pig",
"minecraft:sheep",
"minecraft:chicken",
"minecraft:turtle",
"minecraft:bee",
"minecraft:rabbit"
]
}
2、添加右键点击功能
在 sap 命名空间中创建新的物品标签 used_on_ENTITY,并指定哪些物品可以用于此生物。
然后在以下位置创建名为 interact_with_ENTITY 的新函数:
sap:click_functions/loot/
在函数内部,你可以运行任何你想要的操作。如果你想要多个右键点击功能或不同的工具,可以将函数拆分为 2 个或更多部分。 蜜蜂的默认文件如下所示:
execute if items entity @p[tag=this] weapon.mainhand *[minecraft:custom_data~{smithed:{ignore:{functionality:1b}}}] run return fail
scoreboard players set @s sap.function_cooldown 12000
scoreboard players operation @s sap.function_cooldown -= @s sap.entity_count
scoreboard players add @s sap.function_cooldown 100
execute as @p[tag=this] run function sap:click_functions/loot/specific/collect_honey
在特定的函数内部,你可以添加音效、清除物品、给予物品、粒子效果等。
3、繁殖
要为繁殖添加可行的食物,请在 MINECRAFT 命名空间下创建(或使用原版的)名为 ENTITY_food 的物品标签。
4、破坏工具
用于破坏农场所需的工具由物品标签 sap:tool_to_break 控制。
5、击杀工具
用于杀死农场内实体的工具由物品标签 sap:tool_to_kill 控制。
Simple Animal Pens is a datapack that let players store infinte amounts of mobs in a single block. The pack strive to full support of all vanilla features as well as compatibility with other packs (and even mods in some cases).
Please report bugs on this project github page or my discord server
Fabric loader requires fabric API
Support Ponder lib
Uses Smithed conventions for compatability
items:
- Animal jar.
the animal jar let you collect and store the animals into it.
- Animal pen.
the pen is block that let you place the jar in the world. in order to do that first collect some animals in your jar then right click on empty pen
Commands:
Give jar:
loot give @p loot sap:animal_jar
Give pen:
loot give @p loot sap:animal_pen
Changing pack settings:
dialog show @s sap:settings
Technical details to modifiy the pack behavior
If you want to add support for new mobs that not supported by default, this section will guide you keep in mind you must use the same namespaces for it to work. > NOTE : when you see `ENTITY` inside function or tag you need to put the entity name without the namespace instead e.g. "minecraft:cow" -> "cow"1-adding mob
adding the mob into the entity tag #sap:fit_in_jar
you can edit the whole tag if you want to remove animal, or you can just addon top of it with replace : false
{
"replace": false,
"values": [
"minecraft:cow",
"minecraft:pig",
"minecraft:sheep",
"minecraft:chicken",
"minecraft:turtle",
"minecraft:bee",
"minecraft:rabbit"
]
}
2-adding right click functions
create new item tag inside sap named used_on_ENTITY and specify what items can be used on this mob
then create new function named interact_with_ENTITY in
sap:click_functions/loot/
inside the function you can run whatever you want. you can split the function into 2 or more if you want more than 1 click function or diffrent tools the default file for bee looks like that
execute if items entity @p[tag=this] weapon.mainhand *[minecraft:custom_data~{smithed:{ignore:{functionality:1b}}}] run return fail
scoreboard players set @s sap.function_cooldown 12000
scoreboard players operation @s sap.function_cooldown -= @s sap.entity_count
scoreboard players add @s sap.function_cooldown 100
execute as @p[tag=this] run function sap:click_functions/loot/specific/collect_honey
inside the specific function you can add sounds,clear items,give items,particals etc
3-breeding
to add viable food for breeding create(or use the vanila one) item tag under the MINECRAFT namespace called ENTITY_food
4-Tool for breaking
tool needed to break the farm controlled by the item tag sap:tool_to_break
5-Tool for killing
tool needed to kill entity in the farm controlled by the item tag sap:tool_to_kill
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.2.1
- 修复了一些问题并清理了代码
1.2.0
已更新为 MC 26.3
-
更新了方块检测方式(旧版农场物品将失效)
-
添加了罐子使用的冷却时间
-
添加了哞菇、棕色哞菇以及可疑炖汤效果的支持
-
现在可以通过 Shift + 右键从罐子中释放生物
-
一些随机的错误修复(希望能成功)
版本 1.1.2
此整合包所需的最低 Minecraft 版本为 1.21.11
功能:
- 在 dp+rp 文件夹中添加了 pack png
- 为每种维拉木材类型新增了 12 种额外的笔类型
- 增加了对 Minecraft 26.3 中白杨木的未来支持
- 使用动物罐不再会减慢你的移动速度
修复:
- 如果船碰到围栏中的动物,围栏会损坏,并且在被挖掘并替换之前无法再放入罐子
- 当背包已满时,从副手放置围栏到已被占用的方块上会导致物品被删除
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧