|
|
友善生物框架 (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
回复(0)
收起回复
|