From f83d2c220fb21d593a6e92c372bc8c8914b271e0 Mon Sep 17 00:00:00 2001 From: QuImUfu Date: Fri, 7 Jul 2023 22:48:25 +0200 Subject: [PATCH] fix config and extend example --- .../simple_creator/SimpleCreatorMod.java | 10 +++++----- .../simple_creator/SimpleCreatorModClient.java | 1 + .../data/simple_creator/blocks/test_block.json | 18 ++++++++++++++++-- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/main/java/quimufu/simple_creator/SimpleCreatorMod.java b/src/main/java/quimufu/simple_creator/SimpleCreatorMod.java index 5902df2..f8c7b48 100644 --- a/src/main/java/quimufu/simple_creator/SimpleCreatorMod.java +++ b/src/main/java/quimufu/simple_creator/SimpleCreatorMod.java @@ -29,12 +29,12 @@ public class SimpleCreatorMod implements ModInitializer { @Override public void onInitialize() { log(Level.INFO, "Initializing"); - Tweed.runEntryPoints(); + Tweed.runEntryPoints(); - ConfigLoader.initialReload( - TweedRegistry.getConfigFile(MOD_ID), - FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER ? ConfigEnvironment.SERVER : ConfigEnvironment.UNIVERSAL - ); + ConfigLoader.initialReload( + TweedRegistry.getConfigFile(MOD_ID), + FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER ? ConfigEnvironment.SERVER : ConfigEnvironment.UNIVERSAL + ); irl.load(); brl.load(); } diff --git a/src/main/java/quimufu/simple_creator/SimpleCreatorModClient.java b/src/main/java/quimufu/simple_creator/SimpleCreatorModClient.java index f1c249d..c676c1b 100644 --- a/src/main/java/quimufu/simple_creator/SimpleCreatorModClient.java +++ b/src/main/java/quimufu/simple_creator/SimpleCreatorModClient.java @@ -13,6 +13,7 @@ import org.apache.logging.log4j.Level; public class SimpleCreatorModClient implements ClientModInitializer { @Override public void onInitializeClient() { + SimpleCreatorMod.log(Level.INFO, "Client init"); for (Pair blockRenderLayerPair : SimpleCreatorMod.BLOCKS_RENDER_LAYER) { BlockRenderLayerMap.INSTANCE.putBlock(blockRenderLayerPair.getLeft(), getRenderLayer(blockRenderLayerPair.getRight())); } diff --git a/src/main/resources/data/simple_creator/blocks/test_block.json b/src/main/resources/data/simple_creator/blocks/test_block.json index d8247f7..90e443d 100644 --- a/src/main/resources/data/simple_creator/blocks/test_block.json +++ b/src/main/resources/data/simple_creator/blocks/test_block.json @@ -1,5 +1,4 @@ { - "material": "ice", "mapColor": "yellow", "collidable": true, "soundGroup": "wool", @@ -13,5 +12,20 @@ "slowDownMultiplier": 2.0, "jumpVelocityMultiplier": 2.0, "opaque": true, - "itemGroup": "food" + "itemGroup": "minecraft:building_blocks", + "allowsSpawning": true, + "solidBlock": true, + "suffocates": true, + "blockVision": true, + "postProcess": false, + "emissiveLighting": false, + "modelOffset": "none", + "pistonBehavior": "normal", + "instrument": "harp", + "burnable": false, + "replaceable": false, + "noBlockBreakParticles": false, + "requiresTool": false, + "breaksInstantly": false, + "renderLayer": "solid" } \ No newline at end of file