Skip to content

Commit

Permalink
update boostOnIce config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Oct 15, 2024
1 parent 2e6331a commit 01d900b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"playerEjectTicks": 200.0, // The ticks the game waits before kicking you out of a boat after the player lost control
"boostUnderwater": true, // Toggles, whether a boat, which is underwater should be boosted upwards
"boostOnBlocks": false, // Toggles, whether a boat, which is on a block should be boosted upwards when running against an elevation
"boostOnIce": true, // Toggles, whether a boat, which is on an ice block should be boosted upwards when running against an elevation
"boostOnIce": false, // Toggles, whether a boat, should only be boosted on blocks, when laying on an ice block.
"boostOnWater": true, // Toggles, whether a boat, which is on water should be boosted upwards when floating against an elevation
"onlyForPlayers": true, // Toggles, whether a boat should only be boosted when carrying a player,
"extraCollisionDetectionRange": 0.5 // Changes the detection range of a collision. Increasing this will boost a boat x blocks before actually touching the block it approaches.
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- migrate to kotlin-lang-forge
- migrate all network namespaces from 'better-boat-movement' to 'bbm'
- remove config from forge environments
- remove config from forge environments
- improve boostOnIce description
- set boostOnIce by default to false to prevent issues with getting boosted on different blocks than ice
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ mod.id=bbm
mod.name=BetterBoatMovement
mod.description=Increases boat step height to move up water and blocks
mod.beta=0
mod.major-version=2.2.4
mod.major-version=2.2.5
mod.mixins=bbm.mixins.json
mod.supported-loaders=fabric,quilt,neoforge,forge
8 changes: 4 additions & 4 deletions src/main/kotlin/dev/nyon/bbm/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data class Config(
var playerEjectTicks: Float = 20f * 10f,
var boostUnderwater: Boolean = true,
var boostOnBlocks: Boolean = true,
var boostOnIce: Boolean = true,
var boostOnIce: Boolean = false,
var boostOnWater: Boolean = true,
var onlyForPlayers: Boolean = true,
var extraCollisionDetectionRange: Double = 0.5
Expand Down Expand Up @@ -73,7 +73,7 @@ data class Config(
var playerEjectTicks: Float = 20f * 10f,
var boostUnderwater: Boolean = true,
var boostOnBlocks: Boolean = true,
var boostOnIce: Boolean = true,
var boostOnIce: Boolean = false,
var boostOnWater: Boolean = true,
var onlyForPlayers: Boolean = true,
var extraCollisionDetectionRange: Double = 0.5
Expand Down Expand Up @@ -121,7 +121,7 @@ data class Config(
var playerEjectTicks: Float = 20f * 10f,
var boostUnderwater: Boolean = true,
var boostOnBlocks: Boolean = true,
var boostOnIce: Boolean = true,
var boostOnIce: Boolean = false,
var boostOnWater: Boolean = true,
var onlyForPlayers: Boolean = true,
var extraCollisionDetectionRange: Double = 0.5
Expand Down Expand Up @@ -163,7 +163,7 @@ data class Config(
var playerEjectTicks: Float = 20f * 10f,
var boostUnderwater: Boolean = true,
var boostOnBlocks: Boolean = true,
var boostOnIce: Boolean = true,
var boostOnIce: Boolean = false,
var boostOnWater: Boolean = true,
var onlyForPlayers: Boolean = true,
var extraCollisionDetectionRange: Double = 0.5
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/dev/nyon/bbm/config/ConfigScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fun generateYaclScreen(parent: Screen?): Screen = YetAnotherConfigLib("bbm") {
}

val boostOnIce by rootOptions.registering {
binding(true, { config.boostOnIce }, { config.boostOnIce = it })
binding(false, { config.boostOnIce }, { config.boostOnIce = it })
controller = tickBox()
descriptionBuilder {
addDefaultText(1)
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/bbm/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"yacl3.config.bbm.category.general.root.option.boostUnderwater.description": "Toggles, whether a boat, which is underwater should be boosted upwards.",
"yacl3.config.bbm.category.general.root.option.boostOnBlocks": "Boost on blocks",
"yacl3.config.bbm.category.general.root.option.boostOnBlocks.description": "Toggles, whether a boat, which is on a block should be boosted upwards when running against an elevation.",
"yacl3.config.bbm.category.general.root.option.boostOnIce": "Boost on ice",
"yacl3.config.bbm.category.general.root.option.boostOnIce.description": "Toggles, whether a boat, which is on an ice block should be boosted upwards when running against an elevation.",
"yacl3.config.bbm.category.general.root.option.boostOnIce": "Only boost on ice",
"yacl3.config.bbm.category.general.root.option.boostOnIce.description": "Toggles, whether a boat, should only be boosted on blocks, when laying on an ice block.",
"yacl3.config.bbm.category.general.root.option.boostOnWater": "Boost on water",
"yacl3.config.bbm.category.general.root.option.boostOnWater.description": "Toggles, whether a boat, which is on water should be boosted upwards when floating against an elevation.",
"yacl3.config.bbm.category.general.root.option.onlyForPlayers": "Only for players",
Expand Down

0 comments on commit 01d900b

Please sign in to comment.