90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

[1.20.5] Creeper Healing - Release v1.0.0

Changelog

Warning

This version of the mod will invalidate your current scheduled-creeper.json file, meaning that after updating the mod, any currently stored explosions will be lost.

Changelog

This update contains a major rework of the mod's internal configuration system. All of these changes are at the code level and will not change how you currently use the configuration system. Furthermore, the following features and changes have been made:

  • Added three new preference settings:
    • restore_block_nbt: This new setting will save the block's NBT data (such as inventories) and subsequently restore it upon healing. When a block with NBT data is destroyed by an explosion and it is to be healed, the block itself (such as the chest or furnace) will not drop as an item, so as to avoid duplication of the chest. This does not necessarily mean that surrounding blocks won't drop their items when exploded. This option is disabled by default.
    • force_blocks_with_nbt_to_always_heal: This setting makes it so that blocks with NBT data destroyed from explosions that will be healed always heal, regardless of whether this block is mapped to another block in the replace map, or whether there is a block at the position where the block with NBT will try to be healed at. This option should be enabled alongside restore_block_nbt to ensure that inventories of blocks like chests always end up restored. This option is disabled by default.
    • make_falling_blocks_fall: This setting makes it so that blocks affected by gravity do not fall upon being healed, unless triggered by a neighbor update, which can include the healing of blocks adjacent to the gravity affected block.
  • The serialization of explosions will now use compressed JSON instead of regular JSON.
  • Updated the Fabric Loader dependency to 0.15.10.
  • An internal, non user-modifiable list of excluded blocks has been hard-coded into the mod's mechanics to exclude certain blocks from being affected by the mechanics of this mod. As of the release of this update, it only includes Shulker Boxes, This is because shulker boxes always drop their item with the inventory contained within it, making the restoration of Shulker boxes unnecessary. Furthermore, attempting to integrate them proved to be troubling due to their unique behavior regarding the dropping of items when destroyed.
  • Corresponding commands to edit the newly added preference settings have been added.
  • Made it so that, if an explosion cannot be healed, then force all blocks affected by that explosion to drop their items, regardless of the user defined settings.

Please make sure to report any issues or make suggestions in the issue tracker or in the Discord server.

Dependencies

Files

creeper-healing-1.0.0-1.20.5+.jar(332.7 KiB) Primary Download

Project members

ArkoSammy12

Owner

Details

Licensed Apache-2.0
Published a year ago
Updated a month ago