Make new air usage setting to make it optional and toggleable for tools and armors. - #72
Conversation
Add a new use_air boolean config to CQOLArmors and CQOLTools with explanatory comments. Update ShadowRadianceAxe to expose a per-item "Use Air" toggle in the tooltip/config GUI and to honor QOLDataComponents.USE_AIR: when enabled the axe will let BacktankUtil absorb damage instead of consuming tool durability, and durability bar visibility/width/color are switched to reflect backtank usage. Also add required imports and minor formatting adjustments.
Introduce a USE_AIR toggle for multiple armors and tools so items can consume air from the backtank instead of their own durability. Updates include: added hover tooltip lines for the "use air" ability, added Configuration.ofBool entries to item configuration lists, changed damage handling to defer to BacktankUtil when USE_AIR is enabled, and made the air/durability bar visibility/width/color conditional on the USE_AIR flag. Also cleaned up a couple of unused imports (removed ConfigBool and some unused event/import lines). This enables per-item control to prefer backtank air usage where configured.
Add English localization entries for the "Use Air" ability to en_us.json. This introduces createqol.ability.tool.use_air and createqol.ability.armor.use_air so the tool and armor abilities have proper labels in the UI.
iglee42
left a comment
There was a problem hiding this comment.
This is a good idea to add config for this but I think in global it should just stay as a global config and not as a config for the item
There was a problem hiding this comment.
Please remove this file and add the .vscode folder to github ignore
|
"This is a good idea to add config for this but I think in global it should just stay as a global config and not as a config for the item" "Also if think you should change the message in tooltip to replace the one with air amount instead of adding a new tooltip line" |
I meant with the config file createqol-server.toml, not a configuration on each item/only the backtank
I meant for the backtank not for the tools/helmet/leggings/boots. |
Replace hard-coded English air tooltip in three chestplate classes with translatable keys and wrap result in parentheses for display. Updated files: RefinedRadianceChestplate, ShadowRadianceChestplate, ShadowSteelChestplate now use createqol.tooltip.use_air.powering or .breathing based on config. Added corresponding entries to en_us.json for the two new translation keys.
|
Sorry for the delay but here are the fixes. |
Add createqol.ability.use_air and tooltip entries (use_air.powering, use_air.breathing) to Japanese and Russian language files to provide UI text for air-powered equipment and underwater breathing.
|
(I used Google translator for ru_ru and ja_jp localization so it may be not perfect) |
Can confirm it is far from perfect, for ru_ru for sure :> |





Creating a new setting in the config, so the player is able to toggle (enable/disable) the usage of air instead of the classic durability for every armor and tool made with shadow steel, refined radiance and shadow radiance.
use_air = false : tools and armors will behave normally by using their own durability, no air will be used (as if the backtank was empty).
use_air = true : tools will use air from the backtank if available, if backtank is empty, it will behave as usual.
Diving in water and in lava will not be affected by this new setting (will still use backtank air normally).
The only thing that will change is when the air will be consumed from the backtank by the items.
This new setting can solve the problem when mining underwater with shadowradiance pickaxe with digging power enabled, 3x3 mining can empty the backtank very fast and becomes a problem when we need air for underwater breathing. Making this optional (using classic durability) can be more helpful.
Let me know what you think about this.
Demo video : https://youtu.be/WCpgygWecmQ