登陆 注册 QQ登陆
快捷导航
查看: 1|回复: 0

[模组分享] 条件保留物品 (Conditional Keep Inventory)-MOD模组

[复制链接]

5433

主题

24

回帖

7144

积分

龙❁妻

Rank: 8Rank: 8

经验
7144 EP
金粒
1647 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 17:11:04 | 显示全部楼层 |阅读模式 IP:北京
条件保留物品 (Conditional Keep Inventory)Github |相关wiki |源站链接支持: fabric , quilt一个可以在玩家死亡时改变物品掉落规则的模组。

条件保留物品模组

你是否曾经希望在某些关键情况下避免永久丢失你的物品,但又不想在所有死亡时都设置保留物品状态为真?

我们是否都希望不要因为掉进虚空而失去我们的东西,但在被深洞中的某个生物杀死时,却不失去重新获取物品的刺激?

那么,请不要绝望!因为我就在这里为你提供了完美的解决方案!

我在此正式向你介绍…… *条件保留物品* 模组!

功能介绍

这个模组旨在让你可以根据自己的需要精确选择何时应用保留物品规则,何时不应用。

通过一个配置文件和一个命令,我制作了这个模组,让你可以设置一个白名单和一个黑名单条件,这些条件将决定保留物品是否适用。

相关链接

-
- https://www.curseforge.com/minecraft/mc-mods/conditional-keep-inventory]CurseForge
- https://github.com/NerjalNosk/Conditional_keep_inventory]源代码
- https://github.com/NerjalNosk/Conditional_keep_inventory/wiki]维基
- https://github.com/NerjalNosk/Conditional_keep_inventory/issues]问题
- https://modrinth.com/mod/fabric-api]Fabric API (modrinth)
- https://www.curseforge.com/minecraft/mc-mods/fabric-api]Fabric API (curseforge)
- https://fabricmc.net/use/]Fabric Mod Loader
- https://discord.gg/ckMCAtVrBW]Fabric 服务器端开发 Discord

可行与不可行之处

*你可以:*

- 为自己下载模组
- 在模组包中使用模组(仅在Modrinth上托管或我提供了明确的授权时)
- 向你的朋友和亲戚分享模组的存在
- 阅读源代码以了解我如何实现某些功能,重用其中的一些代码片段
- 评论,描述你的经验,无论是好是坏。这样我就可以改进模组
- 当然可以享受这个模组!

*但你不能:*

- 重新上传模组
- 将其作为自己的作品
- 在未告知模组来源的情况下公开使用它
- 利用此模组牟利
- 将完整代码复制粘贴到你自己的项目中
- 在未提及我为作者的情况下将模组嵌入到你的另一个项目中

