跳到正文

Encumbered (Player Weight)

作者:Khofo

A configurable weight mod that lets you add weight to every item in the game. No more carrying the universe in your pocket.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Overview


This mod lets you add weight to items. The more items you carry, the more you weigh.
Inventory User Interface
Weight Tooltip

How It Works


There are three stages of encumberment:

Unencumbered: You can move normally.
Hotbar Weight Icon

Encumbered: You can no longer sprint.
Encumbered Hotbar Icon

Over Encumbered: You can barely move (no sprinting, jumping, slower movement, and sinking in fluids).
Over Encumbered Hotbar Icon

Features


  • 🔧 Configurable weights, encumberment thresholds, and UI.
  • 🎒 Support for shulker boxes and some backpack mods (Sophisticated Backpacks).
  • 🐎 Riding entities takes into account your weight
  • ✈️ Elytra considers weight
  • 🖥️ User-friendly GUI with a helpful weight indicator icon.
  • 🌍 Multiplayer support!

Planned Features


  • 🔄 Further mod support (Curios Slot, Backpacks, etc.).
  • Version back/forward porting (1.20.x and above. Others upon request to popular versions)

More updates to come! Questions? Check us out on Discord 🎮

Mod Setup

In order to modify weight values, you must create a datapack to override or add your own mod’s weight values. The datapack should be dropped in the world’s datapacks folder.

Datapack Example:

  -DataPackName
  |-pack.mcmeta
  |-data
   |-encumbered
    |-data_maps
     |-item
      |-item_weights.json

item_weights.json should be in the format:

  {
    "values": {
      "minecraft:stone": {
        "replace": true,
        "value": {
          "weight": 12.0
        }
      },
      "modid:item": {
        "replace": true,
        "value": {
          "weight": 1.0
        }
      },
      "#minecraft:logs": {
        "replace": true,
        "value": {
          "weight": 10.0
        }
      }
  }

The pack.mcmeta file should look like this:

  {
      "pack": {
          "pack_format": 34,
          "description": "Pack Description Here"
      }
  }

Configs


Config/encumbered-client.toml:

  • Contains configs that are independent of the server. Each player can modify these values at will on their client
  • Config/encumbered-server.toml: Contains configs that are consistent across all players. Anything changed here will change for all players.

常见问题

Encumbered (Player Weight) 支持哪些 Minecraft 版本?

Encumbered (Player Weight) 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Encumbered (Player Weight) 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Khofo 的其他作品

查看全部 →