fix config and extend example
This commit is contained in:
parent
74801ef10b
commit
f83d2c220f
|
@ -29,12 +29,12 @@ public class SimpleCreatorMod implements ModInitializer {
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
log(Level.INFO, "Initializing");
|
log(Level.INFO, "Initializing");
|
||||||
Tweed.runEntryPoints();
|
Tweed.runEntryPoints();
|
||||||
|
|
||||||
ConfigLoader.initialReload(
|
ConfigLoader.initialReload(
|
||||||
TweedRegistry.getConfigFile(MOD_ID),
|
TweedRegistry.getConfigFile(MOD_ID),
|
||||||
FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER ? ConfigEnvironment.SERVER : ConfigEnvironment.UNIVERSAL
|
FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER ? ConfigEnvironment.SERVER : ConfigEnvironment.UNIVERSAL
|
||||||
);
|
);
|
||||||
irl.load();
|
irl.load();
|
||||||
brl.load();
|
brl.load();
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ import org.apache.logging.log4j.Level;
|
||||||
public class SimpleCreatorModClient implements ClientModInitializer {
|
public class SimpleCreatorModClient implements ClientModInitializer {
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeClient() {
|
public void onInitializeClient() {
|
||||||
|
SimpleCreatorMod.log(Level.INFO, "Client init");
|
||||||
for (Pair<Block, String> blockRenderLayerPair : SimpleCreatorMod.BLOCKS_RENDER_LAYER) {
|
for (Pair<Block, String> blockRenderLayerPair : SimpleCreatorMod.BLOCKS_RENDER_LAYER) {
|
||||||
BlockRenderLayerMap.INSTANCE.putBlock(blockRenderLayerPair.getLeft(), getRenderLayer(blockRenderLayerPair.getRight()));
|
BlockRenderLayerMap.INSTANCE.putBlock(blockRenderLayerPair.getLeft(), getRenderLayer(blockRenderLayerPair.getRight()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"material": "ice",
|
|
||||||
"mapColor": "yellow",
|
"mapColor": "yellow",
|
||||||
"collidable": true,
|
"collidable": true,
|
||||||
"soundGroup": "wool",
|
"soundGroup": "wool",
|
||||||
|
@ -13,5 +12,20 @@
|
||||||
"slowDownMultiplier": 2.0,
|
"slowDownMultiplier": 2.0,
|
||||||
"jumpVelocityMultiplier": 2.0,
|
"jumpVelocityMultiplier": 2.0,
|
||||||
"opaque": true,
|
"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"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user