Toads Simple Origins: Fish Bowl

这个模组添加了什么?
本模组添加了一种名为“鱼缸”的护甲物品,分为装满水和空两种变体。鱼缸可以通过以下配方使用 8 个玻璃块合成。

站立时右键点击可以装备该物品,蹲下时右键点击则可以将其放置为方块。

方块和已装备的物品可以在不同条件下切换装满或排空状态。

当具有“鳃”的玩家佩戴装满水的鱼缸时,它将显示 HUD 图标并开始追踪氧气消耗。

消耗所需的时间可以通过生成的配置文件进行配置,该文件定义了最大氧气值(以刻为单位)。默认值设置为 6000 刻(5 分钟)。对配置文件的任何更改都可以使用 /reload 命令在游戏中更新。
如何与默认的 Origins 配合使用?
所有 基础起源默认都与该物品兼容。如果您想禁用或修改与该头盔的兼容性,则需要使用加载优先级高于 1 的方式覆盖目标起源的 JSON 文件。
如何与自定义起源配合使用?
如果您希望为自定义起源使用氧气系统,您需要添加模组提供的基础能力,或者创建自定义能力。如果您不知道如何实现自定义起源,请参阅 origins 文档(请记住选择与此模组对应的正确 origins 版本。目前仅支持 1.13.x 版本)。
佩戴装满水的鱼缸时溺水。
如果您的起源 不 能在水中呼吸,您可以添加 origins:has_lungs 能力。如果您不想使用此能力,并希望创建一个更适合您需求的修改版本,可以使用以下模板:
{
"hidden": true,
"name": "Has Lungs",
"description": "Gives compatibility with fish bowl armor as an air breather.",
"type": "origins:multiple",
"lose_oxygen": {
"type": "origins:action_over_time",
"interval": 2,
"entity_action": {
"type": "origins:gain_air",
"value": -12
},
"condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:air",
"comparison": ">=",
"compare_to": -20
},
{
"type": "origins:submerged_in",
"fluid": "minecraft:water",
"inverted": true
},
{
"type": "origins:equipped_item",
"equipment_slot": "head",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "toads_simple_origins:filled_fish_bowl"
}
}
}
]
}
},
"drown_above_water": {
"type": "origins:action_over_time",
"interval": 20,
"entity_action": {
"type": "origins:damage",
"damage_type": "minecraft:drown",
"amount": 2
},
"condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:air",
"comparison": "<=",
"compare_to": 5
},
{
"type": "origins:submerged_in",
"fluid": "minecraft:water",
"inverted": true
}
]
}
}
}
此外,如果您有一个像末影族或烈焰族那样会因水受到伤害的起源,您可以使用 origins:damage_from_filled_bowl 能力。如果您想使用修改版本,可以使用以下模板:
{
"hidden": true,
"name": "Water Damage from Filled Fish Bowls",
"description": "Gives compatibility with fish bowl armor as an origin vulnerable to water.",
"type": "origins:damage_over_time",
"interval": 20,
"onset_delay": 1,
"damage": 2,
"damage_easy": 1,
"damage_type": "origins:hurt_by_water",
"protection_enchantment": "origins:water_protection",
"protection_effectiveness": 1.0,
"condition": {
"type": "origins:equipped_item",
"equipment_slot": "head",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "toads_simple_origins:filled_fish_bowl"
}
}
}
}
佩戴装满水的鱼缸时获得氧气。
如果您的起源 能 在水中呼吸,您可以添加 origins:has_gills 能力。如果您不想使用此能力,并希望创建一个更适合您需求的修改版本,可以使用以下模板:
{
"hidden": true,
"name": "Has Gills",
"description": "Gives compatibility with fish bowl armor as a water breather.",
"type": "origins:multiple",
"in_tag": {
"type": "origins:action_on_callback",
"entity_action_gained": {
"type": "origins:execute_command",
"command": "/tag @s add has_gills"
},
"entity_action_lost": {
"type": "origins:execute_command",
"command": "/tag @s remove has_gills"
}
},
"gain_oxygen": {
"type": "origins:action_over_time",
"interval": 1,
"entity_action": {
"type": "origins:gain_air",
"value": 4
},
"condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:submerged_in",
"fluid": "minecraft:water",
"inverted": true
},
{
"type": "origins:equipped_item",
"equipment_slot": "head",
"item_condition": {
"type": "origins:and",
"conditions": [
{
"type": "origins:custom_data",
"nbt": "{oxygenLevel:0}",
"inverted": true
},
{
"type": "origins:ingredient",
"ingredient": {
"item": "toads_simple_origins:filled_fish_bowl"
}
}
]
}
}
]
}
}
}
如果我不想选择其中任何一项呢?
如果你不希望自定义起源与头盔的氧气系统产生任何交互,你无需进行任何操作。装备的头盔仍然可以正常佩戴,并且其行为将与拥有 has_lungs 能力的起源完全相同,但不会导致溺水。你也可以按照自己的意愿,通过添加基于能力的交互来让头盔和氧气系统发挥作用。这个模组的主要目的是实现渲染效果良好并能追踪数据的模型、物品和方块,从而支持简单的能力系统。你可以在自定义能力中自由使用这些资源。(请确保在适当的情况下注明出处。)
常见问题解答
这个模组会移植到 Forge/NeoForge 吗?
我目前不打算将这个模组移植到 Forge 或 NeoForge。话虽如此,如果有足够的兴趣值得投入精力,我可能会考虑将其移植到 NeoForge。
这个模组会支持其他版本的 Minecraft 吗?
目前不会。话虽如此,如果有足够的需求,我肯定会考虑。
我可以把这个模组加入我的整合包吗?
如果这个模组被整合到我的整合包中,我会感到非常荣幸。尽管去加吧。
我在哪里可以报告 Bug?
我在下方链接了一个 GitHub 仓库。应该有一个 Issues(问题)标签页,你可以在那里报告你发现的任何 Bug。这是目前唯一的反馈渠道。
这个模组会有更新吗?
我有几个关于这个模组的更新想法,但除非有活跃的需求,否则我可能不会着手开发。如果你有兴趣看到这个模组得到更新,你可能需要等待我建立 Discord 服务器。
你是这个资源的作者?登录后可认领此资源。
相似资源
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
查看物品与配方
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