Tharidia: Simple Weight
⚠️ ALPHA 版本 - 正在积极开发中 ⚠️
本模组目前处于 Alpha 状态,正在积极开发中。功能可能会发生变化,且可能存在错误。在生产环境中使用请自行承担风险。
关于 Tharidia 项目
Tharidia 是一个宏大的 Minecraft 角色扮演服务器项目,设定在中世纪奇幻世界中。该服务器拥有复杂、自定义的机制,与原版 Minecraft 玩法显著不同,创造了一种专注于中世纪生活并融入奇幻元素的独特角色扮演体验。
Tharidia 项目由多个相互关联的模组组成,它们协同工作以营造这种沉浸式体验。Simple Weight 是这些模块化组件之一,从主模组 Tharidia Things 中提取出来,以便与其他 Tharidia 模组一起独立部署和维护。
本模组的作用
Tharidia: Simple Weight 实现了一个真实的负重系统,根据玩家的物品栏负载影响移动速度。这一机制为 Tharidia 的角色扮演体验增添了真实感和策略性的物品栏管理层面。
核心特性
? 动态重量计算
- 物品栏中的每个物品都有一个重量值
- 拾取或丢弃物品时,实时计算总重量
- 重量值可通过数据包完全配置
? 移动速度惩罚
- 携带重物会降低你的移动速度
- 携带的重量越大,移动越慢
- 速度降低是渐进的,并与总重量成正比
- 使用 Minecraft 的属性系统实现平滑、兼容的速度修改
? 游泳限制
- 当负重过大时,无法在水中向上游动
- 模拟了装备沉重时的游泳难度
- 为渡水和探索增加了战略考量
⚙️ 数据包配置
- 通过 JSON 数据包为任何物品定义自定义重量值
- 服务器管理员可以根据需要微调负重系统
- 为常见物品(矿石、方块、工具等)提供默认重量值
? 管理员/OP 豁免
- 拥有操作者权限的玩家自动绕过负重系统
- 适用于服务器管理和测试
- 如果需要不同的行为,可以在代码中轻松修改
? 性能优化
- 玩家批处理系统将处理负载分布在各个刻上
- 旨在处理拥有大量玩家的大型服务器
- 即使在繁忙的服务器上也能保持极小的性能影响
配置
默认重量值
模组自带常见物品的默认重量值:
- 重型物品(10.0 重量):铁砧、下界合金块
- 中重型物品(5.0 重量):铁块、金块、钻石块
- 中型物品(2.0 重量):铁锭、金锭
- 轻型物品(0.5 重量):钻石、绿宝石
- 极轻物品(0.1 重量):大多数其他物品
自定义数据包配置
你可以使用数据包创建自定义重量配置。将 JSON 文件放置在以下路径:
datapacks/your_datapack/data/tharidia_simpleweight/weight/items.json
示例配置:
{
"weights": {
"minecraft:iron_ingot": 2.0,
"minecraft:gold_ingot": 2.5,
"minecraft:diamond": 0.5,
"minecraft:netherite_ingot": 3.0
}
}
? 有用链接
鸣谢
开发团队: Frenk02 和 THproject Team
许可证
GNU v3
Tharidia: Simple Weight
⚠️ ALPHA VERSION - UNDER ACTIVE DEVELOPMENT ⚠️
This mod is currently in an alpha state and is being actively developed. Features may change, and bugs may be present. Use at your own risk in production environments.
About the Tharidia Project
Tharidia is an ambitious Minecraft roleplay server project set in a medieval fantasy world. The server features complex, custom mechanics that significantly diverge from vanilla Minecraft gameplay, creating a unique roleplay experience focused on medieval life with fantasy elements.
The Tharidia Project consists of multiple interconnected mods that work together to create this immersive experience. Simple Weight is one of these modular components, extracted from the main Tharidia Things mod to allow for independent deployment and maintenance alongside other Tharidia mods.
What This Mod Does
Tharidia: Simple Weight implements a realistic weight system that affects player movement based on their inventory load. This mechanic adds a layer of realism and strategic inventory management to the Tharidia roleplay experience.
Core Features
? Dynamic Weight Calculation
- Every item in your inventory has a weight value
- Total weight is calculated in real-time as you pick up or drop items
- Weight values are fully configurable via datapacks
? Movement Speed Penalties
- Carrying heavy loads slows down your movement speed
- The more weight you carry, the slower you move
- Speed reduction is gradual and proportional to your total weight
- Uses Minecraft's attribute system for smooth, compatible speed modifications
? Swimming Restrictions
- When overencumbered, you cannot swim upward in water
- Simulates the difficulty of swimming with heavy equipment
- Adds strategic considerations for water crossings and exploration
⚙️ Datapack Configuration
- Define custom weight values for any item via JSON datapacks
- Server administrators can fine-tune the weight system to their needs
- Default weight values provided for common items (ores, blocks, tools, etc.)
? Master/OP Bypass
- Players with operator permissions automatically bypass the weight system
- Useful for server administration and testing
- Can be easily modified in the code if different behavior is desired
? Performance Optimized
- Player batching system distributes processing load across ticks
- Designed to handle large servers with many players
- Minimal performance impact even on busy servers
Configuration
Default Weight Values
The mod comes with default weight values for common items:
- Heavy Items (10.0 weight): Anvils, Netherite blocks
- Medium-Heavy Items (5.0 weight): Iron blocks, Gold blocks, Diamond blocks
- Medium Items (2.0 weight): Iron ingots, Gold ingots
- Light Items (0.5 weight): Diamonds, Emeralds
- Very Light Items (0.1 weight): Most other items
Custom Datapack Configuration
You can create custom weight configurations using datapacks. Place JSON files in:
datapacks/your_datapack/data/tharidia_simpleweight/weight/items.json
Example configuration:
{
"weights": {
"minecraft:iron_ingot": 2.0,
"minecraft:gold_ingot": 2.5,
"minecraft:diamond": 0.5,
"minecraft:netherite_ingot": 3.0
}
}
? Useful Link
Credits
Development Team: Frenk02 and THproject Team
License
GNU v3
评论 0
登录后参与评分
还没有评论,来抢沙发吧