partial implementation of ghostly armour

This commit is contained in:
CosmoOrSth
2025-01-23 23:23:41 +05:30
parent ca3731a6ab
commit d153a4ca34
11 changed files with 508 additions and 20 deletions

View File

@@ -0,0 +1,127 @@
{
"format_version": "1.8.0",
"animations": {
"walk": {
"loop": "hold_on_last_frame",
"animation_length": 0.25,
"bones": {
"torsoEnd": {
"rotation": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [20, 0, 0],
"easing": "linear"
}
},
"position": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [0, -2, -3],
"easing": "linear"
}
}
},
"bandanaEnd": {
"rotation": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [20, 0, 0],
"easing": "linear"
}
},
"position": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [0, -2, 1],
"easing": "linear"
}
}
}
}
},
"sprint": {
"loop": "hold_on_last_frame",
"animation_length": 0.25,
"bones": {
"bandanaEnd": {
"rotation": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [55, 0, 0],
"easing": "linear"
}
},
"position": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [0, -4, 4],
"easing": "linear"
}
}
},
"torsoEnd": {
"rotation": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [50, 0, 0],
"easing": "linear"
}
},
"position": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"0.25": {
"vector": [0, -6, -5],
"easing": "linear"
}
}
}
}
},
"idle": {
"animation_length": 3,
"bones": {
"bandanaEnd": {
"rotation": {
"0.0": {
"vector": [0, 0, 0],
"easing": "linear"
},
"1.5": {
"vector": [2.5, 0, 0],
"easing": "linear"
},
"3.0": {
"vector": [0, 0, 0],
"easing": "linear"
}
}
}
}
}
},
"geckolib_format_version": 2
}

View File

@@ -0,0 +1,135 @@
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.ghost_armour",
"texture_width": 128,
"texture_height": 128,
"visible_bounds_width": 3,
"visible_bounds_height": 3.5,
"visible_bounds_offset": [0, 1.25, 0]
},
"bones": [
{
"name": "bipedHead",
"pivot": [0, 24, 0]
},
{
"name": "armorHead",
"parent": "bipedHead",
"pivot": [0, 24, 0],
"cubes": [
{"origin": [-5, 24, -5], "size": [10, 9, 10], "uv": [0, 16]},
{"origin": [-4, 24, -4], "size": [8, 8, 8], "uv": [32, 35]}
]
},
{
"name": "bandana",
"parent": "armorHead",
"pivot": [0, 24, 0],
"cubes": [
{"origin": [-6, 23, -6], "size": [12, 4, 12], "uv": [0, 0]}
]
},
{
"name": "bandanaEnd",
"parent": "armorHead",
"pivot": [0, 24, 0],
"cubes": [
{"origin": [-4, 15, 6], "size": [3, 11, 0], "pivot": [-3, 24, 7], "rotation": [7.5, 0, 0], "uv": [72, 0]}
]
},
{
"name": "bipedBody",
"pivot": [0, 24, 0]
},
{
"name": "armorBody",
"parent": "bipedBody",
"pivot": [0, 24, 0]
},
{
"name": "torso",
"parent": "armorBody",
"pivot": [0, 24, 0],
"cubes": [
{"origin": [-4, 12, -3], "size": [8, 12, 6], "uv": [40, 16]}
]
},
{
"name": "torsoEnd",
"parent": "armorBody",
"pivot": [0, 24, 0],
"cubes": [
{"origin": [1, 7, 3], "size": [2, 10, 0], "pivot": [2, 15, 2], "rotation": [5, 0, 0], "uv": [76, 65]}
]
},
{
"name": "bipedRightArm",
"pivot": [-4, 22, 0]
},
{
"name": "armorRightArm",
"parent": "bipedRightArm",
"pivot": [-4, 22, 0],
"cubes": [
{"origin": [-9, 12, -3], "size": [5, 13, 6], "uv": [0, 51]}
]
},
{
"name": "bipedLeftArm",
"pivot": [4, 22, 0]
},
{
"name": "armorLeftArm",
"parent": "bipedLeftArm",
"pivot": [4, 22, 0],
"cubes": [
{"origin": [4, 12, -3], "size": [5, 13, 6], "uv": [22, 51]}
]
},
{
"name": "bipedLeftLeg",
"pivot": [2, 12, 0]
},
{
"name": "armorLeftLeg",
"parent": "bipedLeftLeg",
"pivot": [2, 12, 0],
"cubes": [
{"origin": [0, 4, -3], "size": [5, 9, 6], "uv": [44, 51]}
]
},
{
"name": "armorLeftBoot",
"parent": "bipedLeftLeg",
"pivot": [2, 12, 0],
"cubes": [
{"origin": [0, 0, -3], "size": [5, 4, 6], "uv": [0, 70]}
]
},
{
"name": "bipedRightLeg",
"pivot": [-2, 12, 0]
},
{
"name": "armorRightLeg",
"parent": "bipedRightLeg",
"pivot": [-2, 12, 0],
"cubes": [
{"origin": [-5, 4, -3], "size": [5, 9, 6], "uv": [64, 34]}
]
},
{
"name": "armorRightBoot",
"parent": "bipedRightLeg",
"pivot": [-2, 12, 0],
"cubes": [
{"origin": [-5, 0, -3], "size": [5, 4, 6], "uv": [22, 70]}
]
}
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -24,10 +24,71 @@
},
{
"condition": {
"type": "origins:brightness",
"comparison": "<=",
"compare_to": 0.17948718
},
"type": "origins:and",
"conditions":[
{
"type": "origins:brightness",
"comparison": "<=",
"compare_to": 0.17948718
},
{
"inverted": true,
"type": "origins:inventory",
"process_mode": "items",
"slots": [
"armor.head"
],
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "terraoriginum:ghostly_helmet"
}
}
},
{
"inverted": true,
"type": "origins:inventory",
"process_mode": "items",
"slots": [
"armor.chest"
],
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "terraoriginum:ghostly_chestplate"
}
}
},
{
"inverted": true,
"type": "origins:inventory",
"process_mode": "items",
"slots": [
"armor.legs"
],
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "terraoriginum:ghostly_leggings"
}
}
},
{
"inverted": true,
"type": "origins:inventory",
"process_mode": "items",
"slots": [
"armor.feet"
],
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "terraoriginum:ghostly_boots"
}
}
}
]
},
"action": {
"type": "origins:and",
"actions": [