搜索历史
清空
暂无搜索历史
论坛热搜
1
Jenny — 有趣的模拟女友模组|珍妮模组
热
3
上古老物 冒险者传说 by WhiteSword
新
5
洛心斗罗-福利|公会据点战|武魂||抽奖|最终版
2
乌托邦探险之旅3.2
热
4
幻虚斗罗V1.5
6
水星迫降——在未知的世界中挣扎
登陆 注册 QQ登陆
快捷导航
查看: 22|回复: 0

[模组分享] Partial Keepinventory-MOD模组

[复制链接]

5159

主题

5

回帖

6143

积分

龙❁妻

Rank: 8Rank: 8

经验
6143 EP
金粒
929 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 18:48:58 | 显示全部楼层 |阅读模式
Partial KeepinventoryGithub |相关wiki |源站链接支持: fabricOnly drop a configured percentage of items or experience.

    # Partial Keepinventory

### NOTE: This mod is still in alpha, and I am just one person. Bugs are bound to happen.

A fabric mod for changing the behaviour of keep inventory.

For more information on what I\'m planning and working on see [the Roadmap](链接).

GUI

Open the GUI using ``/pki-gui``. This requires you to have the mod installed on the client side.

Expressions

Expressions are a way to dynamically change how items are dropped. This can be done with a simple formula that uses given variables. The value returned by the invExpression is clamped between 0 and 1.

A list of variables can be found in the provided table:

Base

| Variable                             | Meaning                                                                           |

|--------------------------------------|-----------------------------------------------------------------------------------|

| spawnDistance                        | The distance from the player to their spawnpoint                                  |

| spawnX, spawnY, spawnZ               | The player\'s spawn position                                                       |

| playerX, playerY, playerZ            | The player\'s position                                                             |

Inventory

| Variable                             | Meaning                                                                           |

|--------------------------------------|-----------------------------------------------------------------------------------|

| isCommon, isUncommon, isRare, isEpic | Whether an item has a certain rarity, These are 1.0 when true and 0.0 when false. |

| rarityPercent                        | The configured droprate of the item\'s rarity.                                     |

| dropPercent                          | The static inventory droprate                                                     |

Experience

| Variable    | Meaning                   |

|-------------|---------------------------|

| xpPoints    | Player\'s XP point amount. |

| xpLevel     | Player\'s XP level.        |

Expression presets:

#### Distance falloff

Change DISTANCE_IN_BLOCKS to the distance from spawn where you stop dropping items (the droprate decreases linearly).

> abs(1-(spawnDistance/DISTANCE_IN_BLOCKS))

---

Commands

Enable/disable the mod

> /pki [enable|disable]

Set the drop behaviour

> /pki inv mode [vanilla / static / rarity / custom]

Set droprate for the inventory/rarities (0-100)

> /pki inv droprate [static / common / uncommon / rare / epic]

List players who will get the normal keepinventory behaviour

> /pki inv savedPlayers list

Remove/add players who get normal keepinventory behaviour

> /pki inv savedPlayers [add / remove]

Set the custom droprate formula

> /pki inv invExpression set [invExpression]

Experience Droprate

There\'s currently 2 variables that change how XP is dropped:

- Loss percentage (How much experience is lost)

- Drop percentage (How much of that experience is dropped)

> /pki xp droprate [drop / loss]

There\'s also 2 \"modes\" in which these variables can operate.

- Based on levels

- Based on experience points

Levels take increasingly more experience to get, which makes that mode increasingly more punishing when you\'re on a higher level.

> /pki xp mode [vanilla / static-level / static-points / custom-level / custom-points]

---

[License](链接)

截图:



来自Modrinth所有游戏版本1.201.20.11.19.41.19.3所有类型fabric0.2.2-alphapartial-keepinv-0.2.2-alpha.jar下载0.2.2#Alpha- Updated to 1.20.0No version bump, because other than the game version, nothing changed.展开版本: 0.2.2支持游戏: 1.20, 1.20.1类型:FabricAlpha下载次数: 3690.2.2-alphapartial-keepinv-0.2.2-alpha.jar下载0.2.2#Alpha- Updated to 1.19.4- Fixed modmenu being a requirement展开版本: 0.2.2支持游戏: 1.19.4类型:FabricAlpha下载次数: 820.2.1-alphapartial-keepinv-0.2.1-alpha.jar下载0.2.1#Alpha- Fixed Xp settings not saving- Fixed joining servers that use a newer version of the mod.展开版本: 0.2.1支持游戏: 1.19.3类型:FabricAlpha下载次数: 760.2.0-alphapartial-keepinv-0.2.0-alpha.jar下载0.2.0#Alpha**This release breaks compatibility with the previous versions**Big update. I\'ve been quite hesitant to release it because I can\'t do much testing myself and have gotten quite a bit of feature creep...There will definitely be patches soon as I become aware of more and more issues.For now, here are some of the more major changes:- Proper GUI- Trinkets support- Developer API- Custom XP droprate formulaA lot has been rewritten to make things more future proof.展开版本: 0.2.0支持游戏: 1.19.3类型:FabricAlpha下载次数: 490.1.1-alphapartial-keepinv-0.1.1-alpha.jar下载0.1.1-alpha#Alpha- Added per player keep inventory- Fixed needing to have cardinal components in the mod folder as wellNothing much was added, mostly just a quick fix after noticing issues with the first one展开版本: 0.1.1-alpha支持游戏: 1.19.3类型:FabricAlpha下载次数: 73Partial Keepinventory 0.1.0-alphapartial-keepinv-0.1.0-alpha.jar下载0.1.0#AlphaFirst release, includes basic functionality.- Rarity based drop rates- Percentage based drop rates- Custom formulas for drop rates- Custom XP drop rates- Basic commands for changing settingsFor more details on what\'s been done: https://github.com/atiedebee/Partial-Keepinventory/commits/1.19.3展开版本: 0.1.0支持游戏: 1.19.3类型:FabricAlpha下载次数: 69全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
Partial Keepinventory-MOD模组
楼主 2025-8-10 18:48:58 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

我的世界(Minecraft)小僵尸论坛

新会员

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2026-1-16 03:16 , Processed in 0.363413 second(s), 122 queries .

快速回复 返回顶部 返回列表