From 653afaa3bf79e250c078acd2f0276d13fe054a74 Mon Sep 17 00:00:00 2001 From: Hugo Vallejo Date: Sat, 23 Nov 2024 19:12:51 +0100 Subject: [PATCH 1/2] Add fishing rod cast predicates --- assets/minecraft/models/item/fishing_rod.json | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 assets/minecraft/models/item/fishing_rod.json diff --git a/assets/minecraft/models/item/fishing_rod.json b/assets/minecraft/models/item/fishing_rod.json new file mode 100644 index 0000000..d06ee82 --- /dev/null +++ b/assets/minecraft/models/item/fishing_rod.json @@ -0,0 +1,79 @@ +{ + "parent": "item/handheld_rod", + "textures": { + "layer0": "item/fishing_rod" + }, + "overrides": [ + { + "predicate": { + "cast": 1 + }, + "model": "item/fishing_rod_cast" + }, + { + "predicate": { + "custom_model_data": 1 + }, + "model": "item/rods/rusty_wooden_rod" + }, + { + "predicate": { + "custom_model_data": 1, + "cast": 1 + }, + "model": "item/rods/rusty_wooden_rod_cast" + }, + { + "predicate": { + "custom_model_data": 2 + }, + "model": "item/rods/sungwood_rod" + }, + { + "predicate": { + "custom_model_data": 2, + "cast": 1 + }, + "model": "item/rods/sungwood_rod_cast" + }, + { + "predicate": { + "custom_model_data": 3 + }, + "model": "item/rods/thorium_rod" + }, + { + "predicate": { + "custom_model_data": 3, + "cast": 1 + }, + "model": "item/rods/thorium_rod_cast" + }, + { + "predicate": { + "custom_model_data": 4 + }, + "model": "item/rods/cloudsteel_rod" + }, + { + "predicate": { + "custom_model_data": 4, + "cast": 1 + }, + "model": "item/rods/cloudsteel_rod_cast" + }, + { + "predicate": { + "custom_model_data": 5 + }, + "model": "item/rods/gaian_rod_animated" + }, + { + "predicate": { + "custom_model_data": 5, + "cast": 1 + }, + "model": "item/rods/gaian_rod_cast" + } + ] +} \ No newline at end of file From c5b83be76607037b649deba0e6b419e0bd0ad204 Mon Sep 17 00:00:00 2001 From: Hugo Vallejo Date: Sat, 23 Nov 2024 19:29:05 +0100 Subject: [PATCH 2/2] Casted rod display --- .../item/rods/rusty_wooden_rod_cast.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/minecraft/models/item/rods/rusty_wooden_rod_cast.json b/assets/minecraft/models/item/rods/rusty_wooden_rod_cast.json index 983ac55..62faabc 100644 --- a/assets/minecraft/models/item/rods/rusty_wooden_rod_cast.json +++ b/assets/minecraft/models/item/rods/rusty_wooden_rod_cast.json @@ -229,14 +229,14 @@ ], "display": { "thirdperson_righthand": { - "rotation": [21, 0, 0], - "translation": [0, 4.25, 4], - "scale": [0.35, 0.35, 0.35] + "rotation": [-11.25, 0, 0], + "translation": [0, 5.75, 0.75], + "scale": [0.55, 0.55, 0.55] }, "thirdperson_lefthand": { - "rotation": [21, 0, 0], - "translation": [0, 4.25, 4], - "scale": [0.35, 0.35, 0.35] + "rotation": [-11.25, 0, 0], + "translation": [0, 5.75, 0.75], + "scale": [0.55, 0.55, 0.55] }, "firstperson_righthand": { "rotation": [-21, 0, 9], @@ -254,9 +254,9 @@ "scale": [0.35, 0.35, 0.35] }, "gui": { - "rotation": [0, 100, 0], - "translation": [1.25, 0, 0], - "scale": [0.35, 0.35, 0.35] + "rotation": [-140.33, 29.63, 125.34], + "translation": [0.75, 1.25, 0], + "scale": [0.51, 0.51, 0.51] }, "fixed": { "rotation": [0, -63, 0],