need to make a mod that nerfs the explosion damage dealt to players by TNT minecarts slightly, they should be nerfed by a value that I can edit which just changes the percentage of vanilla damage dealt, alongside a damage cap which should be configurable as a percentage of every players max health. Both of these should be editable in a config file, and in the config there should be an option to disable crystal explosions, respawn anchor explosions in the overworld and the end, as well as edit tnt damage to buff them
Add the Fabric mod entry point and editable config.
Adjust player damage from TNT minecarts, including a max-health-based cap.
Add config switches for crystal and respawn-anchor explosions, plus configurable TNT scaling.
Created Blast Control, a Fabric 26.3 mod. On first launch, it creates config/blastcontrol.properties:
tnt_minecart_damage_percent=90.0scales TNT minecart damage to players; values above 100 buff it.tnt_minecart_max_health_cap_percent=50.0caps that damage at a percentage of the player’s max health.Separate options disable End Crystal explosions and respawn-anchor explosions in the Overworld or End.
Restart the game after editing the config for changes to take effect.
add commands to edit the config settings in game, and also a reload command to reload the config
Added moderator-only commands; changes apply immediately and are saved to config/blastcontrol.properties.
/blastcontrol set tnt_minecart_damage_percent <number>/blastcontrol set tnt_minecart_max_health_cap_percent <number>/blastcontrol set disable_end_crystal_explosions <true|false>/blastcontrol set disable_respawn_anchor_explosions_overworld <true|false>/blastcontrol set disable_respawn_anchor_explosions_end <true|false>/blastcontrol reloadreloads the settings from the config file.
package dev.kodari.blastcontrol;
import net.fabricmc.api.ModInitializer;
public final class BlastControl implements ModInitializer {
@Override
public void onInitialize() {
BlastControlConfig.load();
BlastControlCommands.register();
}
}