generated from VulpixelMC/MDK-1.21-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(day 16): Witchery nature & "Super Secret Settings"
- Loading branch information
Showing
17 changed files
with
134 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package gay.sylv.legacy_landscape; | ||
|
||
import gay.sylv.legacy_landscape.client.SuperSecretSetting; | ||
import net.neoforged.bus.api.SubscribeEvent; | ||
import net.neoforged.fml.common.EventBusSubscriber; | ||
import net.neoforged.fml.event.config.ModConfigEvent; | ||
import net.neoforged.neoforge.common.ModConfigSpec; | ||
|
||
@EventBusSubscriber(modid = LegacyLandscape.MOD_ID, bus = EventBusSubscriber.Bus.MOD) | ||
public class ClientConfig { | ||
private static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder(); | ||
|
||
private static final ModConfigSpec.IntValue SUPER_SECRET_SETTINGS = BUILDER | ||
.comment("Super secret settings to enhance your experience.") | ||
.comment("Do not use this setting if you have photosensitive epilepsy or are otherwise sensitive to flashing lights.") | ||
.defineInRange("superSecretSettings", 0, 0, SuperSecretSetting.values().length - 1); | ||
|
||
static final ModConfigSpec SPEC = BUILDER.build(); | ||
|
||
public static SuperSecretSetting superSecretSettings; | ||
|
||
@SubscribeEvent | ||
static void onLoad(final ModConfigEvent event) | ||
{ | ||
superSecretSettings = SuperSecretSetting.values()[SUPER_SECRET_SETTINGS.get()]; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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/java/gay/sylv/legacy_landscape/client/SuperSecretSetting.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,6 @@ | ||
package gay.sylv.legacy_landscape.client; | ||
|
||
public enum SuperSecretSetting { | ||
NONE, | ||
BLUR | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/main/resources/data/legacy_landscape/nature/ephemeral_fabric_of_reality.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,11 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "neoforge:mod_loaded", | ||
"modid": "witchery" | ||
} | ||
], | ||
"block": "#legacy_landscape:ephemeral_fabric_of_reality", | ||
"power": 1, | ||
"limit": 800 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/resources/data/legacy_landscape/nature/fabric_of_reality.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,11 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "neoforge:mod_loaded", | ||
"modid": "witchery" | ||
} | ||
], | ||
"block": "#legacy_landscape:fabric_of_reality", | ||
"power": 8, | ||
"limit": 800 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/resources/data/legacy_landscape/nature/flowing_reality.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,11 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "neoforge:mod_loaded", | ||
"modid": "witchery" | ||
} | ||
], | ||
"block": "#legacy_landscape:flowing_reality", | ||
"power": 32, | ||
"limit": 800 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/resources/data/legacy_landscape/nature/intertwined_reality.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,11 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "neoforge:mod_loaded", | ||
"modid": "witchery" | ||
} | ||
], | ||
"block": "#legacy_landscape:intertwined_reality", | ||
"power": 12, | ||
"limit": 800 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/resources/data/legacy_landscape/nature/patched_fabric_of_reality.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,11 @@ | ||
{ | ||
"neoforge:conditions": [ | ||
{ | ||
"type": "neoforge:mod_loaded", | ||
"modid": "witchery" | ||
} | ||
], | ||
"block": "#legacy_landscape:patched_fabric_of_reality", | ||
"power": 16, | ||
"limit": 800 | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/legacy_landscape/tags/block/ephemeral_fabric_of_reality.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 @@ | ||
{ | ||
"values": [ | ||
"legacy_landscape:ephemeral_fabric_of_reality", | ||
"legacy_landscape:inverted_ephemeral_fabric_of_reality" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/legacy_landscape/tags/block/fabric_of_reality.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 @@ | ||
{ | ||
"values": [ | ||
"legacy_landscape:fabric_of_reality", | ||
"legacy_landscape:inverted_fabric_of_reality" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/legacy_landscape/tags/block/flowing_reality.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 @@ | ||
{ | ||
"values": [ | ||
"legacy_landscape:flowing_reality", | ||
"legacy_landscape:inverted_flowing_reality" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/legacy_landscape/tags/block/intertwined_reality.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 @@ | ||
{ | ||
"values": [ | ||
"legacy_landscape:intertwined_reality", | ||
"legacy_landscape:inverted_intertwined_reality" | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/data/legacy_landscape/tags/block/patched_fabric_of_reality.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 @@ | ||
{ | ||
"values": [ | ||
"legacy_landscape:patched_fabric_of_reality", | ||
"legacy_landscape:inverted_patched_fabric_of_reality" | ||
] | ||
} |