generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
27 changed files
with
306 additions
and
20 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
9 changes: 9 additions & 0 deletions
9
src/main/java/net/superscary/fluxmachines/api/energy/Decays.java
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 net.superscary.fluxmachines.api.energy; | ||
|
||
public interface Decays { | ||
|
||
int decayPercentageChance (); | ||
|
||
int decayAmount (); | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/net/superscary/fluxmachines/api/energy/EnergyDecay.java
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,27 @@ | ||
package net.superscary.fluxmachines.api.energy; | ||
|
||
public interface EnergyDecay { | ||
|
||
default void decayEnergy (int decay, FMEnergyStorage storage) { | ||
if (storage.getEnergyStored() > 0) { | ||
storage.setStored(storage.getEnergyStored() - decay); | ||
} | ||
} | ||
|
||
default void decayEnergy (int decay, FMEnergyStorage storage, int maxDecay) { | ||
if (storage.getEnergyStored() > 0) { | ||
storage.setStored(storage.getEnergyStored() - Math.min(decay, maxDecay)); | ||
} | ||
} | ||
|
||
default void decayEnergy (int decay, FMEnergyStorage storage, int maxDecay, int minDecay) { | ||
if (storage.getEnergyStored() > 0) { | ||
storage.setStored(storage.getEnergyStored() - Math.min(Math.max(decay, minDecay), maxDecay)); | ||
} | ||
} | ||
|
||
default boolean decayChance (int chance) { | ||
return Math.random() * 100 < chance; | ||
} | ||
|
||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/fluxmachines/patchouli_books/book/en_us/categories/armor.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 @@ | ||
{ | ||
"name": "Armor", | ||
"description": "A suit of armor to protect you from the dangers of the world. Full steel armor adds Knockback Resistance II.", | ||
"icon": "fluxmachines:steel_helmet", | ||
"sortnum": 3 | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/fluxmachines/patchouli_books/book/en_us/categories/basics.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 @@ | ||
{ | ||
"name": "Basic Concepts", | ||
"description": "Some basic concepts for $(fm).", | ||
"icon": "minecraft:knowledge_book", | ||
"sortnum": 0 | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/fluxmachines/patchouli_books/book/en_us/categories/machines.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 @@ | ||
{ | ||
"name": "Machines", | ||
"description": "The backbone of Flux Machines. Create automated systems, massive power generation, and more.", | ||
"icon": "fluxmachines:flux_furnace", | ||
"sortnum": 2 | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/fluxmachines/patchouli_books/book/en_us/categories/tools.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 @@ | ||
{ | ||
"name": "Tools", | ||
"description": "These tools will make your life a lot easier.", | ||
"icon": "fluxmachines:wrench", | ||
"sortnum": 1 | ||
} |
16 changes: 16 additions & 0 deletions
16
...n/resources/assets/fluxmachines/patchouli_books/book/en_us/entries/armor/steel_boots.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,16 @@ | ||
{ | ||
"name": "Steel Boots", | ||
"icon": "fluxmachines:steel_boots", | ||
"category": "fluxmachines:armor", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "Steel Boots are a piece of armor that provides protection to the player. It is crafted using Steel Ingots, and provides more protection than a regular Iron Boots." | ||
}, | ||
{ | ||
"type": "patchouli:crafting", | ||
"recipe": "fluxmachines:armor/steel_boots", | ||
"text": "Steel Boots can be crafted using the following recipe: 4 Steel Ingots." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
...ources/assets/fluxmachines/patchouli_books/book/en_us/entries/armor/steel_chestplate.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,16 @@ | ||
{ | ||
"name": "Steel Chestplate", | ||
"icon": "fluxmachines:steel_chestplate", | ||
"category": "fluxmachines:armor", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "The Steel Chestplate is a piece of armor that provides protection to the player. It is crafted using Steel Ingots, and provides more protection than a regular Iron Chestplate." | ||
}, | ||
{ | ||
"type": "patchouli:crafting", | ||
"recipe": "fluxmachines:armor/steel_chestplate", | ||
"text": "The Steel Chestplate can be crafted using the following recipe: 8 Steel Ingots." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
.../resources/assets/fluxmachines/patchouli_books/book/en_us/entries/armor/steel_helmet.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,16 @@ | ||
{ | ||
"name": "Steel Helmet", | ||
"icon": "fluxmachines:steel_helmet", | ||
"category": "fluxmachines:armor", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "The Steel Helmet is a piece of armor that provides protection to the player. It is crafted using Steel Ingots, and provides more protection than a regular Iron Helmet." | ||
}, | ||
{ | ||
"type": "patchouli:crafting", | ||
"recipe": "fluxmachines:armor/steel_helmet", | ||
"text": "The Steel Helmet can be crafted using the following recipe: 5 Steel Ingots." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
...esources/assets/fluxmachines/patchouli_books/book/en_us/entries/armor/steel_leggings.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,16 @@ | ||
{ | ||
"name": "Steel Leggings", | ||
"icon": "fluxmachines:steel_leggings", | ||
"category": "fluxmachines:armor", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "Steel Leggings are piece of armor that provides protection to the player. It is crafted using Steel Ingots, and provides more protection than a regular Iron Leggings." | ||
}, | ||
{ | ||
"type": "patchouli:crafting", | ||
"recipe": "fluxmachines:armor/steel_leggings", | ||
"text": "Steel Leggings can be crafted using the following recipe: 7 Steel Ingots." | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
...resources/assets/fluxmachines/patchouli_books/book/en_us/entries/basics/energy_decay.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,15 @@ | ||
{ | ||
"name": "Energy Decay", | ||
"icon": "minecraft:nether_star", | ||
"category": "fluxmachines:basics", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "Energy Decay is a mechanic in Flux Machines that causes energy to be lost when transferring power over long distances or when a machine is powered and working/idle. Energy Decay is caused by the resistance of the power transfer method, and can be reduced by using better cables and power transfer methods." | ||
}, | ||
{ | ||
"type": "text", | ||
"text": "Energy Decay can be reduced by using Flux Cables, which have a lower resistance than other power transfer methods. Energy Decay can be reduced by using energy storage blocks, such as batteries and energy cells, to store energy and reduce the amount of energy lost. Machines can be modified to reduce Energy Decay by using energy efficiency upgrades, which reduce the amount of energy lost when working/idle. " | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
...resources/assets/fluxmachines/patchouli_books/book/en_us/entries/basics/forge_energy.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,15 @@ | ||
{ | ||
"name": "Forge Energy (FE)", | ||
"icon": "minecraft:nether_star", | ||
"category": "fluxmachines:basics", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "Forge Energy (FE) is a power system used by many mods in Minecraft. It is a universal power system that can be used to power machines and other devices. Forge Energy is measured in FE, and can be transferred using cables and other power transfer methods. Flux Machines uses Forge Energy as its power system. " | ||
}, | ||
{ | ||
"type": "text", | ||
"text": "Forge Energy can be generated using various methods, such as generators, solar panels, and other power sources. It can be stored in energy storage blocks, such as batteries and energy cells. Forge Energy can be transferred using cables, such as Flux Cables, and other power transfer methods." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
...ources/assets/fluxmachines/patchouli_books/book/en_us/entries/basics/getting_started.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,16 @@ | ||
{ | ||
"name": "Getting Started", | ||
"icon": "minecraft:nether_star", | ||
"category": "fluxmachines:basics", | ||
"priority": "true", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "Hey $(playername)! Welcome to $(fm). Flux Machines is a mod about automation and ease of life. In this book, you will learn about the basics of Flux Machines and how to get started with the mod. Let's get started!" | ||
}, | ||
{ | ||
"type": "text", | ||
"text": "Flux Machines is a mod that adds new machines, blocks, and items to Minecraft. These machines can be used to automate tasks, such as ore processing, item sorting, and energy generation. Flux Machines is designed to be easy to use and understand, with a focus on simplicity and efficiency with a touch of complexity. To get started, smelt some Iron Ingots in a furnace!" | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...sources/assets/fluxmachines/patchouli_books/book/en_us/entries/machines/flux_furnace.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,24 @@ | ||
{ | ||
"name": "Flux Furnace", | ||
"icon": "fluxmachines:flux_furnace", | ||
"category": "fluxmachines:machines", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "The Flux Furnace is a machine that can smelt items at a faster rate than a regular furnace. It requires FE to operate, and can be upgraded to smelt items even faster." | ||
}, | ||
{ | ||
"type": "text", | ||
"text": "The Flux Furnace has 3 upgrade slots, which can be used to upgrade the speed of the furnace. The upgrades can be crafted and placed in the upgrade slots to increase the speed of the furnace." | ||
}, | ||
{ | ||
"type": "text", | ||
"text": "The Flux Furnace can be powered by connecting it to a Flux Generator or any other FE power source. The Flux Furnace will not work without power." | ||
}, | ||
{ | ||
"type": "patchouli:crafting", | ||
"recipe": "fluxmachines:machine/flux_furnace", | ||
"text": "The Flux Furnace can be crafted using the following recipe: 6 Steel Ingots, 1 Furnace, 1 Redstone Torch, 1 Machine Casing." | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
...urces/assets/fluxmachines/patchouli_books/book/en_us/entries/machines/machine_casing.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,16 @@ | ||
{ | ||
"name": "Machine Casing", | ||
"icon": "fluxmachines:machine_casing", | ||
"category": "fluxmachines:machines", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "The Machine Casing is a block that is used to craft machines in the Flux Machines mod. It is used as the basis for all mechanical machines." | ||
}, | ||
{ | ||
"type": "patchouli:crafting", | ||
"recipe": "fluxmachines:machine_part/machine_casing", | ||
"text": "The Flux Furnace can be crafted using the following recipe: 4 Steel Ingots, 4 Iron Ingots, 1 Glass." | ||
} | ||
] | ||
} |
Oops, something went wrong.