diff --git a/packs/0-lzcustom/assets/cards/models/item/custom/deck.json b/packs/0-lzcustom/assets/cards/models/item/custom/deck.json new file mode 100644 index 0000000..3e0a80d --- /dev/null +++ b/packs/0-lzcustom/assets/cards/models/item/custom/deck.json @@ -0,0 +1,208 @@ +{ + "texture_size": [25, 17], + "textures": { + "0": "cards:item/custom/blank", + "1": "cards:item/custom/back", + "2": "cards:item/custom/s_13", + "3": "cards:item/custom/deck", + "particle": "cards:item/custom/back" + }, + "elements": [ + { + "name": "right", + "from": [0.5, 6.65, 12], + "to": [11.5, 7.65, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "south": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "name": "front", + "from": [0.5, 7.65, 4], + "to": [11.5, 7.65, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "up": {"uv": [0, 0, 8, 12], "rotation": 90, "texture": "#0"} + } + }, + { + "name": "back", + "from": [0.5, 6.65, 4], + "to": [11.5, 6.65, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "down": {"uv": [8, 12, 0, 0], "rotation": 270, "texture": "#1"} + } + }, + { + "name": "top", + "from": [11.5, 6.65, 4], + "to": [12.5, 7.65, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.9, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "east": {"uv": [9, 0, 10, 8], "rotation": 90, "texture": "#1"}, + "south": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 8], "texture": "#1"}, + "down": {"uv": [9, 0, 10, 8], "texture": "#1"} + } + }, + { + "name": "left", + "from": [0.5, 6.65, 3], + "to": [11.5, 7.65, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 12], "rotation": 270, "texture": "#1"}, + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "name": "right", + "from": [3, 7.3, 12], + "to": [15, 8.3, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "south": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "name": "front", + "from": [9, 8.3, 4], + "to": [15, 8.3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "up": {"uv": [0, 0, 8, 8], "rotation": 90, "texture": "#2"} + } + }, + { + "name": "back", + "from": [3, 7.3, 4], + "to": [15, 7.3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "down": {"uv": [8, 12, 0, 0], "rotation": 270, "texture": "#1"} + } + }, + { + "name": "top", + "from": [15, 7.3, 4], + "to": [16, 8.3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "east": {"uv": [9, 0, 10, 8], "rotation": 90, "texture": "#1"}, + "south": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 8], "texture": "#1"}, + "down": {"uv": [9, 0, 10, 8], "texture": "#1"} + } + }, + { + "name": "left", + "from": [3, 7.3, 3], + "to": [15, 8.3, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 12], "rotation": 270, "texture": "#1"}, + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "from": [0, 6, 2], + "to": [11, 9, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 6, 2]}, + "faces": { + "north": {"uv": [14.08, 0, 16, 10.35294], "rotation": 90, "texture": "#3"}, + "east": {"uv": [0, 11.29412, 16, 16], "texture": "#3"}, + "south": {"uv": [14.08, 0.94118, 16, 11.29412], "rotation": 90, "texture": "#3"}, + "west": {"uv": [14.08, 0, 16, 10.88], "rotation": 90, "texture": "#3"}, + "up": {"uv": [0, 0, 7, 11], "rotation": 180, "texture": "#3"}, + "down": {"uv": [7, 0, 14, 11], "texture": "#3"} + } + }, + { + "from": [7, 3, 2], + "to": [11, 6, 14], + "rotation": {"angle": 45, "axis": "z", "origin": [11, 6, 8]}, + "faces": { + "north": {"uv": [14.08, 0, 16, 3.76471], "rotation": 90, "texture": "#3"}, + "east": {"uv": [0, 11.29412, 16, 16], "texture": "#3"}, + "south": {"uv": [14.08, 7.52941, 16, 11.29412], "rotation": 90, "texture": "#3"}, + "west": {"uv": [14.08, 0, 16, 11.29412], "rotation": 90, "texture": "#3"}, + "up": {"uv": [14.08, 0, 16, 11.29412], "rotation": 180, "texture": "#3"}, + "down": {"uv": [14.08, 0, 16, 11.29412], "rotation": 180, "texture": "#3"} + } + } + ], + "gui_light": "front", + "display": { + "thirdperson_righthand": { + "rotation": [30, 64, 55], + "translation": [-0.25, 3.5, -0.5], + "scale": [0.5, 0.5, 0.5] + }, + "thirdperson_lefthand": { + "rotation": [30, -116, -55], + "translation": [-0.25, 3.5, -0.5], + "scale": [0.5, 0.5, 0.5] + }, + "firstperson_righthand": { + "rotation": [0, 50, 80], + "translation": [2.75, 0, -1.25], + "scale": [0.7, 0.7, 0.7] + }, + "firstperson_lefthand": { + "rotation": [0, -130, -80], + "translation": [2.75, 0, -1.25], + "scale": [0.7, 0.7, 0.7] + }, + "ground": { + "rotation": [0, 0, 30], + "translation": [0, 0.75, 0], + "scale": [0.5, 0.5, 0.5] + }, + "gui": { + "rotation": [90, 85, 0], + "scale": [0.75, 0.75, 0.75] + }, + "head": { + "rotation": [78, -79, 161], + "translation": [-0.5, 12, -0.75] + }, + "fixed": { + "rotation": [0, -90, 90], + "scale": [1.2, 1.2, 1.2] + } + }, + "groups": [ + { + "name": "Top Card", + "origin": [8, 7.5, 8], + "color": 0, + "children": [0, 1, 2, 3, 4] + }, + { + "name": "Bottom Card", + "origin": [8, 7.5, 8], + "color": 0, + "children": [5, 6, 7, 8, 9] + }, + 10, + 11 + ] +} \ No newline at end of file diff --git a/packs/0-lzcustom/assets/cards/models/item/deck.json b/packs/0-lzcustom/assets/cards/models/item/deck.json new file mode 100644 index 0000000..daace4c --- /dev/null +++ b/packs/0-lzcustom/assets/cards/models/item/deck.json @@ -0,0 +1,208 @@ +{ + "texture_size": [25, 17], + "textures": { + "0": "cards:item/blank", + "1": "cards:item/back", + "2": "cards:item/h_13", + "3": "cards:item/deck", + "particle": "cards:item/back" + }, + "elements": [ + { + "name": "right", + "from": [0.5, 6.65, 12], + "to": [11.5, 7.65, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "south": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "name": "front", + "from": [0.5, 7.65, 4], + "to": [11.5, 7.65, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "up": {"uv": [0, 0, 8, 12], "rotation": 90, "texture": "#0"} + } + }, + { + "name": "back", + "from": [0.5, 6.65, 4], + "to": [11.5, 6.65, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "down": {"uv": [8, 12, 0, 0], "rotation": 270, "texture": "#1"} + } + }, + { + "name": "top", + "from": [11.5, 6.65, 4], + "to": [12.5, 7.65, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.9, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "east": {"uv": [9, 0, 10, 8], "rotation": 90, "texture": "#1"}, + "south": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 8], "texture": "#1"}, + "down": {"uv": [9, 0, 10, 8], "texture": "#1"} + } + }, + { + "name": "left", + "from": [0.5, 6.65, 3], + "to": [11.5, 7.65, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 7.9, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 12], "rotation": 270, "texture": "#1"}, + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "name": "right", + "from": [3, 7.3, 12], + "to": [15, 8.3, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "south": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "name": "front", + "from": [9, 8.3, 4], + "to": [15, 8.3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "up": {"uv": [0, 0, 8, 8], "rotation": 90, "texture": "#2"} + } + }, + { + "name": "back", + "from": [3, 7.3, 4], + "to": [15, 7.3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "down": {"uv": [8, 12, 0, 0], "rotation": 270, "texture": "#1"} + } + }, + { + "name": "top", + "from": [15, 7.3, 4], + "to": [16, 8.3, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "east": {"uv": [9, 0, 10, 8], "rotation": 90, "texture": "#1"}, + "south": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 8], "texture": "#1"}, + "down": {"uv": [9, 0, 10, 8], "texture": "#1"} + } + }, + { + "name": "left", + "from": [3, 7.3, 3], + "to": [15, 8.3, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 7.3, 8]}, + "faces": { + "north": {"uv": [9, 0, 10, 12], "rotation": 270, "texture": "#1"}, + "east": {"uv": [9, 0, 10, 1], "texture": "#1"}, + "west": {"uv": [8, 0, 9, 1], "texture": "#1"}, + "up": {"uv": [8, 0, 9, 12], "rotation": 90, "texture": "#1"}, + "down": {"uv": [9, 0, 10, 12], "rotation": 90, "texture": "#1"} + } + }, + { + "from": [0, 6, 2], + "to": [11, 9, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 6, 2]}, + "faces": { + "north": {"uv": [14.08, 0, 16, 10.35294], "rotation": 90, "texture": "#3"}, + "east": {"uv": [0, 11.29412, 16, 16], "texture": "#3"}, + "south": {"uv": [14.08, 0.94118, 16, 11.29412], "rotation": 90, "texture": "#3"}, + "west": {"uv": [14.08, 0, 16, 10.88], "rotation": 90, "texture": "#3"}, + "up": {"uv": [0, 0, 7, 11], "rotation": 180, "texture": "#3"}, + "down": {"uv": [7, 0, 14, 11], "texture": "#3"} + } + }, + { + "from": [7, 3, 2], + "to": [11, 6, 14], + "rotation": {"angle": 45, "axis": "z", "origin": [11, 6, 8]}, + "faces": { + "north": {"uv": [14.08, 0, 16, 3.76471], "rotation": 90, "texture": "#3"}, + "east": {"uv": [0, 11.29412, 16, 16], "texture": "#3"}, + "south": {"uv": [14.08, 7.52941, 16, 11.29412], "rotation": 90, "texture": "#3"}, + "west": {"uv": [14.08, 0, 16, 11.29412], "rotation": 90, "texture": "#3"}, + "up": {"uv": [14.08, 0, 16, 11.29412], "rotation": 180, "texture": "#3"}, + "down": {"uv": [14.08, 0, 16, 11.29412], "rotation": 180, "texture": "#3"} + } + } + ], + "gui_light": "front", + "display": { + "thirdperson_righthand": { + "rotation": [30, 64, 55], + "translation": [-0.25, 3.5, -0.5], + "scale": [0.5, 0.5, 0.5] + }, + "thirdperson_lefthand": { + "rotation": [30, -116, -55], + "translation": [-0.25, 3.5, -0.5], + "scale": [0.5, 0.5, 0.5] + }, + "firstperson_righthand": { + "rotation": [0, 50, 80], + "translation": [2.75, 0, -1.25], + "scale": [0.7, 0.7, 0.7] + }, + "firstperson_lefthand": { + "rotation": [0, -130, -80], + "translation": [2.75, 0, -1.25], + "scale": [0.7, 0.7, 0.7] + }, + "ground": { + "rotation": [0, 0, 30], + "translation": [0, 0.75, 0], + "scale": [0.5, 0.5, 0.5] + }, + "gui": { + "rotation": [90, 85, 0], + "scale": [0.75, 0.75, 0.75] + }, + "head": { + "rotation": [78, -79, 161], + "translation": [-0.5, 12, -0.75] + }, + "fixed": { + "rotation": [0, -90, 90], + "scale": [1.2, 1.2, 1.2] + } + }, + "groups": [ + { + "name": "Top Card", + "origin": [8, 7.5, 8], + "color": 0, + "children": [0, 1, 2, 3, 4] + }, + { + "name": "Bottom Card", + "origin": [8, 7.5, 8], + "color": 0, + "children": [5, 6, 7, 8, 9] + }, + 10, + 11 + ] +} \ No newline at end of file diff --git a/packs/0-lzcustom/assets/cards/textures/item/custom/deck.png b/packs/0-lzcustom/assets/cards/textures/item/custom/deck.png new file mode 100644 index 0000000..206a6f1 Binary files /dev/null and b/packs/0-lzcustom/assets/cards/textures/item/custom/deck.png differ diff --git a/packs/0-lzcustom/assets/cards/textures/item/deck.png b/packs/0-lzcustom/assets/cards/textures/item/deck.png new file mode 100644 index 0000000..3508668 Binary files /dev/null and b/packs/0-lzcustom/assets/cards/textures/item/deck.png differ diff --git a/packs/0-lzcustom/assets/minecraft/items/bundle.json b/packs/0-lzcustom/assets/minecraft/items/bundle.json new file mode 100644 index 0000000..a5a0fa6 --- /dev/null +++ b/packs/0-lzcustom/assets/minecraft/items/bundle.json @@ -0,0 +1,48 @@ +{ + "model": + { + "type": "select", + "property": "custom_model_data", + "fallback": { + "type": "minecraft:select", + "cases": [ + { + "model": { + "type": "minecraft:condition", + "on_false": { + "type": "minecraft:model", + "model": "minecraft:item/bundle" + }, + "on_true": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "minecraft:item/bundle_open_back" + }, + { + "type": "minecraft:bundle/selected_item" + }, + { + "type": "minecraft:model", + "model": "minecraft:item/bundle_open_front" + } + ] + }, + "property": "minecraft:bundle/has_selected_item" + }, + "when": "gui" + } + ], + "fallback": { + "type": "minecraft:model", + "model": "minecraft:item/bundle" + }, + "property": "minecraft:display_context" + }, + "cases": [ + { "when": "deck", "model": { "type": "model", "model": "cards:item/deck" } }, + { "when": "deck_custom", "model": { "type": "model", "model": "cards:item/custom/deck" } } + ] + } +} \ No newline at end of file