cluster tnt textures
This commit is contained in:
5 files changed
+11
-1
No files matched your search
@@ -30,6 +30,9 @@ public class ModBlockStateProvider extends BlockStateProvider {
|
||||
sideTopBottom(blocks.TNT_CLAYMORE);
|
||||
sideTopBottom(blocks.TNT_HOMING);
|
||||
blockWithItem(blocks.TNT_BLACK_HOLE);
|
||||
clusterTNT(blocks.TNT_CLUSTER_2);
|
||||
clusterTNT(blocks.TNT_CLUSTER_4);
|
||||
clusterTNT(blocks.TNT_CLUSTER_8);
|
||||
}
|
||||
|
||||
private void blockWithItem(RegistryObject<Block> blockRegistryObject) {
|
||||
@@ -68,6 +71,13 @@ public class ModBlockStateProvider extends BlockStateProvider {
|
||||
simpleBlockItem(block, model);
|
||||
}
|
||||
|
||||
public void clusterTNT(RegistryObject<Block> blockRegistryObject) {
|
||||
Block block = blockRegistryObject.get();
|
||||
ModelFile model = models().cubeBottomTop(name(block), extend(blockTexture(block), "_side"), extend(blockTexture(Blocks.TNT), "_bottom"), extend(blockTexture(Blocks.TNT), "_top"));
|
||||
this.getVariantBuilder(block).forAllStates(blockState -> ConfiguredModel.builder().modelFile(model).build());
|
||||
simpleBlockItem(block, model);
|
||||
}
|
||||
|
||||
public ModelFile northEastTopBottom(Block block) {
|
||||
return models().cube(name(block), extend(blockTexture(block), "_bottom"), extend(blockTexture(block), "_top"), extend(blockTexture(block), "_nw"), extend(blockTexture(block), "_se"), extend(blockTexture(block), "_se"), extend(blockTexture(block), "_nw")).texture("particle", extend(blockTexture(block), "_se"));
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 438 B |
Binary file not shown.
|
After Width: | Height: | Size: 446 B |
Binary file not shown.
|
After Width: | Height: | Size: 387 B |
Reference in new issue
Block a user