-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6b9955
commit 02af8fb
Showing
9 changed files
with
98 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/com/possible_triangle/create_jetpack/config/ClientConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.possible_triangle.create_jetpack.config | ||
|
||
import net.minecraftforge.common.ForgeConfigSpec | ||
|
||
class ClientConfig(builder: ForgeConfigSpec.Builder) { | ||
|
||
val SHOW_OVERLAY = builder.define("overlay", true) | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
src/main/kotlin/com/possible_triangle/create_jetpack/config/Configs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.possible_triangle.create_jetpack.config | ||
|
||
import net.minecraftforge.common.ForgeConfigSpec | ||
|
||
object Configs { | ||
|
||
var SERVER_SPEC: ForgeConfigSpec | ||
private set | ||
var SERVER: ServerConfig | ||
private set | ||
|
||
var CLIENT_SPEC: ForgeConfigSpec | ||
private set | ||
var CLIENT: ClientConfig | ||
private set | ||
|
||
init { | ||
with(ForgeConfigSpec.Builder().configure { ServerConfig(it) }) { | ||
SERVER = left | ||
SERVER_SPEC = right | ||
} | ||
|
||
with(ForgeConfigSpec.Builder().configure { ClientConfig(it) }) { | ||
CLIENT = left | ||
CLIENT_SPEC = right | ||
} | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
src/main/kotlin/com/possible_triangle/create_jetpack/config/ServerConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.possible_triangle.create_jetpack.config | ||
|
||
import net.minecraftforge.common.ForgeConfigSpec | ||
|
||
class ServerConfig(builder: ForgeConfigSpec.Builder) { | ||
|
||
val USES_PER_TANK = builder.defineInRange("air.uses_per_tank", 2048, 1, Integer.MAX_VALUE) | ||
val USES_PER_TANK_HOVER = builder.defineInRange("air.uses_per_tank_hover", 2048 * 10, 1, Integer.MAX_VALUE) | ||
|
||
val HORIZONTAL_SPEED = builder.defineInRange("speed.horizontal", 0.02, 0.01, 100.0) | ||
val VERTICAL_SPEED = builder.defineInRange("speed.vertical", 0.4, 0.01, 100.0) | ||
val ACCELERATION = builder.defineInRange("speed.acceleration", 0.6, 0.01, 100.0) | ||
val HOVER_SPEED = builder.defineInRange("speed.hover_descend", -0.03, -100.0, 0.0) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/create/tags/items/pressurized_air_sources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"create_jetpack:jetpack" | ||
] | ||
} |