Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Animated Java",
"icon": "icon.svg",
"description": "Effortlessly craft complex animations for Minecraft: Java Edition",
"version": "1.8.0",
"version": "1.8.1",
"min_blockbench_version": "4.12.0",
"max_blockbench_version": "4.12.6",
"variant": "desktop",
Expand Down
43 changes: 22 additions & 21 deletions src/assets/vanillaAssetOverrides/minecraft/models/block/chest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parent": "block/block",
"textures": {
"0": "entity/chest/normal"
},
Expand All @@ -8,38 +9,38 @@
"to": [15, 14, 15],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 11.5, 8] },
"faces": {
"north": { "uv": [10.5, 3.5, 14, 4.75], "rotation": 180, "texture": "#0" },
"east": { "uv": [0, 3.5, 3.5, 4.75], "rotation": 180, "texture": "#0" },
"south": { "uv": [3.5, 3.5, 7, 4.75], "rotation": 180, "texture": "#0" },
"west": { "uv": [7, 3.5, 10.5, 4.75], "rotation": 180, "texture": "#0" },
"up": { "uv": [7, 0, 10.5, 3.5], "texture": "#0" },
"down": { "uv": [3.5, 0, 7, 3.5], "texture": "#0" }
"north": { "uv": [7, 3.5, 3.5, 4.75], "rotation": 180, "texture": "#0" },
"east": { "uv": [3.5, 3.5, 0, 4.75], "rotation": 180, "texture": "#0" },
"south": { "uv": [14, 3.5, 10.5, 4.75], "rotation": 180, "texture": "#0" },
"west": { "uv": [10.5, 3.5, 7, 4.75], "rotation": 180, "texture": "#0" },
"up": { "uv": [7, 3.5, 10.5, 0], "texture": "#0" },
"down": { "uv": [3.5, 3.5, 7, 0], "texture": "#0" }
}
},
{
"from": [7, 8, 0],
"to": [9, 12, 1],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 10, 0.5] },
"from": [7, 8, 15],
"to": [9, 12, 16],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 10, 15.5] },
"faces": {
"north": { "uv": [0.5, 1.25, 1, 0.25], "texture": "#0" },
"east": { "uv": [0.25, 1.25, 0.5, 0.25], "texture": "#0" },
"south": { "uv": [0.5, 1.25, 1, 0.25], "texture": "#0" },
"west": { "uv": [1, 1.25, 1.25, 0.25], "texture": "#0" },
"up": { "uv": [0.5, 0, 1, 0.25], "texture": "#0" },
"down": { "uv": [0.5, 0, 1, 0.25], "texture": "#0" }
"north": { "uv": [1, 1.25, 0.5, 0.25], "texture": "#0" },
"east": { "uv": [0.5, 1.25, 0.25, 0.25], "texture": "#0" },
"south": { "uv": [1, 1.25, 0.5, 0.25], "texture": "#0" },
"west": { "uv": [1.25, 1.25, 1, 0.25], "texture": "#0" },
"up": { "uv": [0.5, 0.25, 1, 0], "texture": "#0" },
"down": { "uv": [0.5, 0.25, 1, 0], "texture": "#0" }
}
},
{
"from": [1, 0, 1],
"to": [15, 10, 15],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 5, 8] },
"faces": {
"north": { "uv": [10.5, 8.25, 14, 10.75], "rotation": 180, "texture": "#0" },
"east": { "uv": [7, 8.25, 10.5, 10.75], "rotation": 180, "texture": "#0" },
"south": { "uv": [3.5, 8.25, 7, 10.75], "rotation": 180, "texture": "#0" },
"west": { "uv": [0, 8.25, 3.5, 10.75], "rotation": 180, "texture": "#0" },
"up": { "uv": [7, 4.75, 10.5, 8.25], "texture": "#0" },
"down": { "uv": [3.5, 4.75, 7, 8.25], "rotation": 180, "texture": "#0" }
"north": { "uv": [7, 8.25, 3.5, 10.75], "rotation": 180, "texture": "#0" },
"east": { "uv": [10.5, 8.25, 7, 10.75], "rotation": 180, "texture": "#0" },
"south": { "uv": [14, 8.25, 10.5, 10.75], "rotation": 180, "texture": "#0" },
"west": { "uv": [3.5, 8.25, 0, 10.75], "rotation": 180, "texture": "#0" },
"up": { "uv": [7, 8.25, 10.5, 4.75], "texture": "#0" },
"down": { "uv": [3.5, 8.25, 7, 4.75], "rotation": 180, "texture": "#0" }
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parent": "block/block",
"textures": {
"0": "entity/chest/normal"
},
"elements": [
{
"from": [1, 9, 1],
"to": [15, 14, 15],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 11.5, 8] },
"faces": {
"north": { "uv": [10.5, 3.5, 14, 4.75], "rotation": 180, "texture": "#0" },
"east": { "uv": [0, 3.5, 3.5, 4.75], "rotation": 180, "texture": "#0" },
"south": { "uv": [3.5, 3.5, 7, 4.75], "rotation": 180, "texture": "#0" },
"west": { "uv": [7, 3.5, 10.5, 4.75], "rotation": 180, "texture": "#0" },
"up": { "uv": [7, 0, 10.5, 3.5], "texture": "#0" },
"down": { "uv": [3.5, 0, 7, 3.5], "texture": "#0" }
}
},
{
"from": [7, 8, 0],
"to": [9, 12, 1],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 10, 0.5] },
"faces": {
"north": { "uv": [0.5, 1.25, 1, 0.25], "texture": "#0" },
"east": { "uv": [0.25, 1.25, 0.5, 0.25], "texture": "#0" },
"south": { "uv": [0.5, 1.25, 1, 0.25], "texture": "#0" },
"west": { "uv": [1, 1.25, 1.25, 0.25], "texture": "#0" },
"up": { "uv": [0.5, 0, 1, 0.25], "texture": "#0" },
"down": { "uv": [0.5, 0, 1, 0.25], "texture": "#0" }
}
},
{
"from": [1, 0, 1],
"to": [15, 10, 15],
"rotation": { "angle": 0, "axis": "y", "origin": [8, 5, 8] },
"faces": {
"north": { "uv": [10.5, 8.25, 14, 10.75], "rotation": 180, "texture": "#0" },
"east": { "uv": [7, 8.25, 10.5, 10.75], "rotation": 180, "texture": "#0" },
"south": { "uv": [3.5, 8.25, 7, 10.75], "rotation": 180, "texture": "#0" },
"west": { "uv": [0, 8.25, 3.5, 10.75], "rotation": 180, "texture": "#0" },
"up": { "uv": [7, 4.75, 10.5, 8.25], "texture": "#0" },
"down": { "uv": [3.5, 4.75, 7, 8.25], "rotation": 180, "texture": "#0" }
}
}
]
}
2 changes: 2 additions & 0 deletions src/components/vanillaItemDisplayElementPanel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
let item = selected.item
let error = selected.error

ITEM_DISPLAY_ITEM_DISPLAY_SELECT.set(selected.itemDisplay)

$: {
$error = ''
if (selected.item !== item) {
Expand Down
2 changes: 2 additions & 0 deletions src/interface/panel/vanillaItemDisplayElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ ITEM_DISPLAY_ITEM_DISPLAY_SELECT.set = function (
if (VanillaItemDisplay.selected.length > 1) {
for (const display of VanillaItemDisplay.selected) {
display.itemDisplay = value
void display.updateItem()
}
} else {
selected.itemDisplay = value
void selected.updateItem()
}
Project!.saved = false
Undo.finishEdit(`Change Item Display Node's Item Display Mode to ${value}`, {
Expand Down
Loading