generate block states for env distributor

This commit is contained in:
Robin Bärtschi 2024-06-26 15:40:47 +02:00
parent 73befa1e00
commit a22b1da189
4 changed files with 23 additions and 1 deletions

View File

@ -1,2 +1,3 @@
// 1.21 2024-06-16T13:02:59.3372838 Block States: environmenttech // 1.21 2024-06-26T15:38:42.326642 Block States: environmenttech
6abc8b83d4fb4316ca2dbb977510e6f349ef9e9c assets/environmenttech/blockstates/env_collector.json 6abc8b83d4fb4316ca2dbb977510e6f349ef9e9c assets/environmenttech/blockstates/env_collector.json
f7e8f32de50650930080d0d5d1a24176774d4bb9 assets/environmenttech/blockstates/env_distributor.json

View File

@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "environmenttech:block/env_distributor",
"y": 90
},
"facing=north": {
"model": "environmenttech:block/env_distributor"
},
"facing=south": {
"model": "environmenttech:block/env_distributor",
"y": 180
},
"facing=west": {
"model": "environmenttech:block/env_distributor",
"y": 270
}
}
}

View File

@ -17,5 +17,6 @@ public class ETBlockStateProvider extends BlockStateProvider {
protected void registerStatesAndModels() { protected void registerStatesAndModels() {
// registerEnvCollector(); // registerEnvCollector();
horizontalBlock(ETBlocks.ENV_COLLECTOR_BLOCK.get(), new ModelFile.UncheckedModelFile(modLoc("block/env_collector"))); horizontalBlock(ETBlocks.ENV_COLLECTOR_BLOCK.get(), new ModelFile.UncheckedModelFile(modLoc("block/env_collector")));
horizontalBlock(ETBlocks.ENV_DISTRIBUTOR_BLOCK.get(), new ModelFile.UncheckedModelFile(modLoc("block/env_distributor")));
} }
} }

View File

@ -21,6 +21,7 @@ public class ETItemModelProvider extends ItemModelProvider {
@Override @Override
protected void registerModels() { protected void registerModels() {
withExistingParent(ETBlocks.ENV_COLLECTOR_BLOCK.getId().getPath(), modLoc("block/" + "env_collector")); withExistingParent(ETBlocks.ENV_COLLECTOR_BLOCK.getId().getPath(), modLoc("block/" + "env_collector"));
// withExistingParent(ETBlocks.ENV_DISTRIBUTOR_BLOCK.getId().getPath(), modLoc("block/" + "env_distributor"));
basicItem(ETItems.ENVIRONMENTAL_ESSENCE_ITEM.get()); basicItem(ETItems.ENVIRONMENTAL_ESSENCE_ITEM.get());
basicItem(ETItems.GLASS_TANK.get()); basicItem(ETItems.GLASS_TANK.get());
registerEnvDetector(); registerEnvDetector();