fix config and extend example

This commit is contained in:
QuImUfu 2023-07-07 22:48:25 +02:00
parent 74801ef10b
commit f83d2c220f
3 changed files with 22 additions and 7 deletions

View File

@ -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();
}

View File

@ -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<Block, String> blockRenderLayerPair : SimpleCreatorMod.BLOCKS_RENDER_LAYER) {
BlockRenderLayerMap.INSTANCE.putBlock(blockRenderLayerPair.getLeft(), getRenderLayer(blockRenderLayerPair.getRight()));
}

View File

@ -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"
}