Triple block pattern fix

This commit is contained in:
paulevsGitch 2021-03-11 21:21:33 +03:00
parent aaea144366
commit e1122359f1
2 changed files with 13 additions and 13 deletions

View file

@ -48,7 +48,7 @@ public class TripleTerrainBlock extends EndTerrainBlock {
System.out.println(block);
String name = Registry.BLOCK.getId(this).getPath();
if (block.endsWith("_middle")) {
return Patterns.createJson(Patterns.BLOCK_BASE, name + "_top");
return Patterns.createJson(Patterns.BLOCK_BASE, name + "_top", name + "_top");
}
Map<String, String> map = Maps.newHashMap();
map.put("%top%", "betterend:block/" + name + "_top");

View file

@ -1,22 +1,22 @@
{
"variants": {
"shape=bottom": [
{ "model": "betterend:pattern/%block%" },
{ "model": "betterend:pattern/%block%", "y": 90 },
{ "model": "betterend:pattern/%block%", "y": 180 },
{ "model": "betterend:pattern/%block%", "y": 270 }
{ "model": "betterend:pattern/%block%/%block%" },
{ "model": "betterend:pattern/%block%/%block%", "y": 90 },
{ "model": "betterend:pattern/%block%/%block%", "y": 180 },
{ "model": "betterend:pattern/%block%/%block%", "y": 270 }
],
"shape=middle": [
{ "model": "betterend:pattern/%block%_middle" },
{ "model": "betterend:pattern/%block%_middle", "y": 90 },
{ "model": "betterend:pattern/%block%_middle", "y": 180 },
{ "model": "betterend:pattern/%block%_middle", "y": 270 }
{ "model": "betterend:pattern/%block%/%block%_middle" },
{ "model": "betterend:pattern/%block%/%block%_middle", "y": 90 },
{ "model": "betterend:pattern/%block%/%block%_middle", "y": 180 },
{ "model": "betterend:pattern/%block%/%block%_middle", "y": 270 }
],
"shape=top": [
{ "model": "betterend:pattern/%block%", "x": 180 },
{ "model": "betterend:pattern/%block%", "x": 180, "y": 90 },
{ "model": "betterend:pattern/%block%", "x": 180, "y": 180 },
{ "model": "betterend:pattern/%block%", "x": 180, "y": 270 }
{ "model": "betterend:pattern/%block%/%block%", "x": 180 },
{ "model": "betterend:pattern/%block%/%block%", "x": 180, "y": 90 },
{ "model": "betterend:pattern/%block%/%block%", "x": 180, "y": 180 },
{ "model": "betterend:pattern/%block%/%block%", "x": 180, "y": 270 }
]
}
}