DeepSea
DeepSea 是一款 Fabric 模组,为海洋生物群系中的船只添加了可配置的行为。默认情况下,所有已加载的船只每 100 刻(5 秒)会定期检查一次,那些位于配置的海洋生物群系(#deepsea:ocean)中且带有 #deepsea:boat 标签的船体会被破坏并掉落物品。
兼容性
默认情况下,#deepsea:boat 标签仅包含 #c:boats,而 #deepsea:ocean 仅包含 #c:is_ocean。
安装
- 将 DeepSea
.jar 文件放入你的 mods 文件夹。
- 启动服务器或进入世界——模组立即生效。
这是一个仅服务端模组。客户端无需安装。
自定义
要添加/移除船只类型,只需为标签文件创建一个数据包:
data/deepsea/tags/entity_type/boat.json
{
"values": [
"#c:boats"
]
}
要添加/移除生物群系,只需为标签文件创建一个数据包:
data/deepsea/tags/worldgen/biome/ocean.json
{
"values": [
{
"id": "#c:is_ocean",
"required": false
}
]
}
文档
- enabled:
启用或禁用该模组。
类型:boolean 默认值:true
- tick_interval:
检查船只的时间间隔(以刻为单位)。
类型:integer 默认值:100
- boat_damage:
应用于海洋生物群系中船只的伤害数值。
类型:float 默认值:100.0
- discard_boat:
如果为 true,海洋生物群系中的船会被直接丢弃而不掉落船的物品;如果为 false,船会受伤、破碎并掉落船的物品。
类型:boolean 默认值:false
- cache:
生物群系查找缓存的配置。
类型:object 默认值:见下方
- cache_size:
在刷新之前要缓存的最大生物群系查找结果数量(例如,“此位置是否在海洋中?”)。
类型:integer 默认值:500
- cache_time:
缓存的生物群系结果在刷新前保留的时间长度(以分钟为单位)。
类型:integer 默认值:240
- sound:
当船只受损或销毁时播放音效的配置。
类型:object 默认值:见下方
- play_sound:
是否在船只受损或销毁时播放音效。
类型:boolean 默认值:true
- volume:
船只受损或销毁时播放音效的音量。
类型:float 默认值:1.0
- pitch:
船只受损或销毁时播放音效的音调。
类型:float 默认值:1.0
完整配置示例:
{
"enabled": true,
"tick_interval": 100,
"boat_damage": 100.0,
"discard_boat": false,
"cache": {
"cache_size": 500,
"cache_time": 240
},
"sound": {
"play_sound": true,
"volume": 1.0,
"pitch": 1.0
}
}
DeepSea
DeepSea is a Fabric mod that adds configurable boat behavior in ocean biomes. All loaded boats are periodically checked every 100 ticks (5 seconds ) by default, and those in the configured ocean biomes (#deepsea:ocean) and tagged with #deepsea:boat will be broken and dropped.
Compatibility
By default, only #c:boats is included in the #deepsea:boat tag and #c:is_ocean in the #deepsea:ocean.
Installation
- Drop the DeepSea
.jar into your mods folder.
- Start the server or load into a world — the mod is active immediately.
This is a server-side only mod. Clients do not need to install it.
Customization
To include/remove boats just create a datapack for the tag file:
data/deepsea/tags/entity_type/boat.json
{
"values": [
"#c:boats"
]
}
To include/remove biomes just create a datapack for the tag file:
data/deepsea/tags/worldgen/biome/ocean.json
{
"values": [
{
"id": "#c:is_ocean",
"required": false
}
]
}
Documentation
- enabled:
Enables or disables the mod.
Type: boolean Default: true
- tick_interval:
The interval in ticks between checks for boats.
Type: integer Default: 100
- boat_damage:
The damage amount applied to boats in ocean biomes.
Type: float Default: 100.0
- discard_boat:
If true, boats in ocean biomes are discarded without dropping the boat item, if false, boats take damage, break and drop the boat item.
Type: boolean Default: false
- cache:
Configuration for biome lookup caching.
Type: object Default: see below
- cache_size:
The maximum number of biome lookup results (e.g., "is this position in an ocean?") to cache before being refreshed.
Type: integer Default: 500
- cache_time:
The duration in minutes that cached biome results are kept before being refreshed.
Type: integer Default: 240
- sound:
Configuration for sound effects when boats are damaged or destroyed.
Type: object Default: see below
- play_sound:
Whether to play a sound effect when a boat is damaged or destroyed.
Type: boolean Default: true
- volume:
The volume of the sound effect played when a boat is damaged or destroyed.
Type: float Default: 1.0
- pitch:
The pitch of the sound effect played when a boat is damaged or destroyed.
Type: float Default: 1.0
Full Configuration Example:
{
"enabled": true,
"tick_interval": 100,
"boat_damage": 100.0,
"discard_boat": false,
"cache": {
"cache_size": 500,
"cache_time": 240
},
"sound": {
"play_sound": true,
"volume": 1.0,
"pitch": 1.0
}
}
评论 0
登录后参与评分
还没有评论,来抢沙发吧