Small pot fix, potted inflexia

This commit is contained in:
paulevsGitch 2021-07-31 15:44:41 +03:00
parent 757ed82817
commit 533dd7c92c
5 changed files with 30 additions and 11 deletions

View file

@ -381,15 +381,18 @@ public class FlowerPotBlock extends BaseBlockNotFull implements RenderLayerProvi
.add(); .add();
} }
else { else {
for (ResourceLocation location : modelCache.keySet()) { ResourceLocation loc = Registry.BLOCK.getKey(plants[i]);
if (location.getPath().equals(modelPath.getPath())) { modelPath = new ResourceLocation(loc.getNamespace(), "block/" + loc.getPath() + "_potted");
model.part(location) Map<String, String> textures = Maps.newHashMap();
textures.put("%modid%", loc.getNamespace());
textures.put("%texture%", loc.getPath());
Optional<String> pattern = Patterns.createJson(BasePatterns.BLOCK_CROSS, textures);
UnbakedModel unbakedModel = ModelsHelper.fromPattern(pattern);
modelCache.put(modelPath, unbakedModel);
model.part(modelPath)
.setTransformation(offset) .setTransformation(offset)
.setCondition(state -> state.getValue(PLANT_ID) == compareID) .setCondition(state -> state.getValue(PLANT_ID) == compareID)
.add(); .add();
break;
}
}
} }
} }

View file

@ -903,5 +903,10 @@
"block.betterend.umbralith_tiles": "Umbralith Tiles", "block.betterend.umbralith_tiles": "Umbralith Tiles",
"block.betterend.umbralith_wall": "Umbralith Wall", "block.betterend.umbralith_wall": "Umbralith Wall",
"biome.betterend.umbra_valley": "Umbra Valley" "biome.betterend.umbra_valley": "Umbra Valley",
"block.betterend.inflexia": "Inflexia",
"block.betterend.pallidium_full": "Pallidium (Full Cover)",
"block.betterend.pallidium_heavy": "Pallidium (Heavy Cover)",
"block.betterend.pallidium_thin": "Pallidium (Thin Cover)",
"block.betterend.pallidium_tiny": "Pallidium (Tiny Cover)"
} }

View file

@ -918,5 +918,10 @@
"block.betterend.umbralith_tiles": "Умбралитовая плитка", "block.betterend.umbralith_tiles": "Умбралитовая плитка",
"block.betterend.umbralith_wall": "Умбралитовая стена", "block.betterend.umbralith_wall": "Умбралитовая стена",
"biome.betterend.umbra_valley": "Долина Умбра" "biome.betterend.umbra_valley": "Долина Умбра",
"block.betterend.inflexia": "Инфлексия",
"block.betterend.pallidium_full": "Паллидиум (полное покрытие)",
"block.betterend.pallidium_heavy": "Паллидиум (густое покрытие)",
"block.betterend.pallidium_thin": "Паллидиум (тонкое покрытие)",
"block.betterend.pallidium_tiny": "Паллидиум (маленькое покрытие)"
} }

View file

@ -0,0 +1,6 @@
{
"parent": "block/cross",
"textures": {
"cross": "betterend:block/inflexia_potted"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B