Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Conditional Keep Inventory

Conditional Keep Inventory

A mod to twist the drop on Player death.

1,256
18
Equipment
Utility

Compatibility

Minecraft: Java Edition

1.17.x
1.16.5
1.16.2
1.16

Platforms

Fabric
Quilt

Supported environments

Client-side
Server-side
Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server
Donate on Ko-fi

Creators

Nerjal_Nosk
Nerjal_Nosk Owner

Details

Licensed MIT
Published 3 years ago
Updated 3 years ago
DescriptionChangelogVersions
All versions[Fabric] Conditional Keep Inventory Beta 0.3 + MC1.17

[Fabric] Conditional Keep Inventory Beta 0.3 + MC1.17

Download
Report

Changelog

UPDATE 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

Files

ConditionalKeepInventory-Fabric+Mc-1.17-Beta-0.3.4.jar(69.99 KiB) Primary
Download

Metadata

Release channel

Beta

Version number

Beta-0.3

Loaders

Fabric

Game versions

1.17–1.17.1

Downloads

101

Publication date

September 22, 2021 at 12:01 AM

Publisher

Nerjal_Nosk

Nerjal_Nosk

Owner

Version ID

Modrinth is open source.

main@4bafae8

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.