来自Modrinth所有游戏版本1.171.17.11.161.16.21.16.5所有类型fabricquilt[Fabric] Conditional Keep Inventory 1.1+MC1.17+ConditionalKeepInventory-Fabric+Mc-1.17-1.1.3.jar下载1.1.3#ReleasePatch to version *1.1.2*Removed pieces of code from the upcoming 2.0 version which messed up the build version展开版本: 1.1.3支持游戏: 1.17, 1.17.1类型:FabricQuiltRelease下载次数: 252[Fabric] Conditional Keep Inventory 1.1+MC1.17+ConditionalKeepInventory-Fabric+Mc-1.17-1.1.2.jar下载1.1.2#ReleasePatch to version *1.1.0***Fixes*** Fixed the command\'s \"Whitelist/Blacklist\" argument not working (not properly sent to the client when the mod loads on server only)* Fixed errors disabling the game to load when the mod didn\'t find the \"config\" folder (didn\'t create it otherwise - now fixed)Other changes :* building improvements* package base name changed展开版本: 1.1.2支持游戏: 1.17, 1.17.1类型:FabricQuiltRelease下载次数: 86[Fabric] Conditional Keep Inventory 1.1.1+MC1.16ConditionalKeepInventory-Fabric+Mc-1.16-1.1.1.jar下载1.1.1+Mc1.16#ReleaseUpdate 1.1.1 for Fabric Mc 1.16Fixed the command suggestions for the alias (I actually got a workaround in order to make a proper redirect, but didn\'t apply it correctly)展开版本: 1.1.1+Mc1.16支持游戏: 1.16, 1.16.2, 1.16.5类型:FabricRelease下载次数: 177[Fabric] Conditional Keep Inventory 1.1+MC1.16ConditionalKeepInventory-Fabric+Mc-1.16-1.1.0.jar下载1.1.0+Mc1.16#ReleaseLiterally just the 1.1.0 update, but ported to Mc 1.16Still Fabric. Forge not planned unless there is enough demand.展开版本: 1.1.0+Mc1.16支持游戏: 1.16, 1.16.2, 1.16.5类型:FabricRelease下载次数: 132[Fabric] Conditional Keep Inventory 1.1+MC1.17ConditionalKeepInventory-Fabric+Mc-1.17-1.1.0.jar下载1.1.0#Release## Release 1.1.0!A whole bunch of cool stuff added!Now play with all the dying player\'s stuff! Now, having such armor or holding such item is also a condition option!And I see you server administrators! I admit, that mod was floody as hell. But I fixed that! Your console will be much cleaner now.You though the file\'s condition properties\' names were disturbing? I also fixed that. And don\'t panic! I also handled the file versioning! (Aren\'t I amazing?)And... Stop right there! I see you flooding your config file with all the combinations of conditions you can imagine with the now options! But behold! You can now use lists! (Warning. Lists will be validated if any element is valid, so a whole bunch of possibilities with only two lists)I got a little bit carried away for that update message, but I hope you like that new content ^^展开版本: 1.1.0支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 141[Fabric] Conditional Keep Inventory 1.0+MC1.17ConditionalKeepInventory-Fabric+Mc-1.17-Beta-1.0.0.jar下载1.0.0#Release## Official realease 1.0.0!At least, I hereby present you the 1.0.0 version of this mod!Now twist your drops with dimensions as well!Don\'t forget to submit me any idea, I might at some point make it a thing!展开版本: 1.0.0支持游戏: 1.17, 1.17.1类型:FabricRelease下载次数: 137[Fabric] Conditional Keep Inventory Beta 0.3 + MC1.17ConditionalKeepInventory-Fabric+Mc-1.17-Beta-0.3.4.jar下载Beta-0.3#BetaUPDATE TO Beta 0.3.4 (aka Beta0.3)### Main changes* Added last command arguments* Made command globally working (can still have bugs)* Set some command outputs to be displayed to all OP members### Minor changes* customized the JSON parsed to ensure proper lines and spacings* renamed the command alias from \"cdi\" to \"cki\" (\"keep\")* removed useless methods from a few classes, added some* discovered a not-so-dumb way to parse JSON (I\'m proud)* changed a Mixin invoke method* Guess what? The version changed as well### **TODO:**[✓] Player death Mixins altering drop✓ Check if mod activated✓ Check if keepInventory (vanilla) is true✓ Check if death correspond to the wanted list✓ Check if doVanishingCurse is activated✓ Apply or not Curse of Vanishing if activated[ ] Usage of config file✓ Creating config file on read if missing✓ Creating config file backup and a new one if error on read✓ Make backup name organised by number✓ Allow restoring backup from number✓ Make restoring able to backup actual config file✓ Reading file on server startup and generate config data✓ Change config data to save gamerules change before stop✓ Save config on server stop• Add a \"dimension\" condition: Config file versioning (add version tag): Rename \"held_item\" to \"weapon\"[ ] Use commands to alter config data✓ Create the command✓ Create CDIListArgumentType for command list selection✓ Create JsonArgumentType for command editing config data✓ Create command sub-functions:✓ Use command to toggle auto backup when game starts✓ Use command to add conditions✓ Use command to edit conditions✓ Use command to consult conditions✓ Use command to remove condition✓ Use command to toggle condition (t->f;f->t)✓ Use command to reload config file✓ Use command to save config file✓ Use command to backup config file✓ Use command to list available backups✓ Use command to restore backup✓ Add command alias for easier use• Correct the OP broadcast to display as the right user-> might wish to use a \"command_called\" boolean param[ ] Pure development (post-beta?)• Add documentations to (as much as possible) all classes[ ] And a few tests, as well...• = working on it✓ = done: = v1+[ ] = not finished展开版本: Beta-0.3支持游戏: 1.17, 1.17.1类型:FabricBeta下载次数: 111[Fabric] Conditional Keep Inventory Beta 0.2 + MC1.17ConditionalKeepInventory-Fabric+Mc-1.17-Beta-0.2.6.jar下载Beta-0.2#BetaUPDATE TO Beta 0.2.6 (aka Beta0.2)### Main changes* Made JsonArgumentType* Added ListComparator for command list identification* Added JSON Parse option to ConfigElem* Added config methods to get available ids for the command* Added use of command to append to lists### Minor changes* edited the gitignore to ignore html files* edited README.md* edited config file writer (hoped a better JSON String parsing)* added folder creating log to the backup method* added Fabric API dependence, instead of just crashing the game* moved gamerules to the PLAYERS category### **TODO:**[✓] Player death Mixins altering drop✓ Check if mod activated✓ Check if keepInventory (vanilla) is true✓ Check if death correspond to the wanted list✓ Check if doVanishingCurse is activated✓ Apply or not Curse of Vanishing if activated[ ] Usage of config file✓ Creating config file on read if missing✓ Creating config file backup and a new one if error on read• Make backup name organised by number• Allow restoring backup from number• Make restoring able to backup actual config file✓ Reading file on server startup and generate config data✓ Change config data to save gamerules change before stop✓ Save config on server stop[ ] Use commands to alter config data✓ Create the commandx Create CDIActionArgumentType for first argument (no)✓ Create CDIListArgumentType for command list selection✓ Create JsonArgumentType for command editing config data✓ Use command to add conditions• Implement config more data edition from command✓ Add command alias for easier use[ ] Pure development (post-beta?)• Add documentations to (as much as possible) all classes[ ] And a few tests, as well...展开版本: Beta-0.2支持游戏: 1.17, 1.17.1类型:FabricBeta下载次数: 103Conditional Keep Inventory Alpha-0.14+MC1.17ConditionalKeepInventory-Fabric+Mc-1.17-Alpha-0.14.jar下载alpha-14#AlphaDrop alteration works, config file properly created if not existent, read properly.Main functionality works. (I guess that\'s the objective for the end of the Alpha, isn\'t it?)展开版本: alpha-14支持游戏: 1.17, 1.17.1类型:FabricAlpha下载次数: 164全部版本

markdown_parsed

文章类型:收录

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

游客,如果您要查看本帖隐藏内容请回复
条件保留物品
楼主 2025-8-10 17:11:04 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

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

本版积分规则



官方

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

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

介绍

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

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

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

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

GMT+8, 2025-8-21 05:00 , Processed in 0.184986 second(s), 48 queries .

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