From 2beaa1b2f7014cd898b10d395cdae76c1e327443 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Wed, 3 Mar 2021 19:46:04 -0500 Subject: [PATCH] Iron golem is dependent on the server; implement shulker invisibility parity --- manifest.json | 4 +- .../iron_golem.render_controllers.json | 2 +- .../shulker.render_controllers.json | 38 +++++++++++++++++++ 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 render_controllers/shulker.render_controllers.json diff --git a/manifest.json b/manifest.json index ff2a1c8..bc77ca9 100755 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "description": "Geyser Vanilla Assets", "name": "Geyser Vanilla Assets", "uuid": "5d8f8e98-7a2a-11eb-9439-0242ac130002", - "version": [1, 0, 60], + "version": [1, 0, 69], "min_engine_version": [ 1, 16, 0 ] }, "modules": [ @@ -12,7 +12,7 @@ "description": "Geyser Vanilla Assets", "type": "resources", "uuid": "72e9b0ca-7a2a-11eb-9439-0242ac130002", - "version": [1, 0, 60] + "version": [1, 0, 69] } ] } diff --git a/render_controllers/iron_golem.render_controllers.json b/render_controllers/iron_golem.render_controllers.json index aa77fae..7a52390 100755 --- a/render_controllers/iron_golem.render_controllers.json +++ b/render_controllers/iron_golem.render_controllers.json @@ -16,7 +16,7 @@ "materials": [ { "*": "Material.default" } ], "textures": [ "Texture.bottom_layer", - "Array.top[q.health > 99 ? 3 : math.floor(q.health / 25)]" + "Array.top[(q.health > 99 || !q.is_bribed) ? 3 : math.floor(q.health / 25)]" ] } } diff --git a/render_controllers/shulker.render_controllers.json b/render_controllers/shulker.render_controllers.json new file mode 100644 index 0000000..92c6f4f --- /dev/null +++ b/render_controllers/shulker.render_controllers.json @@ -0,0 +1,38 @@ +{ + "format_version": "1.8.0", + "render_controllers": { + "controller.render.shulker": { + "arrays": { + "textures": { + "Array.variants": [ + "Texture.black", + "Texture.red", + "Texture.green", + "Texture.brown", + "Texture.blue", + "Texture.purple", + "Texture.cyan", + "Texture.silver", + "Texture.gray", + "Texture.pink", + "Texture.lime", + "Texture.yellow", + "Texture.light_blue", + "Texture.magenta", + "Texture.orange", + "Texture.white", + "Texture.undyed" + ] + } + }, + "geometry": "Geometry.default", + "part_visibility": [ + { "*": true }, + { "lid": "!(q.is_invisible && q.is_bribed)" }, + { "base": "!(q.is_invisible && q.is_bribed)" } + ], + "materials": [ { "*": "Material.default" } ], + "textures": [ "Array.variants[query.variant]" ] + } + } +}