mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
Fix multi-layer model loader to actually work in a sane way. No more "base" model involved, and now transforms and overrides work as expected.
This commit is contained in:
1 parent
2c054fca76
commit
c1840abb0a
3 files changed
+32
-39
No files matched your search
@@ -53,7 +53,7 @@ public class MultiLayerModelTest
|
||||
if (!ENABLED)
|
||||
return;
|
||||
event.getRegistry().register(
|
||||
new Block(Block.Properties.create(Material.WOOD))
|
||||
new Block(Block.Properties.create(Material.WOOD).func_226896_b_())
|
||||
{
|
||||
}.setRegistryName(blockId)
|
||||
);
|
||||
|
||||
+5
-10
@@ -2,20 +2,15 @@
|
||||
"parent": "block/block",
|
||||
"loader": "forge:multi-layer",
|
||||
"layers": {
|
||||
"__comment": "base is used for model properties - camera transforms, isGui3d, e.t.c.",
|
||||
"base": {
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "block/slime_block" }
|
||||
},
|
||||
|
||||
"__comment": "per-layer models",
|
||||
"solid": {
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "block/slime_block" },
|
||||
"transform": { "scale": 0.5 }
|
||||
"transform": { "scale": 0.5, "translation": [-0.25,-0.25,-0.25] }
|
||||
},
|
||||
"translucent": {
|
||||
"parent": "minecraft:block/pink_stained_glass_pane_noside"
|
||||
"parent": "block/cube_all",
|
||||
"textures": { "all": "block/slime_block" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"textures": { "particle": "block/slime_block" }
|
||||
}
|
||||
Reference in new issue
Block a user