This commit is contained in:
yrsegal@gmail.com 2022-05-11 07:16:14 -04:00
parent fb10ab137f
commit 91e10a7c36
3 changed files with 15 additions and 14 deletions

View file

@ -53,7 +53,7 @@ public abstract class ItemPackagedSpell extends ItemManaHolder implements SpellH
@Override
public boolean hasSpell(ItemStack stack) {
return NBTHelper.hasCompound(stack, TAG_PATTERNS);
return NBTHelper.hasList(stack, TAG_PATTERNS, Tag.TAG_COMPOUND);
}
@Override

View file

@ -41,8 +41,7 @@
"east": {"uv": [12, 10, 10, 16], "texture": "#3"},
"south": {"uv": [8, 9, 9, 15], "texture": "#3"},
"west": {"uv": [8, 9, 6, 15], "texture": "#3"},
"up": {"uv": [8, 11, 9, 13], "texture": "#3"},
"down": {"uv": [0, 0, 1, 2], "texture": "#missing"}
"up": {"uv": [8, 11, 9, 13], "texture": "#3"}
}
},
{
@ -54,8 +53,7 @@
"east": {"uv": [9, 14, 12, 16], "texture": "#3"},
"south": {"uv": [3, 14, 7, 16], "texture": "#3"},
"west": {"uv": [3, 13, 5, 16], "rotation": 270, "texture": "#3"},
"up": {"uv": [6, 10, 10, 13], "texture": "#3"},
"down": {"uv": [0, 0, 4, 2], "texture": "#missing"}
"up": {"uv": [6, 10, 10, 13], "texture": "#3"}
}
},
{
@ -67,8 +65,7 @@
"east": {"uv": [7, 11, 10, 12], "texture": "#3"},
"south": {"uv": [8, 12, 10, 13], "texture": "#3"},
"west": {"uv": [7, 12, 10, 13], "texture": "#3"},
"up": {"uv": [7, 9, 9, 12], "texture": "#3"},
"down": {"uv": [0, 0, 2, 3], "texture": "#missing"}
"up": {"uv": [7, 9, 9, 12], "texture": "#3"}
}
}
],
@ -109,4 +106,4 @@
"scale": [0.5, 0.5, 0.5]
}
}
}
}

View file

@ -1,14 +1,18 @@
{
"parent": "block/block",
"textures": {
"particle": "#all"
},
"elements": [
{ "from": [ 0, 0, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "uv": [16, 0, 0, 16], "texture": "#down", "cullface": "down" },
"up": { "uv": [0, 0, 0, 16], "texture": "#up", "cullface": "up" },
"north": { "uv": [16, 0, 0, 16], "texture": "#north", "cullface": "north" },
"south": { "uv": [0, 0, 16, 16], "texture": "#south", "cullface": "south" },
"west": { "uv": [16, 0, 0, 16], "texture": "#west", "cullface": "west" },
"east": { "uv": [0, 0, 16, 16], "texture": "#east", "cullface": "east" }
"down": { "uv": [16, 16, 0, 0], "texture": "#all", "cullface": "down" },
"up": { "uv": [0, 0, 16, 16], "texture": "#all", "cullface": "up" },
"north": { "uv": [16, 16, 0, 0], "texture": "#all", "cullface": "north" },
"south": { "uv": [0, 0, 16, 16], "texture": "#all", "cullface": "south" },
"west": { "uv": [16, 16, 0, 0], "texture": "#all", "cullface": "west" },
"east": { "uv": [0, 0, 16, 16], "texture": "#all", "cullface": "east" }
}
}
]