fix dimensions to be acaptable
This commit is contained in:
parent
57aff3b28d
commit
0c0139275b
@ -2,16 +2,36 @@ package net.Chipperfluff.chipi;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
|
||||
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.world.GameRules;
|
||||
import net.Chipperfluff.chipi.command.ChipperCommand;
|
||||
|
||||
public class ChipiMod implements ModInitializer {
|
||||
|
||||
private static final Identifier CHIPI_DIM =
|
||||
new Identifier("chipi", "chipi_dimension");
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
CommandRegistrationCallback.EVENT.register(
|
||||
(dispatcher, registryAccess, environment) -> {
|
||||
ChipperCommand.register(dispatcher);
|
||||
|
||||
ServerTickEvents.END_WORLD_TICK.register((ServerWorld world) -> {
|
||||
|
||||
if (!world.getRegistryKey().getValue().equals(CHIPI_DIM)) {
|
||||
return;
|
||||
}
|
||||
|
||||
world.setTimeOfDay(18000);
|
||||
|
||||
world.getGameRules()
|
||||
.get(GameRules.DO_DAYLIGHT_CYCLE)
|
||||
.set(false, world.getServer());
|
||||
});
|
||||
|
||||
CommandRegistrationCallback.EVENT.register(
|
||||
(dispatcher, registryAccess, environment) ->
|
||||
ChipperCommand.register(dispatcher)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
16
src/main/java/net/Chipperfluff/chipi/client/ChipiClient.java
Normal file
16
src/main/java/net/Chipperfluff/chipi/client/ChipiClient.java
Normal file
@ -0,0 +1,16 @@
|
||||
package net.Chipperfluff.chipi.client;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.minecraft.client.render.DimensionEffects;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class ChipiClient implements ClientModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
//DimensionEffects.register(
|
||||
// new Identifier("chipi", "void"),
|
||||
// new VoidDimensionEffects()
|
||||
//);
|
||||
}
|
||||
}
|
||||
11
src/main/resources/chipi.mixins.json
Normal file
11
src/main/resources/chipi.mixins.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "net.Chipperfluff.chipi.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
13
src/main/resources/data/chipi/dimension/chipi_dimension.json
Normal file
13
src/main/resources/data/chipi/dimension/chipi_dimension.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "chipi:chipi_type",
|
||||
"generator": {
|
||||
"type": "minecraft:flat",
|
||||
"settings": {
|
||||
"biome": "chipi:void",
|
||||
"lakes": false,
|
||||
"features": false,
|
||||
"layers": [],
|
||||
"structure_overrides": []
|
||||
}
|
||||
}
|
||||
}
|
||||
13
src/main/resources/data/chipi/dimension_effects/void.json
Normal file
13
src/main/resources/data/chipi/dimension_effects/void.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"sky_type": "none",
|
||||
"type": "chipi:void",
|
||||
"clouds": false,
|
||||
"weather": false,
|
||||
"sky_color": 0,
|
||||
"fog_color": 0,
|
||||
"water_color": 0,
|
||||
"water_fog_color": 0,
|
||||
"stars": false,
|
||||
"sun": false,
|
||||
"moon": false
|
||||
}
|
||||
28
src/main/resources/data/chipi/dimension_type/chipi_type.json
Normal file
28
src/main/resources/data/chipi/dimension_type/chipi_type.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"ambient_light": 0,
|
||||
"bed_works": false,
|
||||
"coordinate_scale": 1,
|
||||
"has_ceiling": false,
|
||||
"has_raids": false,
|
||||
"has_skylight": false,
|
||||
"has_sky": false,
|
||||
"has_weather": false,
|
||||
"fixed_time": 18000,
|
||||
"effects": "chipi:void",
|
||||
"height": 384,
|
||||
"infiniburn": "#minecraft:infiniburn_overworld",
|
||||
"logical_height": 384,
|
||||
"min_y": -64,
|
||||
"monster_spawn_block_light_limit": 0,
|
||||
"monster_spawn_light_level": {
|
||||
"type": "minecraft:uniform",
|
||||
"value": {
|
||||
"min_inclusive": 0,
|
||||
"max_inclusive": 0
|
||||
}
|
||||
},
|
||||
"natural": false,
|
||||
"piglin_safe": false,
|
||||
"respawn_anchor_works": true,
|
||||
"ultrawarm": false
|
||||
}
|
||||
20
src/main/resources/data/chipi/worldgen/biome/void.json
Normal file
20
src/main/resources/data/chipi/worldgen/biome/void.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"temperature": 0,
|
||||
"downfall": 0,
|
||||
"has_precipitation": false,
|
||||
"temperature_modifier": "frozen",
|
||||
"creature_spawn_probability": 0,
|
||||
"effects": {
|
||||
"sky_color": 0,
|
||||
"fog_color": 0,
|
||||
"water_color": 0,
|
||||
"water_fog_color": 0,
|
||||
"grass_color": 0,
|
||||
"foliage_color": 0,
|
||||
"grass_color_modifier": "none"
|
||||
},
|
||||
"spawners": {},
|
||||
"spawn_costs": {},
|
||||
"carvers": {},
|
||||
"features": []
|
||||
}
|
||||
@ -4,16 +4,23 @@
|
||||
"version": "1.0.0",
|
||||
|
||||
"name": "Chipi Mod",
|
||||
"description": "Test mod with a command",
|
||||
"authors": ["You"],
|
||||
"description": "will u be me friend? :3 (Chipi Dimension Mod) (fabric) (made by Chipperfluff) pst did i tell u that its made by Chipperfluff?? :3",
|
||||
"authors": ["Chipperfluff"],
|
||||
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"net.Chipperfluff.chipi.ChipiMod"
|
||||
],
|
||||
"client": [
|
||||
"net.Chipperfluff.chipi.client.ChipiClient"
|
||||
]
|
||||
},
|
||||
|
||||
"mixins": [
|
||||
"chipi.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.0",
|
||||
"minecraft": ">=1.20",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user