Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkoSammy12 committed Nov 29, 2023
2 parents c11294e + 6d04376 commit 2c6f729
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
36 changes: 31 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Special modes that customize the way explosions are healed even further:

This mod also supports healing explosions of different sources, such as Ghasts and Withers. By default, the mod will only heal Creeper explosions, but you can toggle each explosion source individually.

### Toggle whether explosions from different sources should drop items

You can individually configure whether explosions coming from different sources should drop their items. By default, all of the explosion source types are allowed to drop their items, but you can configure these settings individually via the configu file or via commands.

### Configurable delays

Configure the amount of time it takes for an explosion to start healing, and the amount of time between each block placement.
Expand Down Expand Up @@ -83,16 +87,36 @@ The following is the default configuration file generated upon first mod initial
mode = "default_mode"
#Configure which explosions are allowed to heal.
[explosion_sources]
#(Default = true) Heal explosions caused by creepers.
#(Default = true) Heal explosions caused by Creepers.
heal_creeper_explosions = true
#(Default = false) Heal explosions caused by ghasts.
#(Default = false) Heal explosions caused by Ghasts.
heal_ghast_explosions = false
#(Default = false) Heal explosions caused by withers.
#(Default = false) Heal explosions caused by Withers.
heal_wither_explosions = false
#(Default = false) Heal explosions caused by TNT blocks.
heal_tnt_explosions = false
#(Default = false) Heal explosions caused by TNT minecarts.
heal_tnt_minecart_explosions = false
#(Default = false) Heal explosions caused by beds and respawn anchors.
heal_bed_and_respawn_anchor_explosions = false
#(Default = false) Heal explosions caused by end crystals.
heal_end_crystal_explosions = false
#These settings allow you to configure whether explosions from specific sources are allowed to drop items or not.
[explosion_item_drops]
#(Default = true) Explosions caused by Creepers will drop items.
drop_items_on_creeper_explosions = true
#(Default = true) Explosions caused by Ghasts will drop items.
drop_items_on_ghast_explosions = true
#(Default = true) Explosions caused by Withers will drop items.
drop_items_on_wither_explosions = true
#(Default = true) Explosions caused by TNT will drop items.
drop_items_on_tnt_explosions = true
#(Default = true) Explosions caused by TNT minecarts will drop items.
drop_items_on_tnt_minecart_explosions = true
#(Default = true) Explosions caused by beds and respawn anchors will drop items.
drop_items_on_bed_and_respawn_anchor_explosions = true
#(Default = true) Explosions caused by end crystals will drop items.
drop_items_on_end_crystal_explosions = true
#Configure the delays related to the healing of explosions.
[delays]
#(Default = 3) Change the delay in seconds between each explosion and its corresponding healing process.
Expand All @@ -103,12 +127,14 @@ The following is the default configuration file generated upon first mod initial
[preferences]
#(Default = true) Whether or not blocks should be healed where there is currently flowing water.
heal_on_flowing_water = true
#(Default = false) Whether or not blocks should healed where there is currently a source water block.
heal_on_source_water = false
#(Default = true) Whether or not blocks should be healed where there is currently flowing lava.
heal_on_flowing_lava = true
#(Default = false) Whether or not blocks should be healed where there is currently a source lava block.
heal_on_source_lava = false
#(Default = true) Whether or not a block heal should play a sound effect.
block_placement_sound_effect = true
#(Default = true) Whether or not explosions should drop items.
drop_items_on_explosions = true
#(Default = true) Makes explosion heal immediately upon throwing a splash potion of Healing on them.
heal_on_healing_potion_splash = true
#(Default = true) Makes explosion start their healing process upon throwing a splash potion of Regeneration of them.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xd/arkosammy/configuration/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void updateConfigFile(){
fileConfig.save();
} else {
CreeperHealing.LOGGER.warn("Found no preexisting config to load settings from. Creating a new config with default values in " + CONFIG_PATH);
CreeperHealing.LOGGER.warn("Change the settings in the config file, then reload the config by using /creeper-healing settings reload, or restart the server.");
CreeperHealing.LOGGER.warn("Change the settings in the config file, then reload the config by using /creeper-healing reload_config, or restart the server.");

saveDefaultConfigSettingsToFile(fileConfig);
fileConfig.save();
Expand Down

0 comments on commit 2c6f729

Please sign in to comment.