1
0
mirror of https://github.com/GeyserMC/GeyserOptionalPack.git synced 2025-12-29 19:59:13 +00:00

Add spectral arrow texture toggle

This commit is contained in:
Camotoy
2021-03-04 15:17:31 -05:00
parent 6b01784487
commit f9748e3bfb
3 changed files with 46 additions and 2 deletions

31
entity/arrow.entity.json Normal file
View File

@@ -0,0 +1,31 @@
{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:arrow",
"materials": {
"default": "arrow"
},
"textures": {
"default": "textures/entity/arrows",
"spectral": "textures/entity/arrow/spectral_arrow"
},
"geometry": {
"default": "geometry.arrow"
},
"animations": {
"move": "animation.arrow.move"
},
"scripts": {
"pre_animation": [
"variable.shake = query.shake_time - query.frame_alpha;",
"variable.shake_power = variable.shake > 0.0 ? -Math.sin(variable.shake * 200.0) * variable.shake : 0.0;"
],
"animate": [
"move"
]
},
"render_controllers": [ "controller.render.arrow" ]
}
}
}

View File

@@ -4,7 +4,7 @@
"description": "Geyser Vanilla Assets",
"name": "Geyser Vanilla Assets",
"uuid": "5d8f8e98-7a2a-11eb-9439-0242ac130002",
"version": [1, 0, 70],
"version": [1, 0, 71],
"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, 70]
"version": [1, 0, 71]
}
]
}

View File

@@ -0,0 +1,13 @@
{
"format_version": "1.10.0",
"render_controllers": {
"controller.render.arrow": {
"geometry": "geometry.default",
"materials": [ { "*": "Material.default" } ],
"textures": [
"query.is_bribed ? texture.spectral : texture.default"
],
"filter_lighting": true
}
}
}