Fix wand bind mode model

This commit is contained in:
Vincent Lee committed 2020-07-21 08:57:09 -05:00
1 parent ec55bbb8ea
commit d51ab7262a
2 files changed
+10 -2

No files matched your search

@@ -1,6 +1,9 @@
{
"parent": "item/generated",
"textures": {
"layer0": "botania:item/twig_wand_bind"
"layer0": "botania:item/twig_wand",
"layer1": "botania:item/twig_wand_top",
"layer2": "botania:item/twig_wand_bottom",
"layer3": "botania:item/twig_wand_bind"
}
}
@@ -261,12 +261,17 @@ public class ItemModelProvider extends net.minecraftforge.client.model.generator
.model(generatedItem(name(tornadoRod) + "_active")).end();
items.remove(tornadoRod);
ModelFile twigwandBind = withExistingParent(name(twigWand) + "_bind", GENERATED)
.texture("layer0", prefix("item/" + name(twigWand)))
.texture("layer1", prefix("item/" + name(twigWand) + "_top"))
.texture("layer2", prefix("item/" + name(twigWand) + "_bottom"))
.texture("layer3", prefix("item/" + name(twigWand) + "_bind"));
generatedItem(twigWand)
.texture("layer1", prefix("item/" + name(twigWand) + "_top"))
.texture("layer2", prefix("item/" + name(twigWand) + "_bottom"))
.override()
.predicate(prefix("bindmode"), 1)
.model(generatedItem(name(twigWand) + "_bind")).end();
.model(twigwandBind).end();
items.remove(twigWand);
}