Small pot fix, potted inflexia
This commit is contained in:
parent
757ed82817
commit
533dd7c92c
5 changed files with 30 additions and 11 deletions
|
@ -381,15 +381,18 @@ public class FlowerPotBlock extends BaseBlockNotFull implements RenderLayerProvi
|
|||
.add();
|
||||
}
|
||||
else {
|
||||
for (ResourceLocation location : modelCache.keySet()) {
|
||||
if (location.getPath().equals(modelPath.getPath())) {
|
||||
model.part(location)
|
||||
ResourceLocation loc = Registry.BLOCK.getKey(plants[i]);
|
||||
modelPath = new ResourceLocation(loc.getNamespace(), "block/" + loc.getPath() + "_potted");
|
||||
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)
|
||||
.setCondition(state -> state.getValue(PLANT_ID) == compareID)
|
||||
.add();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -903,5 +903,10 @@
|
|||
"block.betterend.umbralith_tiles": "Umbralith Tiles",
|
||||
"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)"
|
||||
}
|
||||
|
|
|
@ -918,5 +918,10 @@
|
|||
"block.betterend.umbralith_tiles": "Умбралитовая плитка",
|
||||
"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": "Паллидиум (маленькое покрытие)"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "block/cross",
|
||||
"textures": {
|
||||
"cross": "betterend:block/inflexia_potted"
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 173 B |
Loading…
Add table
Add a link
Reference in a new issue