搜索历史
清空
暂无搜索历史
论坛热搜
1
Jenny — 有趣的模拟女友模组|珍妮模组
热
3
上古老物 冒险者传说 by WhiteSword
新
5
洛心斗罗-福利|公会据点战|武魂||抽奖|最终版
2
乌托邦探险之旅3.2
热
4
幻虚斗罗V1.5
6
水星迫降——在未知的世界中挣扎
登陆 注册 QQ登陆
快捷导航
查看: 89|回复: 0

[模组分享] 友善生物框架 (BefriendMobs Framework)-MOD模组

[复制链接]

5021

主题

60

回帖

1万

积分

龙❁妻

Rank: 8Rank: 8

经验
10302 EP
金粒
5181 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 16:50:16 | 显示全部楼层 |阅读模式
友善生物框架 (BefriendMobs Framework)Github |相关wiki |源站链接支持: forge一个用于从任何现有生物生成友善生物的库。

友善生物框架旨在帮助Modder们轻松创建驯服(或称驯养)生物和友善生物的功能,而不受它们的类型层次结构的限制。

例如,大多数基础可驯服生物(例如狼)都继承自可驯服生物类(TamableMob class)。如果您想让敌对生物(例如僵尸)变得友好或被驯服,仅使用基础API可能会变得复杂。但是,使用友善生物框架,您可以轻松地创建僵尸的子类(或扩展Mob的任何其他内容),而无需使用任何基础的可驯服生物接口,也不必考虑现有生物的类型层次结构。

注意:此库仍在开发中,API可能会随更新而更改,因此不建议立即将此库用于开发。如果必须使用,请在Mod中指定库版本,而不是给出一个范围。

Github:

例如,依赖的Mod,请参阅:https://modrinth.com/mod/befriendmobs-days-with-monster-girls]链接

对于早期版本,请参阅:https://www.curseforge.com/minecraft/mc-mods/befriendmobs]链接

欢迎提出更多功能请求,特别是当您希望在不能提供事件的位置插入代码,或者您期望的属性是硬编码时。

QQ群ID: 336794947 (中文)

