Furnace and Path models fix
This commit is contained in:
parent
e8996b8aa6
commit
2986556c97
3 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,7 @@ yarn_mappings=6
|
||||||
loader_version=0.11.3
|
loader_version=0.11.3
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.1.7
|
mod_version = 0.1.8
|
||||||
maven_group = ru.bclib
|
maven_group = ru.bclib
|
||||||
archives_base_name = bclib
|
archives_base_name = bclib
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@ public class BaseFurnaceBlock extends FurnaceBlock implements BlockModelProvider
|
||||||
public @Nullable BlockModel getBlockModel(ResourceLocation blockId, BlockState blockState) {
|
public @Nullable BlockModel getBlockModel(ResourceLocation blockId, BlockState blockState) {
|
||||||
String blockName = blockId.getPath();
|
String blockName = blockId.getPath();
|
||||||
Map<String, String> textures = Maps.newHashMap();
|
Map<String, String> textures = Maps.newHashMap();
|
||||||
|
textures.put("%modid%", blockId.getNamespace());
|
||||||
textures.put("%top%", blockName + "_top");
|
textures.put("%top%", blockName + "_top");
|
||||||
textures.put("%side%", blockName + "_side");
|
textures.put("%side%", blockName + "_side");
|
||||||
Optional<String> pattern;
|
Optional<String> pattern;
|
||||||
|
|
|
@ -68,6 +68,7 @@ public class BasePathBlock extends BaseBlockNotFull {
|
||||||
public @Nullable BlockModel getBlockModel(ResourceLocation resourceLocation, BlockState blockState) {
|
public @Nullable BlockModel getBlockModel(ResourceLocation resourceLocation, BlockState blockState) {
|
||||||
String name = resourceLocation.getPath();
|
String name = resourceLocation.getPath();
|
||||||
Map<String, String> textures = Maps.newHashMap();
|
Map<String, String> textures = Maps.newHashMap();
|
||||||
|
textures.put("%modid%", resourceLocation.getNamespace());
|
||||||
textures.put("%top%", name + "_top");
|
textures.put("%top%", name + "_top");
|
||||||
textures.put("%side%", name.replace("_path", "") + "_side");
|
textures.put("%side%", name.replace("_path", "") + "_side");
|
||||||
Optional<String> pattern = PatternsHelper.createJson(BasePatterns.BLOCK_PATH, textures);
|
Optional<String> pattern = PatternsHelper.createJson(BasePatterns.BLOCK_PATH, textures);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue