跳到正文

Give Modifier

Give decimals and negative amounts with /givef

收藏

介绍

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

# Give Modifier

Extend Minecraft’s give command to accept **decimal** quantities via `/givef`.

## ✨ Features
– Decimal quantities: `5.5`, `20.20`, `0.5`
– Negative quantities: remove items from inventory (no drop)
– Converts decimals to simplified fractions, uses numerator as quantity
– Works with Command Blocks and chat
– Fabric 1.21.11

## 🔢 Conversion Formula

| Input | Fraction | Result |
|——-|———-|——–|
| 5.5   | 11/2     | give 11 |
| 20.20 | 101/5    | give 101 |
| 0.5   | 1/2      | give 1 |
| 1.5   | 3/2      | give 3 |
| 99.99 | 9999/100 | give 9999 |
| -3.5  | -7/2     | remove 7 |

## 📦 Requirements
– Minecraft 1.21.11
– Fabric Loader 0.16+
– Fabric API 0.141.6+1.21.11
– Java 21

## 🛠️ Usage

/givef @p minecraft:diamond 5.5
/givef @p minecraft:emerald 20.20
/givef @p minecraft:iron_ingot -3.5

## 🔐 Verification
– SHA-256: `8379de7e648b996d67f394cb266c043b53674c2ae899ad4ee0b10bf8b32c93a2`
– VirusTotal: 0/60+ vendors flagged

## 📜 License
MIT

常见问题

Give Modifier 支持哪些 Minecraft 版本?

Give Modifier 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Give Modifier 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分