mirror of
https://github.com/GeyserMC/GeyserOptionalPack.git
synced 2026-01-04 15:31:37 +00:00
Add spectral arrow texture toggle
This commit is contained in:
31
entity/arrow.entity.json
Normal file
31
entity/arrow.entity.json
Normal 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" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user