Add armor stand ground display presets

This commit is contained in:
JannisX11 2022-11-27 23:07:09 +01:00
parent 8da8b5bd22
commit e04dd9d515
3 changed files with 20 additions and 1 deletions

View File

@ -191,6 +191,24 @@ display_presets = [
scale: [ 0.68, 0.68, 0.68 ]
}
}
},
{id: 'armor_stand', fixed: true, areas: {
thirdperson_righthand: {
rotation: [ 90, 0, 0 ],
translation: [ -6, -2, -4 ],
scale: [ 1, 1, 1 ]
},
thirdperson_lefthand: {
rotation: [ 90, 0, 0 ],
translation: [ -6, -2, -4 ],
scale: [ 1, 1, 1 ]
},
head: {
rotation: [ 0, 0, 0 ],
translation: [ 0, -30.4, 0 ],
scale: [ 1.6, 1.6, 1.6 ]
}
}
}
]
if (localStorage.getItem('display_presets') != null) {
@ -1634,6 +1652,7 @@ BARS.defineActions(function() {
case 'block': icon = 'fa-cube'; break;
case 'handheld': icon = 'build'; break;
case 'rod': icon = 'remove'; break;
case 'armor_stand': icon = 'icon-armor_stand'; break;
}
}
presets.push({

View File

@ -17,7 +17,6 @@ const Painter = {
texture.saved = false
}
var instance = Painter.current.canvas;
Painter.current.canvas = undefined
var edit_name = options.no_undo ? null : (options.edit_name || 'Edit texture');

View File

@ -1879,6 +1879,7 @@
"display.preset.block": "Default Block",
"display.preset.handheld": "Default Weapon",
"display.preset.rod": "Default Rod",
"display.preset.armor_stand": "Ground (Armor Stand)",
"preview_scene.studio": "Studio",
"preview_scene.minecraft_overworld": "Minecraft Overworld",