来自Modrinth所有游戏版本1.20.11.18.21.19.2所有类型forgeBefriendMobs Framework 0.2.18befriendmobs-1.20.1-0.2.18.jar下载0.2.18#Release##### BefriendMobsAdded Mixin. Now adding BefriendMobs API as dependency requires to add Mixin in `build.gradle`. For details see `build.gradle` in mod *Days with Monster Girls*.Added `HealingItemTable` to handle healing. It accepts 4 methods to check if can use: item, tag, item stack predicate and item registry key. Generally it accepts only one of them. Adding multiple methods is allowed but not recommended.Changed `IBefriendedMob#getHealingItems` to `HealingItemTable`. Deprecated `IBefriendedMob#getNonconsumingHealingItems`.Changed `CHealingHandler` to adapt `HealingItemTable`. Now ``CHealingHandler#applyHealingItem` accepts cooldown ticks input. Deprecated `CHealingHandler#getHealingCooldownTicks`.##### NaUtilsAdded Mixin. Now adding BefriendMobs API as dependency requires Mixin in `build.gradle`. For details see `build.gradle` in mod *Days with Monster Girls*.Added `ItemEntityHurtEvent` and `NonLivingEntityHurtEvent`, allowing to cancel damages to non-living entities.Added `ConditionalAttributeModifier` as an auto-updating `AttributeModifier` added and removed depending on a `Predicate` as condition.Added`ObjectOrSupplier` as a supplier either from a static object or a functional `Supplier`.Added `ObjectOrKey` as a supplier either from a static object or a key of registry.Added `ItemOrKey` and `EntityTypeOrKey` as wrappers for `ObjectOrKey` of `Item` and `EntityType` .Added `DynamicObjectKeyMap` as a mapping from registered objects to something. It has `ObjectOrKey` as keys and `ObjectOrSupplier` as values, allowing to dynamically find objects from registries and get volatile values (e.g. max health) from static map objects.Added `DynamicItemKeyMap` and `DynamicEntityTypeKeyMap` as wrappers of `DynamicObjectKeyMap` of `Item` and `EntityType`.展开版本: 0.2.18支持游戏: 1.20.1类型:ForgeRelease下载次数: 2,159BefriendMobs Framework 0.0.18befriendmobs-1.18.2-0.0.18.jar下载0.0.18#Beta##### BefriendMobsAdded Mixin. Now adding BefriendMobs API as dependency requires to add Mixin in `build.gradle`. For details see `build.gradle` in mod *Days with Monster Girls*.Added `HealingItemTable` to handle healing. It accepts 4 methods to check if can use: item, tag, item stack predicate and item registry key. Generally it accepts only one of them. Adding multiple methods is allowed but not recommended.Changed `IBefriendedMob#getHealingItems` to `HealingItemTable`. Deprecated `IBefriendedMob#getNonconsumingHealingItems`.Changed `CHealingHandler` to adapt `HealingItemTable`. Now ``CHealingHandler#applyHealingItem` accepts cooldown ticks input. Deprecated `CHealingHandler#getHealingCooldownTicks`.##### NaUtilsAdded Mixin. Now adding BefriendMobs API as dependency requires Mixin in `build.gradle`. For details see `build.gradle` in mod *Days with Monster Girls*.Added `ItemEntityHurtEvent` and `NonLivingEntityHurtEvent`, allowing to cancel damages to non-living entities.Added `ConditionalAttributeModifier` as an auto-updating `AttributeModifier` added and removed depending on a `Predicate` as condition.Added`ObjectOrSupplier` as a supplier either from a static object or a functional `Supplier`.Added `ObjectOrKey` as a supplier either from a static object or a key of registry.Added `ItemOrKey` and `EntityTypeOrKey` as wrappers for `ObjectOrKey` of `Item` and `EntityType` .Added `DynamicObjectKeyMap` as a mapping from registered objects to something. It has `ObjectOrKey` as keys and `ObjectOrSupplier` as values, allowing to dynamically find objects from registries and get volatile values (e.g. max health) from static map objects.Added `DynamicItemKeyMap` and `DynamicEntityTypeKeyMap` as wrappers of `DynamicObjectKeyMap` of `Item` and `EntityType`.展开版本: 0.0.18支持游戏: 1.18.2类型:ForgeBeta下载次数: 632BefriendMobs Framework 0.1.18befriendmobs-1.19.2-0.1.18.jar下载0.1.18#Beta##### BefriendMobsAdded Mixin. Now adding BefriendMobs API as dependency requires to add Mixin in `build.gradle`. For details see `build.gradle` in mod *Days with Monster Girls*.Added `HealingItemTable` to handle healing. It accepts 4 methods to check if can use: item, tag, item stack predicate and item registry key. Generally it accepts only one of them. Adding multiple methods is allowed but not recommended.Changed `IBefriendedMob#getHealingItems` to `HealingItemTable`. Deprecated `IBefriendedMob#getNonconsumingHealingItems`.Changed `CHealingHandler` to adapt `HealingItemTable`. Now ``CHealingHandler#applyHealingItem` accepts cooldown ticks input. Deprecated `CHealingHandler#getHealingCooldownTicks`.##### NaUtilsAdded Mixin. Now adding BefriendMobs API as dependency requires Mixin in `build.gradle`. For details see `build.gradle` in mod *Days with Monster Girls*.Added `ItemEntityHurtEvent` and `NonLivingEntityHurtEvent`, allowing to cancel damages to non-living entities.Added `ConditionalAttributeModifier` as an auto-updating `AttributeModifier` added and removed depending on a `Predicate` as condition.Added`ObjectOrSupplier` as a supplier either from a static object or a functional `Supplier`.Added `ObjectOrKey` as a supplier either from a static object or a key of registry.Added `ItemOrKey` and `EntityTypeOrKey` as wrappers for `ObjectOrKey` of `Item` and `EntityType` .Added `DynamicObjectKeyMap` as a mapping from registered objects to something. It has `ObjectOrKey` as keys and `ObjectOrSupplier` as values, allowing to dynamically find objects from registries and get volatile values (e.g. max health) from static map objects.Added `DynamicItemKeyMap` and `DynamicEntityTypeKeyMap` as wrappers of `DynamicObjectKeyMap` of `Item` and `EntityType`.展开版本: 0.1.18支持游戏: 1.19.2类型:ForgeBeta下载次数: 710全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
友善生物框架
楼主 2025-8-10 16:50:16 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

我的世界(Minecraft)小僵尸论坛

新会员

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2026-6-14 11:43 , Processed in 0.382178 second(s), 153 queries .

快速回复 返回顶部 返回列表