From 43e05b0f00c2648b6a80646f59c0bc36cdd6638a Mon Sep 17 00:00:00 2001 From: maybejake Date: Thu, 8 Oct 2026 00:02:09 +0100 Subject: [PATCH 1/7] Initial upload of datapack --- gm4_swings | 1 + 1 file changed, 1 insertion(+) create mode 160000 gm4_swings diff --git a/gm4_swings b/gm4_swings new file mode 160000 index 0000000000..20f99b633c --- /dev/null +++ b/gm4_swings @@ -0,0 +1 @@ +Subproject commit 20f99b633c3d7b91069ca64e3f9a0674ca29a27f From 91a4751027ae719ba864255f6924bcdf7235ebc3 Mon Sep 17 00:00:00 2001 From: maybejake Date: Thu, 8 Oct 2026 00:12:24 +0100 Subject: [PATCH 2/7] Revert "Initial upload of datapack" This reverts commit 43e05b0f00c2648b6a80646f59c0bc36cdd6638a. --- gm4_swings | 1 - 1 file changed, 1 deletion(-) delete mode 160000 gm4_swings diff --git a/gm4_swings b/gm4_swings deleted file mode 160000 index 20f99b633c..0000000000 --- a/gm4_swings +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 20f99b633c3d7b91069ca64e3f9a0674ca29a27f From ff06877ffc9aa2c551d50bad6d3cc8cda1f77fbe Mon Sep 17 00:00:00 2001 From: maybejake Date: Thu, 8 Oct 2026 00:12:46 +0100 Subject: [PATCH 3/7] Submodule nonsense? --- .../assets/gm4_swings/items/black_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/blue_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/brown_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/cyan_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/gray_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/green_swing.json | 662 ++++++++++++++++++ .../gm4_swings/items/light_blue_swing.json | 662 ++++++++++++++++++ .../gm4_swings/items/light_gray_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/lime_swing.json | 662 ++++++++++++++++++ .../gm4_swings/items/magenta_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/orange_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/pink_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/purple_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/red_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/white_swing.json | 662 ++++++++++++++++++ .../assets/gm4_swings/items/yellow_swing.json | 662 ++++++++++++++++++ .../gm4_swings/models/block/black_swing.json | 6 + .../gm4_swings/models/block/blue_swing.json | 6 + .../gm4_swings/models/block/brown_swing.json | 6 + .../gm4_swings/models/block/cyan_swing.json | 6 + .../gm4_swings/models/block/gray_swing.json | 6 + .../gm4_swings/models/block/green_swing.json | 6 + .../models/block/light_blue_swing.json | 6 + .../models/block/light_gray_swing.json | 6 + .../gm4_swings/models/block/lime_swing.json | 6 + .../models/block/magenta_swing.json | 6 + .../gm4_swings/models/block/orange_swing.json | 6 + .../gm4_swings/models/block/pink_swing.json | 6 + .../gm4_swings/models/block/purple_swing.json | 6 + .../gm4_swings/models/block/red_swing.json | 6 + .../gm4_swings/models/block/swing_rope.json | 26 + .../models/block/swing_template.json | 39 ++ .../gm4_swings/models/block/white_swing.json | 6 + .../gm4_swings/models/block/yellow_swing.json | 6 + .../gm4_swings/models/item/black_swing.json | 6 + .../gm4_swings/models/item/blue_swing.json | 6 + .../gm4_swings/models/item/brown_swing.json | 6 + .../gm4_swings/models/item/cyan_swing.json | 6 + .../gm4_swings/models/item/gray_swing.json | 6 + .../gm4_swings/models/item/green_swing.json | 6 + .../models/item/light_blue_swing.json | 6 + .../models/item/light_gray_swing.json | 6 + .../gm4_swings/models/item/lime_swing.json | 6 + .../gm4_swings/models/item/magenta_swing.json | 6 + .../gm4_swings/models/item/orange_swing.json | 6 + .../gm4_swings/models/item/pink_swing.json | 6 + .../gm4_swings/models/item/purple_swing.json | 6 + .../gm4_swings/models/item/red_swing.json | 6 + .../gm4_swings/models/item/white_swing.json | 6 + .../gm4_swings/models/item/yellow_swing.json | 6 + .../gm4_swings/textures/block/black_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/blue_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/brown_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/cyan_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/gray_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/green_swing.png | Bin 0 -> 357 bytes .../textures/block/light_blue_swing.png | Bin 0 -> 357 bytes .../textures/block/light_gray_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/lime_swing.png | Bin 0 -> 357 bytes .../textures/block/magenta_swing.png | Bin 0 -> 357 bytes .../textures/block/orange_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/pink_swing.png | Bin 0 -> 357 bytes .../textures/block/purple_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/block/red_swing.png | Bin 0 -> 698 bytes .../gm4_swings/textures/block/swing_rope.png | Bin 0 -> 183 bytes .../textures/block/transparent_head.png | Bin 0 -> 376 bytes .../gm4_swings/textures/block/white_swing.png | Bin 0 -> 357 bytes .../textures/block/yellow_swing.png | Bin 0 -> 357 bytes .../gm4_swings/textures/item/black_swing.png | Bin 0 -> 443 bytes .../gm4_swings/textures/item/blue_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/brown_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/cyan_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/gray_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/green_swing.png | Bin 0 -> 253 bytes .../textures/item/light_blue_swing.png | Bin 0 -> 253 bytes .../textures/item/light_gray_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/lime_swing.png | Bin 0 -> 253 bytes .../textures/item/magenta_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/orange_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/pink_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/purple_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/red_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/white_swing.png | Bin 0 -> 253 bytes .../gm4_swings/textures/item/yellow_swing.png | Bin 0 -> 253 bytes gm4_swings/beet.yaml | 35 + .../advancement/interactions/hit.json | 20 + .../advancement/interactions/interact.json | 20 + .../data/gm4_swings/advancement/place.json | 20 + .../advancement/recipes/swings/black.json | 19 + .../advancement/recipes/swings/blue.json | 19 + .../advancement/recipes/swings/brown.json | 19 + .../advancement/recipes/swings/cyan.json | 19 + .../advancement/recipes/swings/gray.json | 19 + .../advancement/recipes/swings/green.json | 19 + .../recipes/swings/light_blue.json | 19 + .../recipes/swings/light_gray.json | 19 + .../advancement/recipes/swings/lime.json | 19 + .../advancement/recipes/swings/magenta.json | 19 + .../advancement/recipes/swings/orange.json | 19 + .../advancement/recipes/swings/pink.json | 19 + .../advancement/recipes/swings/purple.json | 19 + .../advancement/recipes/swings/red.json | 19 + .../advancement/recipes/swings/white.json | 19 + .../advancement/recipes/swings/yellow.json | 19 + .../context_float_provider/add_rotation.json | 19 + .../context_float_provider/angle_damper.json | 16 + .../gm4_swings/context_float_provider/dx.json | 15 + .../context_float_provider/pendulum.json | 134 ++++ .../player_torque/inverse.json | 7 + .../player_torque/normal.json | 51 ++ .../push_torque/inverse.json | 7 + .../push_torque/normal.json | 16 + .../vector_projection.json | 53 ++ .../gm4_swings/function/break/item.mcfunction | 1 + .../gm4_swings/function/break/main.mcfunction | 14 + .../function/break/particle.mcfunction | 1 + .../data/gm4_swings/function/init.mcfunction | 18 + .../function/interactions/hit/main.mcfunction | 5 + .../hit/on_interaction.mcfunction | 7 + .../interactions/interact/main.mcfunction | 5 + .../interact/on_interaction.mcfunction | 6 + .../function/launch/launch.mcfunction | 8 + .../function/launch/main.mcfunction | 2 + .../gm4_swings/function/on_join.mcfunction | 9 + .../function/place/check.mcfunction | 24 + .../gm4_swings/function/place/fail.mcfunction | 2 + .../function/place/length/loop.mcfunction | 5 + .../gm4_swings/function/place/main.mcfunction | 8 + .../function/place/place.mcfunction | 18 + .../gm4_swings/function/place/ray.mcfunction | 11 + .../function/place/wall_head/main.mcfunction | 9 + .../function/seat/apply_push.mcfunction | 2 + .../function/seat/create.mcfunction | 8 + .../function/seat/input/main.mcfunction | 8 + .../function/seat/input/x.mcfunction | 2 + .../function/seat/input/xz.mcfunction | 2 + .../function/seat/input/z.mcfunction | 2 + .../function/seat/input/zx.mcfunction | 2 + .../gm4_swings/function/seat/kill.mcfunction | 2 + .../gm4_swings/function/seat/move.mcfunction | 1 + .../function/seat/push/main.mcfunction | 9 + .../function/seat/push/on_pusher.mcfunction | 4 + .../function/seat/push/x.mcfunction | 2 + .../function/seat/push/xz.mcfunction | 2 + .../function/seat/push/z.mcfunction | 2 + .../function/seat/push/zx.mcfunction | 2 + .../gm4_swings/function/seat/sit.mcfunction | 18 + .../gm4_swings/function/seat/tick.mcfunction | 23 + .../swing/break_interaction.mcfunction | 4 + .../swing/calculate_distance.mcfunction | 6 + .../function/swing/hit_block.mcfunction | 5 + .../gm4_swings/function/swing/kill.mcfunction | 9 + .../function/swing/no_player.mcfunction | 5 + .../function/swing/reset_motion.mcfunction | 3 + .../function/swing/respawn_seat.mcfunction | 4 + .../function/swing/setup.mcfunction | 22 + .../gm4_swings/function/swing/tick.mcfunction | 40 ++ .../function/swing/tick_5s.mcfunction | 6 + .../data/gm4_swings/function/tick.mcfunction | 4 + .../gm4_swings/function/tick_5s.mcfunction | 3 + .../gm4_swings/loot_table/swings/base.json | 26 + .../gm4_swings/loot_table/swings/black.json | 26 + .../gm4_swings/loot_table/swings/blue.json | 26 + .../gm4_swings/loot_table/swings/brown.json | 26 + .../gm4_swings/loot_table/swings/cyan.json | 26 + .../gm4_swings/loot_table/swings/gray.json | 26 + .../gm4_swings/loot_table/swings/green.json | 26 + .../loot_table/swings/light_blue.json | 26 + .../loot_table/swings/light_gray.json | 26 + .../gm4_swings/loot_table/swings/lime.json | 26 + .../gm4_swings/loot_table/swings/magenta.json | 26 + .../gm4_swings/loot_table/swings/orange.json | 26 + .../gm4_swings/loot_table/swings/pink.json | 26 + .../gm4_swings/loot_table/swings/purple.json | 26 + .../gm4_swings/loot_table/swings/red.json | 26 + .../gm4_swings/loot_table/swings/white.json | 26 + .../gm4_swings/loot_table/swings/yellow.json | 26 + .../data/gm4_swings/predicate/id_match.json | 24 + .../data/gm4_swings/predicate/jump.json | 12 + .../predicate/small_oscillation.json | 33 + .../data/gm4_swings/predicate/vehicle.json | 7 + .../data/gm4_swings/recipe/swings/black.json | 26 + .../data/gm4_swings/recipe/swings/blue.json | 26 + .../data/gm4_swings/recipe/swings/brown.json | 26 + .../data/gm4_swings/recipe/swings/cyan.json | 26 + .../data/gm4_swings/recipe/swings/gray.json | 26 + .../data/gm4_swings/recipe/swings/green.json | 26 + .../gm4_swings/recipe/swings/light_blue.json | 26 + .../gm4_swings/recipe/swings/light_gray.json | 26 + .../data/gm4_swings/recipe/swings/lime.json | 26 + .../gm4_swings/recipe/swings/magenta.json | 26 + .../data/gm4_swings/recipe/swings/orange.json | 26 + .../data/gm4_swings/recipe/swings/pink.json | 26 + .../data/gm4_swings/recipe/swings/purple.json | 26 + .../data/gm4_swings/recipe/swings/red.json | 26 + .../data/gm4_swings/recipe/swings/white.json | 26 + .../data/gm4_swings/recipe/swings/yellow.json | 26 + .../gm4_swings/tags/block/player_heads.json | 4 + gm4_swings/pack.png | Bin 0 -> 746 bytes 199 files changed, 12859 insertions(+) create mode 100644 gm4_swings/assets/gm4_swings/items/black_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/blue_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/brown_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/cyan_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/gray_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/green_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/light_blue_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/light_gray_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/lime_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/magenta_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/orange_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/pink_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/purple_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/red_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/white_swing.json create mode 100644 gm4_swings/assets/gm4_swings/items/yellow_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/black_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/blue_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/brown_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/cyan_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/gray_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/green_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/light_blue_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/light_gray_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/lime_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/magenta_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/orange_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/pink_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/purple_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/red_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/swing_rope.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/swing_template.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/white_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/block/yellow_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/black_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/blue_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/brown_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/cyan_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/gray_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/green_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/light_blue_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/light_gray_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/lime_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/magenta_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/orange_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/pink_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/purple_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/red_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/white_swing.json create mode 100644 gm4_swings/assets/gm4_swings/models/item/yellow_swing.json create mode 100644 gm4_swings/assets/gm4_swings/textures/block/black_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/blue_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/brown_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/cyan_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/gray_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/green_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/light_blue_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/light_gray_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/lime_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/magenta_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/orange_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/pink_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/purple_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/red_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/swing_rope.png create mode 100755 gm4_swings/assets/gm4_swings/textures/block/transparent_head.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/white_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/block/yellow_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/black_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/blue_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/brown_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/cyan_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/gray_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/green_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/light_blue_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/light_gray_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/lime_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/magenta_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/orange_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/pink_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/purple_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/red_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/white_swing.png create mode 100644 gm4_swings/assets/gm4_swings/textures/item/yellow_swing.png create mode 100644 gm4_swings/beet.yaml create mode 100644 gm4_swings/data/gm4_swings/advancement/interactions/hit.json create mode 100755 gm4_swings/data/gm4_swings/advancement/interactions/interact.json create mode 100644 gm4_swings/data/gm4_swings/advancement/place.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json create mode 100644 gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/dx.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/pendulum.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json create mode 100644 gm4_swings/data/gm4_swings/function/break/item.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/break/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/break/particle.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/init.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/launch/launch.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/launch/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/on_join.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/check.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/fail.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/place.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/ray.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/create.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/kill.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/move.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/sit.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/seat/tick.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/kill.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/setup.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/tick.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/tick.mcfunction create mode 100644 gm4_swings/data/gm4_swings/function/tick_5s.mcfunction create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/base.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/black.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/blue.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/brown.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/cyan.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/gray.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/green.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/lime.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/magenta.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/orange.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/pink.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/purple.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/red.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/white.json create mode 100644 gm4_swings/data/gm4_swings/loot_table/swings/yellow.json create mode 100644 gm4_swings/data/gm4_swings/predicate/id_match.json create mode 100644 gm4_swings/data/gm4_swings/predicate/jump.json create mode 100644 gm4_swings/data/gm4_swings/predicate/small_oscillation.json create mode 100644 gm4_swings/data/gm4_swings/predicate/vehicle.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/black.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/blue.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/brown.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/cyan.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/gray.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/green.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/light_blue.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/light_gray.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/lime.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/magenta.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/orange.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/pink.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/purple.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/red.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/white.json create mode 100755 gm4_swings/data/gm4_swings/recipe/swings/yellow.json create mode 100644 gm4_swings/data/gm4_swings/tags/block/player_heads.json create mode 100644 gm4_swings/pack.png diff --git a/gm4_swings/assets/gm4_swings/items/black_swing.json b/gm4_swings/assets/gm4_swings/items/black_swing.json new file mode 100644 index 0000000000..cc039d9e86 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/black_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/black_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/black_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/blue_swing.json b/gm4_swings/assets/gm4_swings/items/blue_swing.json new file mode 100644 index 0000000000..d0e36adec0 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/blue_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/blue_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/blue_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/brown_swing.json b/gm4_swings/assets/gm4_swings/items/brown_swing.json new file mode 100644 index 0000000000..11db06aa30 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/brown_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/brown_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/brown_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/cyan_swing.json b/gm4_swings/assets/gm4_swings/items/cyan_swing.json new file mode 100644 index 0000000000..5b52208a8a --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/cyan_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/cyan_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/cyan_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/gray_swing.json b/gm4_swings/assets/gm4_swings/items/gray_swing.json new file mode 100644 index 0000000000..a7e07a8ca4 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/gray_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/gray_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/gray_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/green_swing.json b/gm4_swings/assets/gm4_swings/items/green_swing.json new file mode 100644 index 0000000000..b5d6088d23 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/green_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/green_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/green_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/light_blue_swing.json b/gm4_swings/assets/gm4_swings/items/light_blue_swing.json new file mode 100644 index 0000000000..82acd9dfeb --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/light_blue_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/light_blue_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_blue_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/light_gray_swing.json b/gm4_swings/assets/gm4_swings/items/light_gray_swing.json new file mode 100644 index 0000000000..ba47e88c12 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/light_gray_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/light_gray_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/light_gray_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/lime_swing.json b/gm4_swings/assets/gm4_swings/items/lime_swing.json new file mode 100644 index 0000000000..45a21a20cf --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/lime_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/lime_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/lime_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/magenta_swing.json b/gm4_swings/assets/gm4_swings/items/magenta_swing.json new file mode 100644 index 0000000000..6bccb5ea1e --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/magenta_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/magenta_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/magenta_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/orange_swing.json b/gm4_swings/assets/gm4_swings/items/orange_swing.json new file mode 100644 index 0000000000..2e0f0be1c1 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/orange_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/orange_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/orange_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/pink_swing.json b/gm4_swings/assets/gm4_swings/items/pink_swing.json new file mode 100644 index 0000000000..b942aaec36 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/pink_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/pink_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/pink_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/purple_swing.json b/gm4_swings/assets/gm4_swings/items/purple_swing.json new file mode 100644 index 0000000000..9826ef3e85 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/purple_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/purple_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/purple_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/red_swing.json b/gm4_swings/assets/gm4_swings/items/red_swing.json new file mode 100644 index 0000000000..7f5086895d --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/red_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/red_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/red_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/white_swing.json b/gm4_swings/assets/gm4_swings/items/white_swing.json new file mode 100644 index 0000000000..09fe1a957d --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/white_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/white_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/white_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/items/yellow_swing.json b/gm4_swings/assets/gm4_swings/items/yellow_swing.json new file mode 100644 index 0000000000..b80e85335e --- /dev/null +++ b/gm4_swings/assets/gm4_swings/items/yellow_swing.json @@ -0,0 +1,662 @@ +{ + "model": { + "type": "minecraft:select", + "property": "minecraft:display_context", + "cases": [ + { + "when": [ + "firstperson_righthand", + "firstperson_lefthand", + "thirdperson_righthand", + "thirdperson_lefthand", + "gui", + "head", + "ground", + "fixed", + "on_shelf" + ], + "model": { + "type": "minecraft:model", + "model": "gm4_swings:item/yellow_swing" + } + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "property": "minecraft:custom_model_data", + "index": 0, + "entries": [ + { + "threshold": 0, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 1, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 2, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 3, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 4, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 5, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 6, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 7, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 8, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + }, + { + "threshold": 9, + "model": { + "type": "minecraft:composite", + "models": [ + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,0,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-1,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-2,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-3,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-4,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-5,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-6,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-7,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/swing_rope", + "transformation": { + "translation": [0,-8,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + }, + { + "type": "minecraft:model", + "model": "gm4_swings:block/yellow_swing", + "transformation": { + "translation": [0,-9,0], + "left_rotation": [0,0,0,1], + "right_rotation": [0,0,0,1], + "scale": [1,1,1] + } + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/black_swing.json b/gm4_swings/assets/gm4_swings/models/block/black_swing.json new file mode 100644 index 0000000000..4ef90127fa --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/black_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/black_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/blue_swing.json b/gm4_swings/assets/gm4_swings/models/block/blue_swing.json new file mode 100644 index 0000000000..8729ee9085 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/blue_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/blue_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/brown_swing.json b/gm4_swings/assets/gm4_swings/models/block/brown_swing.json new file mode 100644 index 0000000000..22b912173b --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/brown_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/brown_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/cyan_swing.json b/gm4_swings/assets/gm4_swings/models/block/cyan_swing.json new file mode 100644 index 0000000000..dd4f75a343 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/cyan_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/cyan_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/gray_swing.json b/gm4_swings/assets/gm4_swings/models/block/gray_swing.json new file mode 100644 index 0000000000..4d31570869 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/gray_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/gray_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/green_swing.json b/gm4_swings/assets/gm4_swings/models/block/green_swing.json new file mode 100644 index 0000000000..4a14b39c40 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/green_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/green_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/light_blue_swing.json b/gm4_swings/assets/gm4_swings/models/block/light_blue_swing.json new file mode 100644 index 0000000000..b11980322e --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/light_blue_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/light_blue_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/light_gray_swing.json b/gm4_swings/assets/gm4_swings/models/block/light_gray_swing.json new file mode 100644 index 0000000000..fe0e13909d --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/light_gray_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/light_gray_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/lime_swing.json b/gm4_swings/assets/gm4_swings/models/block/lime_swing.json new file mode 100644 index 0000000000..918b082e31 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/lime_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/lime_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/magenta_swing.json b/gm4_swings/assets/gm4_swings/models/block/magenta_swing.json new file mode 100644 index 0000000000..dcdda8e92f --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/magenta_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/magenta_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/orange_swing.json b/gm4_swings/assets/gm4_swings/models/block/orange_swing.json new file mode 100644 index 0000000000..39b840f381 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/orange_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/orange_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/pink_swing.json b/gm4_swings/assets/gm4_swings/models/block/pink_swing.json new file mode 100644 index 0000000000..09f92fc3e8 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/pink_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/pink_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/purple_swing.json b/gm4_swings/assets/gm4_swings/models/block/purple_swing.json new file mode 100644 index 0000000000..236609c88a --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/purple_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/purple_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/red_swing.json b/gm4_swings/assets/gm4_swings/models/block/red_swing.json new file mode 100644 index 0000000000..4024058b16 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/red_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/red_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/swing_rope.json b/gm4_swings/assets/gm4_swings/models/block/swing_rope.json new file mode 100644 index 0000000000..0f7929cbf8 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/swing_rope.json @@ -0,0 +1,26 @@ +{ + "textures": { + "0": "gm4_swings:block/swing_rope", + "particle": "gm4_swings:block/swing_rope" + }, + "elements": [ + { + "from": [1, -7, 4], + "to": [1, 9, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [-14, -7, 4]}, + "faces": { + "east": {"uv": [4, 0, 12, 16], "texture": "#0"}, + "west": {"uv": [4, 0, 12, 16], "texture": "#0"} + } + }, + { + "from": [15, -7, 4], + "to": [15, 9, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [0, -7, 4]}, + "faces": { + "east": {"uv": [4, 0, 12, 16], "texture": "#0"}, + "west": {"uv": [4, 0, 12, 16], "texture": "#0"} + } + } + ] +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/swing_template.json b/gm4_swings/assets/gm4_swings/models/block/swing_template.json new file mode 100644 index 0000000000..c3a930d135 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/swing_template.json @@ -0,0 +1,39 @@ +{ + "textures": { + "0": "#texture", + "particle": "#texture" + }, + "elements": [ + { + "from": [0, -4, 4], + "to": [16, -1, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [0, -4, 4]}, + "faces": { + "north": {"uv": [0, 4, 8, 5.5], "texture": "#0"}, + "east": {"uv": [8, 4, 12, 5.5], "texture": "#0"}, + "south": {"uv": [0, 4, 8, 5.5], "texture": "#0"}, + "west": {"uv": [8, 4, 12, 5.5], "texture": "#0"}, + "up": {"uv": [0, 0, 8, 4], "texture": "#0"}, + "down": {"uv": [8, 0, 16, 4], "texture": "#0"} + } + }, + { + "from": [15, -1, 4], + "to": [15, 9, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [0, -1, 4]}, + "faces": { + "east": {"uv": [0, 8, 4, 13], "texture": "#0"}, + "west": {"uv": [0, 8, 4, 13], "texture": "#0"} + } + }, + { + "from": [1, -1, 4], + "to": [1, 9, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [-14, -1, 4]}, + "faces": { + "east": {"uv": [0, 8, 4, 13], "texture": "#0"}, + "west": {"uv": [0, 8, 4, 13], "texture": "#0"} + } + } + ] +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/white_swing.json b/gm4_swings/assets/gm4_swings/models/block/white_swing.json new file mode 100644 index 0000000000..756e5bf5ac --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/white_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/white_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/block/yellow_swing.json b/gm4_swings/assets/gm4_swings/models/block/yellow_swing.json new file mode 100644 index 0000000000..6e87badf5d --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/block/yellow_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "gm4_swings:block/swing_template", + "textures": { + "texture": "gm4_swings:block/yellow_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/black_swing.json b/gm4_swings/assets/gm4_swings/models/item/black_swing.json new file mode 100644 index 0000000000..615d2b6fe4 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/black_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/black_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/blue_swing.json b/gm4_swings/assets/gm4_swings/models/item/blue_swing.json new file mode 100644 index 0000000000..288a1fac7c --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/blue_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/blue_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/brown_swing.json b/gm4_swings/assets/gm4_swings/models/item/brown_swing.json new file mode 100644 index 0000000000..4e0824786c --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/brown_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/brown_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/cyan_swing.json b/gm4_swings/assets/gm4_swings/models/item/cyan_swing.json new file mode 100644 index 0000000000..d5a28dc6ca --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/cyan_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/cyan_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/gray_swing.json b/gm4_swings/assets/gm4_swings/models/item/gray_swing.json new file mode 100644 index 0000000000..8c413e49d9 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/gray_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/gray_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/green_swing.json b/gm4_swings/assets/gm4_swings/models/item/green_swing.json new file mode 100644 index 0000000000..ad342bae67 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/green_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/green_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/light_blue_swing.json b/gm4_swings/assets/gm4_swings/models/item/light_blue_swing.json new file mode 100644 index 0000000000..67759167d9 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/light_blue_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/light_blue_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/light_gray_swing.json b/gm4_swings/assets/gm4_swings/models/item/light_gray_swing.json new file mode 100644 index 0000000000..bc0166ddda --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/light_gray_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/light_gray_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/lime_swing.json b/gm4_swings/assets/gm4_swings/models/item/lime_swing.json new file mode 100644 index 0000000000..e222980bd7 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/lime_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/lime_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/magenta_swing.json b/gm4_swings/assets/gm4_swings/models/item/magenta_swing.json new file mode 100644 index 0000000000..435a88a9fc --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/magenta_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/magenta_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/orange_swing.json b/gm4_swings/assets/gm4_swings/models/item/orange_swing.json new file mode 100644 index 0000000000..99eda08a8d --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/orange_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/orange_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/pink_swing.json b/gm4_swings/assets/gm4_swings/models/item/pink_swing.json new file mode 100644 index 0000000000..8831e97061 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/pink_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/pink_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/purple_swing.json b/gm4_swings/assets/gm4_swings/models/item/purple_swing.json new file mode 100644 index 0000000000..d01849ea4f --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/purple_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/purple_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/red_swing.json b/gm4_swings/assets/gm4_swings/models/item/red_swing.json new file mode 100644 index 0000000000..31b8ddb396 --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/red_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/red_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/white_swing.json b/gm4_swings/assets/gm4_swings/models/item/white_swing.json new file mode 100644 index 0000000000..f611199d3f --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/white_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/white_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/models/item/yellow_swing.json b/gm4_swings/assets/gm4_swings/models/item/yellow_swing.json new file mode 100644 index 0000000000..cc11f9b8da --- /dev/null +++ b/gm4_swings/assets/gm4_swings/models/item/yellow_swing.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "gm4_swings:item/yellow_swing" + } +} \ No newline at end of file diff --git a/gm4_swings/assets/gm4_swings/textures/block/black_swing.png b/gm4_swings/assets/gm4_swings/textures/block/black_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..5e26f40a28c712112faad8ca7a1126cf88b71d07 GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0^APO7e2rD#}J$n%4Sy_9n*8mgepTcc+>G zwF#C4`2{olM*{+)4hw;jhdo^!Lo9l)PS_}P*nq>CQ_=5~=ZydVZ^@NS&hwqlclC+! zd7(`f0)mc{9GR}oTDfYgrttT9Gi{ZOo8Rr4Qj!%J!r=CPu8y9-x4N9PtV6Tdjk&qq zE??hJw58$2)CrclyLzj)zFh3v;drK_FE8p^de5~NO-?m8g;2Lu+W6{&NHsJ zt1O>A_ZMimep7MzosUM0dsx^x_cLt%rf2u->dKjaW`BG9{6HD|n%BGqHt&?aNjI1N n%_w}M^qW2D_CC*_<+hAW96Z+P+XE_r-eK@`^>bP0l+XkKX&sTL literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/blue_swing.png b/gm4_swings/assets/gm4_swings/textures/block/blue_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..391da4237e41fb39c9e92b633217372514749ed8 GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0?n~eb(Od9D>$3M{ROR-szIF)2)2R>e{(2 zKy890L4Lsu|IvVesKY{_&;11&uHRH#e&?eR;~o}v&ixFVzv@B oe=`c-DE($ny1mcyXSppS69{Ia0+P0_iIN|hd}P5#{TInQ@G-_<9^ z=Y=*|2nae(a%8$TYvrn~n!?}b&9qfAZhp6GN=a5^2!q@ExjK3R-|BMGvJTB+H|FMc zyL^2^(Uyi6QzuyJ?&_`H`f{;vhvS)!zPzYw={?sbrA+zjA>sXMY1F00z(Nz&JI}b@ zuCjdg++U#K`c1{kY^8;n2>4(r@;p+xt9!mfJEiaqw8DZx5&hdWXT&)z4*}Q$iB}A6}I~ literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/cyan_swing.png b/gm4_swings/assets/gm4_swings/textures/block/cyan_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..9495ef9d1bcb0dd0a10a224e126bf6f4e39f8b75 GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0@nIb%Hg`!mXVm{S#zn&s1HuK!5X!*E^Ob z0<{U21o;Is{6_-no^P#8N%T9ey)z5z_+@bw5&t3*p0cl z-7a6>P_(7t#ncIwy1RO-x4vBL+u?Yoqc1P&T6)j5NhwqQdPsP`S{ik!F|g2t_0BV{ zx2r6lJ@*%AxPDV{`JInOjC)wvIrlSc{-$U5>*~sxe`bGs{QN)}`>GnR)pXIiUOdLGc>DvP;f!<;8boFyt=akR{06pF literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/gray_swing.png b/gm4_swings/assets/gm4_swings/textures/block/gray_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..a5a3179678fa2003db6325eaeec6291e52ad9f10 GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0_xQ(Sh+vp(&YBSp`Xj<>{r>`Be?Po7*ga z+5}62{DK+&qX7X?hlN1N!=5gVAr`$?Cu|ftY{22nspxmgbH@Mwx8%wu=lM?OyZXfV zywD~K0YS$}j!f5Ptz5NLQ~3M5nYK#C&F^+iDancqVQ_mtS4U6aTU}0C)}dMK#@yU) zm#=Rq+S2f1>I6&OUA@&?UoQ6Ta6Hq|mlt&{z31Ablqr8bB)nfOjk?qrSZKm}=NZ@A zRhG}5`wKK&zp1$V&POB0JuK{;`x!QW)3f_^b>+-Iv%fulexQtf&1>EQn|Dgzq?=3s nW)!|r`puqnd!Ogea$80w4j$|D?E#fQ?=X0}`njxgN@xNA<%pI6 literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/green_swing.png b/gm4_swings/assets/gm4_swings/textures/block/green_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..bae948c325534b66f04f0e78d35cad89dd5f6286 GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0@BSvVPfO?#U9NMWTt-61gohWj*qu?*5rT zZGt61e!&d?(SU%c!$P3sVNVyw5R2Zc6E+GRHsEmPRP;OLIphETTXJQS^L(fCU43GF zUTBkrfS}_fN2Y7DR<7ErDg1rjOj{-6=6AcMlw?JQFu1*+tD`6Itu7}m>(DHAV{UG@ z%hxv)ZE1Khb%LetuHNdcFBkiEIG*X~%Zs{}-g9kI%9Otz65g+tMqO$QEHq)g^Nj25 zD$8fj{RJAX-&9Dm3dx^m{9+20;NKTyWL<~47D%{!%U(#@rR nGYa1*{bo{Ia0+P0^aA+f*A5X>^^|oODTd-eu#p7tMEFd39w& zJy4rqNswPK!+$g&AnLFXD0$e^#WBR9_v(a=LWd1FoH-T!PI=Dw|NoX;+2lOm>3mn8 z7@rr~WFa8vILVRe+N_nUwrUE0pEuK1$+-F5t|=v1ks%Cj@8|0134E)|Ny|Dki`|%; z+wJo84MkfTUQC@}sk^JUdh5%@z8#KdI{NaWuBG=}o0Kx;uZM*9tEEww8UqVWSnoXJ zdb`T<*>it^hU+&Km*4ql#JGoropV3K=5Km-zpk#F`DgaG$IlOxv9Ec}TVV4}>6>(O o>EDdPH%h{Ia0+P0?i)#dQr;Z5>Vh6T9ZjnX+=(ysaBnd{^#T z3)Ci9666=m@E;8bh&n6;N*?xfaSXBOy*go|&|w1(XHG@GQ=T*a|Gyh9{T-uiN}Z-?WVj=sF8Yw11LCZ$aI>mlL&YH8G^#=t@o);rI* z-mbEI_S|2f;rdO*<##?BG45eu=iJY*`J0~Iud6F({+a#l@$&;^>}y{07TCN~`X=36 o`ZuHSjnZ%Sq}%&Ef0o-aGI8)&r*99a1bT{Ia0+P0@bcDiPD9QWwb;uTyB+tupnv&a(4nrR;ku zf!YL1g8YIR{-Xf_QHO;<$-|y5jv*GkS0`)~I&8q<%&F*i%5%p5|F`7ICg=H1=ezpE z_`J|23jsmLNsdg{X02ScRa5x;yqUI2#?9|`O)1HW3}JA4KUYUj;9FfzTGpXi?8e;O zZkMlbDB9BSV(J7--Ce!aTVF2r?QlHP(U%u>ExqU3q?9RtJtVweEseU=7+7e+dgmF} z+f|m&p8E?lT)(Nf{LV)s#yu?TockFzf77%3b#>*;KeN9*etw{gea&m$0-JYA-=v#M n|7H}vQTolEbbFuY&vIKvCJr9!^z8v4zcP5b`njxgN@xNArNoxN literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/magenta_swing.png b/gm4_swings/assets/gm4_swings/textures/block/magenta_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..586d32a97167a2c70ba55c92927373933133e2c5 GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0`(kJ@ZXwud`UT*J}MS_tj^ES6qo*<$TRe z0H{r{B*-tA;XfJ>5Or7xlsxR|;uvDldv(G_p~D6o&YX&VRUR|`|Gyh9{T-uiN}Z-?WVj=sF8Yw11LCZ$aI>mlL&YH8G^#=t@o);rI* z-mbEI_S|2f;rdO*<##?BG45eu=iJY*`J0~Iud6F({+a#l@$&;^>}y{07TCN~`X=36 o`ZuHSjnZ%Sq}%&Ef0o-a`rP0NYCjhj0rU=or>mdKI;Vst0F?Qe#sB~S literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/orange_swing.png b/gm4_swings/assets/gm4_swings/textures/block/orange_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..c17ba3c62c1d0d15efff4d4c28d17940a64d230c GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0?3kMDM5ZzbFv-R3-7FTlw!yz5gp*AJ=a8 z2Wk^63GxeO_>TqzL>(3aB@cVLIEGmCUY)Q}=&%8YGpC|omB)<#|8L2aP0sV3&Uf{R z@p++576O8flN_0@&04u?tETYxc{6R5jGN!>no^P#8N%T9ey)z5z_+@bw5&t3*p0cl z-7a6>P_(7t#ncIwy1RO-x4vBL+u?Yoqc1P&T6)j5NhwqQdPsP`S{ik!F|g2t_0BV{ zx2r6lJ@*%AxPDV{`JInOjC)wvIrlSc{-$U5>*~sxe`bGs{QN)}`>GnR)pXIiUJ~w!R+Rw#B0KLQD>FVdQ&MBb@03+a{Ia0+P0?qSQ8e{U-TV(7E51(N^y-ny zbD%cCk|4iehW}_lK-6I&Q1Y;+i(`mI@6`z#g$^5VICCocRe8+#|NoX;+2lOm>3mn8 z7@rr~WFa8vILVRe+N_nUwrUE0pEuK1$+-F5t|=v1ks%Cj@8|0134E)|Ny|Dki`|%; z+wJo84MkfTUQC@}sk^JUdh5%@z8#KdI{NaWuBG=}o0Kx;uZM*9tEEww8UqVWSnoXJ zdb`T<*>it^hU+&Km*4ql#JGoropV3K=5Km-zpk#F`DgaG$IlOxv9Ec}TVV4}>6>(O o>EDdPH%hzopr07w>{Z~y=R literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/purple_swing.png b/gm4_swings/assets/gm4_swings/textures/block/purple_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..ea1c2573ef2756b7223c30e8769b826cc96c95cc GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0VVVb$9hvZ+*Ggx5M#FM_*plwe+5AlTxPq^^ov>wKVEdV_=~P>z!v@ zZ&z79d+smLaQ&v@@;e`m827NSbM9x@{7uj9*VUCX|IGgO`1ye{_BF403vAvgeUol3 o{hLwvM(HOV literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/red_swing.png b/gm4_swings/assets/gm4_swings/textures/block/red_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..1802b9aac089d01f8dd7d085eb2a262237c83b3f GIT binary patch literal 698 zcmV;r0!96aP)Px%bV)=(R9J=WRlRQ0P#8Tvln%&3YR+Oi_xrwc?)koZBMo++rG}yb z0H~fq#3GDy-*uJn-{!Fl0QmTL32N#90L%4ZI{}Yxw=}-C36|@F0Du<-c=50fy;|Xm zezN56RF!X%R>Hi95!ucX!||+8oHi8LPLLDCYs?}ZL$cl5eu%nCV32CT0iRU4II7C9 z02r|hs;6kT(mU@~bjEf9v|Ad;4!H(a_GaW>oL~{gc+{w|5LpWhMZ-L1ea!|>6oa)RIge!+iVQDegS2jO)|NjxuqVVx z@Avmp@S$Q5iPy}t$i@#bVFcb}M&d#KbDl!MM^9*S4q9EtSCc>Negs&Nj zhS7xOW_gC939+{b__WLVM$H;5cL{3NR!g-)Ftb+4-Fys7P_xPNEZ67t@a3->w%Fo7 z!tr4@9UL8`cL@Dw*!=HvZv{*yZs`JYm%igp;keUM1>_uf_3}BouREm*$T@KN^&6T^ zvs3}xfx*#1>bO%}j>h=#?rmvDvBJq`K2A>0rIXWhY4rVPc_R9~PTKEv3S|9WCp|vw gmU<~|vBmwwZ=vlUt<#4QF8}}l07*qoM6N<$f?HZiEdT%j literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/swing_rope.png b/gm4_swings/assets/gm4_swings/textures/block/swing_rope.png new file mode 100644 index 0000000000000000000000000000000000000000..448c2ab023e548cc68e9c6fd92b74fa298670c93 GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|3O!vMLo9le z6Am!1I_&#@eSX)!et%wJJ5M$?wl@CweUGQAXD}!_Txi%nf8V71h6M`*4*&lC{)D;1 zjDG3$X-#YgVjQHc&q9iy!t)x7$D3u`~F*C13&(AeP!Bo#s z&*=9a=50VV+fpMu(>y)37&w3&Rt70XRt82O%L|C5p=^+AG#Ht|;!HrcAtMum0FaIX z;>>myuy_`b4FaFa7#UtLBWN^B8Gup~*cn)WDh-T`4Hy?dOaYgr+Ar*0N4>Ixsd50E!_s``sR{%1R!GjoH W2L}d5?qWY#kg%t#pUXO@geCyte?h7M literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/white_swing.png b/gm4_swings/assets/gm4_swings/textures/block/white_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..b4f2f0796c8ac4b617bd5a5242a3a36e75976c7d GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0?%Ctl7D9=h34_FI>2A=gys{PoKVh`&MAv z+GRj(f+azI!3_V=fPkpOLZIYfPZ!4!i{7gfHVPd!;Be+t^sDli@&ErVxw6T5zSH@x zJ~2Kow8=t1&~cI@)3sSES8df4{yuM}t&(x`yIoUCvLZtm+}_XC(G&Pqmy?!tXcoIM zH@Dm6>l=!;G`yHP!BTfuZ}rxfi+wvB&vf+VMO{npxi%?f%3lu&?^jEsE;R-gny}t^ z#`SiU<+JDh0u9%1DlWhC(TH&m3p?k2hRxsf?0#KcIrGo#Z;ziJC}Usqnzz8_ozgey q=F-0zg>RI8vnSo&=lQeTmeJ=1Pf+{0xCo$k7(8A5T-G@yGywn;!=NPq literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/block/yellow_swing.png b/gm4_swings/assets/gm4_swings/textures/block/yellow_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..77486c8e1b52508c9f2d69577c623cee10461fef GIT binary patch literal 357 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jP7LeL$-D$|j01c^T!FNe zzFeTKN`|XidVo%KxM^LIc~6G>{Ia0+P0_cei#%Q~_HGgd-W_H( zHlQ}ak|4iehW}_lK-6I&Q1Y;+i(`mI@6`z#g$^5VICCocRe8+#|NoX;+2lOm>3mn8 z7@rr~WFa8vILVRe+N_nUwrUE0pEuK1$+-F5t|=v1ks%Cj@8|0134E)|Ny|Dki`|%; z+wJo84MkfTUQC@}sk^JUdh5%@z8#KdI{NaWuBG=}o0Kx;uZM*9tEEww8UqVWSnoXJ zdb`T<*>it^hU+&Km*4ql#JGoropV3K=5Km-zpk#F`DgaG$IlOxv9Ec}TVV4}>6>(O o>EDdPH%hzopr0Ljss>Hq)$ literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/black_swing.png b/gm4_swings/assets/gm4_swings/textures/item/black_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..d03d85290ec6f97d24854926881eea6f0fef76e9 GIT binary patch literal 443 zcmV;s0Yv_ZP)Px$bxA})R5*>5l08qtP!xur0wyLD3~j(jAdR7uI6D|k+?*WrFF43A;2*f4KL93N zogG=27<6JKC5Dd$2p#&N#*fqidu?ND^i1d8ocDRpJ@>#@wCiVHyME^J&q(;m(sD6I z6XGCo1_EFVAIasESSR1$x^^6br2M4W8Avtoj2M71d_=Eoqh`~g`&96tDjQthK1fl3 zID$| z$ZyMEDP7n3azzXWRfUSU*$e*8V4tCa=S+Df^V<~d7alo1B lGGD$3F+e2XH(*c<@ClTbl(PUMpO63m002ovPDHLkV1kMm!~6gM literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/blue_swing.png b/gm4_swings/assets/gm4_swings/textures/item/blue_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..f5c39300696097233635886ec6e271ba707a1203 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0JsT z8D#Dusuz~dZfzRlbFXPdhj!O$xGMnDV<)=^pp5HvwMT l`}Ceye0jL{TW9Tm#_9gdep@`(SOBeL@O1TaS?83{1OPJCU$_7O literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/brown_swing.png b/gm4_swings/assets/gm4_swings/textures/item/brown_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..0fa4fba6d2123332c3568913ad2f8f3166155c06 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0L@G zDVFP~)E8m6vCuKdP|8YQF3?sb!&NOkK&Lv~v@XfKC&PVyS^!%R9&O_Pm5;Dih_Vhk5lZFuMA*gJaU9ARC4$zblpQasPS~;I+L^ j?|H?ShkL(u*8XRl?$7ME#dD1X&`JhRS3j3^P6d?i7C!3_VA zLAcj#5ui-Er;B5V#MIccj(kTHc$@>xw|RS?{JY+I5vz*Y?mhCF3`QIMSI=KluvKQE z@6K%uS8N&nCm#G2_Lg^!=k0k3%Ty-HO%L#Y6HINhJwZ;R&|3!s$@p00i_>zopr0A&qcX8-^I literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/gray_swing.png b/gm4_swings/assets/gm4_swings/textures/item/gray_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..6af41bbc4f5208b292a08cad637d396ee09a30f5 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0Jrx zWb6|j8IhTvTTy50;%cQY7ig=J;i{G%pi>=gT9;(rli@zUENC_3pMyZvd?i7C!3_VA zLAcj#5ui-Er;B5V#MIccj(kTHc$@>xw|RS?{JY+I5vz*Y?mhCF3`QIMSI=KluvKQE z@6K%uS8N&nCm#G2_Lg^!=k0k3%Ty-HO%L#Y6HINhJwZ;R&|3!s$@p00i_>zopr0J|Mu0{{R3 literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/green_swing.png b/gm4_swings/assets/gm4_swings/textures/item/green_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..f67cf6e1f0a44d85e0e7fa7272162df9f008bb0f GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0Jrq zENv4d7hEV>(j}+us$``v7ig=J;i{G%pi>=gT9;(rli@zUENCt#e*sW6UrCT(FvEXj z5bkwb1Spg4>Eak7F*WwABi|7P9_K*wZQkA||E{-Q#HymUdyl*(gV9F+)$`XBY?WE) zyK@`E6MGL?yP)5E-a78qT9+QBhtQjiV9l;4#~_qcz(3Gmw9 kr}w<#%fr3jI&1$kPWNZ_+v2�%#?Jr>mdKI;Vst01rW2g8%>k literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/light_blue_swing.png b/gm4_swings/assets/gm4_swings/textures/item/light_blue_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..7ca815d3955d3b938478340050875279a6a5357d GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0JtC zU94HWMRU?6v#l3(BYLd#swq}*xTQ+an0hGm>4U4xjoT*`AUNPf*JlJ zgK)3gB0!mRPZ!4!iK($?9r=zZ@HhvWZ}av(`FFkbB32c(-FxIU8H_giub#iAV5`hR z-<{hSuGljCPdxZ5>@Dvc&)f47mZ?mXn;z!Xv%u);(+-YFlY(p*ru?o{y2t(NO@P<- lKE3A^UmouL)>-?Xak@XV-xkj`7CV5tBA literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/lime_swing.png b/gm4_swings/assets/gm4_swings/textures/item/lime_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..5268122cdc290d6a80c187c64cce7360e0521854 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0HT= zuHn@Dvc&)f47mZ?mXn;z!Xv%u);(+-YFlY(p*ru?o{y2t(NO@P<- lKE3A^UmouL)>-?Xak@XV-xkj`7CsQ(I`SP+;BgK#-{$Ro^6z@NpLpEEK`{%H$BX&XMxexryU%VCI#6rO!-}@bdUSjn*guv leR|I;zC7Ift+Vz&<8*&!zb&3?EPz%rc)I$ztaD0e0swO)U&#Of literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/orange_swing.png b/gm4_swings/assets/gm4_swings/textures/item/orange_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..7602bbc9915a513322aa9b5a7bd24360ca4753c7 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0Fvb zRQh~`*rzIq|BK94*veYz%LUr1WVouO2k2CXo7N?n_hh)wFAF-cwon&SORfyX(}e4DrT$-nEZ7qP0S?cO7=$zZh6fA#z|1zTkn z`tIDuaK)D4f8xPkVQ+coc;23uuuNs5-1IQ7o&`o%pLTFeniOQiFy(ip(mn29Zvwow l_vt;a`0{Y?x6a!CjMM#@{kC|nu>e}h;OXk;vd$@?2>?O?VA}uy literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/purple_swing.png b/gm4_swings/assets/gm4_swings/textures/item/purple_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..e2a4996fefb6a842895a7495bc3fe3f3bc33b73a GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0HUK zn_Qr?bc)64%>h?}R2!`H&SORfyX(}e4DrT$-nEZ7qP0S?cO7=$zZh6fA#z|1zTkn z`tIDuaK)D4f8xPkVQ+coc;23uuuNs5-1IQ7o&`o%pLTFeniOQiFy(ip(mn29Zvwow l_vt;a`0{Y?x6a!CjMM#@{kC|nu>e}h;OXk;vd$@?2>^%6U;+RD literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/red_swing.png b/gm4_swings/assets/gm4_swings/textures/item/red_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..175d4224807d85f53301bb82a0575c9a5f0be373 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0EiJ zs@kulwbfAblD%HGgqD@QT%fH=hO1h7fKGL|X@Dvc&)f47mZ?mXn;z!Xv%u);(+-YFlY(p*ru?o{y2t(NO@P<- lKE3A^UmouL)>-?Xak@XV-xkj`7CeCL6Nt1$X7^eKLRJzCg>rH^y m_CCGm6<;3i{nlCgpK-cBv)>laH5NcC89ZJ6T-G@yGywpyNMvjP literal 0 HcmV?d00001 diff --git a/gm4_swings/assets/gm4_swings/textures/item/yellow_swing.png b/gm4_swings/assets/gm4_swings/textures/item/yellow_swing.png new file mode 100644 index 0000000000000000000000000000000000000000..06850ff5b185183572dbfa84c3f64b3f4dd7eed8 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJV{wqX6T`Z5GB1G~tpJ}8S0Ftn ziu1-~kx$22|K3m8mB($RFBfR5lHsbB9-vblZd#XQ-jm@zzbr_8g3?={YQB;nzhH*{ z$ROP7wg^xr-P6S}L}F^}Sx3Gj3Ovq%=G(lzPyStRy@*vsZTB8|O$MWl{;TJ&DcCBr z(0AuHhAXxV{}T`X3VX{t$Mg2Qgk>rd<)(*u^(-*D`m}>%(xf08hAF=*mF{u>dK2Ka ly-)9X#g~VBzjfCBXPoZO?6<{pjRnw322WQ%mvv4FO#owNVITki literal 0 HcmV?d00001 diff --git a/gm4_swings/beet.yaml b/gm4_swings/beet.yaml new file mode 100644 index 0000000000..763362c75a --- /dev/null +++ b/gm4_swings/beet.yaml @@ -0,0 +1,35 @@ +id: gm4_swings +name: gm4_swings +version: 1.0.X + +data_pack: + load: . + +resource_pack: + load: . + +pipeline: + - gm4.plugins.extend.module + - gm4.plugins.include.lib_player_motion + +meta: + gm4: + versioning: + schedule_loops: + - tick + - tick_5s + required: + lib_player_motion: 1.2.0 + website: + description: Swings to swing on + recommended: [] + notes: [] + modrinth: + project_id: xxxxxxx + smithed: + pack_id: gm4_swings + wiki: https://wiki.gm4.co/wiki/Swings + credits: + Creators: + - maybejake + - kyrius diff --git a/gm4_swings/data/gm4_swings/advancement/interactions/hit.json b/gm4_swings/data/gm4_swings/advancement/interactions/hit.json new file mode 100644 index 0000000000..9cb50eeb29 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/interactions/hit.json @@ -0,0 +1,20 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_hurt_entity", + "conditions": { + "entity": { + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "entity_type": "minecraft:interaction", + "entity_tags": {"any_of":["gm4_swings.interaction.hit"]} + } + } + } + } + }, + "rewards": { + "function": "gm4_swings:interactions/hit/main" + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/advancement/interactions/interact.json b/gm4_swings/data/gm4_swings/advancement/interactions/interact.json new file mode 100755 index 0000000000..218b9b7f96 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/interactions/interact.json @@ -0,0 +1,20 @@ +{ + "criteria": { + "requirement": { + "trigger": "minecraft:player_interacted_with_entity", + "conditions": { + "entity": { + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "entity_type": "minecraft:interaction", + "entity_tags": {"any_of":["gm4_swings.interaction.interact"]} + } + } + } + } + }, + "rewards": { + "function": "gm4_swings:interactions/interact/main" + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/advancement/place.json b/gm4_swings/data/gm4_swings/advancement/place.json new file mode 100644 index 0000000000..9a6b7d176f --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/place.json @@ -0,0 +1,20 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:placed_block", + "conditions": { + "location": { + "type": "minecraft:match_tool", + "predicate": { + "predicates": { + "minecraft:custom_data": {"gm4_swings":{}} + } + } + } + } + } + }, + "rewards": { + "function": "gm4_swings:place/main" + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json new file mode 100644 index 0000000000..6a089eaefe --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:black_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/black" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json new file mode 100644 index 0000000000..d78375ca2a --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:blue_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/blue" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json new file mode 100644 index 0000000000..9949880758 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:brown_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/brown" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json new file mode 100644 index 0000000000..811b724c5e --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:cyan_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/cyan" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json new file mode 100644 index 0000000000..8b565e019e --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:gray_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/gray" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json new file mode 100644 index 0000000000..1fd6fb4a97 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:green_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/green" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json new file mode 100644 index 0000000000..71623aae40 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:light_blue_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/light_blue" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json new file mode 100644 index 0000000000..86e5e23caf --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:light_gray_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/light_gray" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json new file mode 100644 index 0000000000..bbf61bcb56 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:lime_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/lime" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json new file mode 100644 index 0000000000..4726ed696f --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:magenta_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/magenta" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json new file mode 100644 index 0000000000..4996862262 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:orange_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/orange" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json new file mode 100644 index 0000000000..c111c67799 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:pink_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/pink" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json new file mode 100644 index 0000000000..4c8c2c3ede --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:purple_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/purple" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json new file mode 100644 index 0000000000..23afa7544c --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:red_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/red" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json new file mode 100644 index 0000000000..02055d8915 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:white_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/white" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json new file mode 100644 index 0000000000..f910df5aa2 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json @@ -0,0 +1,19 @@ +{ + "criteria": { + "place": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:yellow_cushion" + } + ] + } + } + }, + "rewards": { + "recipes": [ + "gm4_swings:swings/yellow" + ] + } +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json b/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json new file mode 100644 index 0000000000..f9c27d9b72 --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:max", + "inputs": [ + { + "type": "minecraft:min", + "inputs": [ + { + "type": "minecraft:add", + "inputs": [ + {"type":"storage","storage":"gm4_swings:data","path":"rotation"}, + {"type":"storage","storage":"gm4_swings:data","path":"angular_velocity"} + ] + }, + 90 + ] + }, + -90 + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json b/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json new file mode 100644 index 0000000000..b1a41ca25d --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:div", + "left": { + "type": "minecraft:sub", + "left": 90, + "right": { + "type": "minecraft:abs", + "input": { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "rotation" + } + } + }, + "right": 10 +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/dx.json b/gm4_swings/data/gm4_swings/context_float_provider/dx.json new file mode 100644 index 0000000000..be78964973 --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/dx.json @@ -0,0 +1,15 @@ +{ + "type": "minecraft:length", + "inputs": [ + { + "type": "minecraft:sub", + "left": {"type":"storage","storage":"gm4_swings:data","path":"origin_pos[0]"}, + "right": {"type":"storage","storage":"gm4_swings:data","path":"seat_pos[0]"} + }, + { + "type": "minecraft:sub", + "left": {"type":"storage","storage":"gm4_swings:data","path":"origin_pos[2]"}, + "right": {"type":"storage","storage":"gm4_swings:data","path":"seat_pos[2]"} + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json b/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json new file mode 100644 index 0000000000..4bbe14aa63 --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json @@ -0,0 +1,134 @@ +{ + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:add", + "inputs": [ + { + "type": "minecraft:add", + "inputs": [ + {"type":"storage","storage":"gm4_swings:data","path":"angular_velocity"}, + { + "type": "minecraft:mul", + "inputs": [ + {"type":"storage","storage":"gm4_swings:data","path":"angular_velocity"}, + {"type":"storage","storage":"gm4_swings:constants","path":"damping"}, + -1 + ] + } + ] + }, + { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:div", + "left": { + "type": "minecraft:add", + "inputs": [ + {"type":"storage","storage":"gm4_swings:data","path":"player_torque"}, + { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:conditional", + "condition": { + "type": "minecraft:float_value_check", + "value": {"type":"storage","storage":"gm4_swings:data","path":"rotation"}, + "test": { + "min": 0, + "max": 90 + } + }, + "on_true": "gm4_swings:dx", + "on_false": { + "type": "minecraft:mul", + "inputs": [ + "gm4_swings:dx", + -1 + ] + } + }, + {"type":"storage","storage":"gm4_swings:constants","path":"gravity"}, + {"type":"storage","storage":"gm4_swings:constants","path":"mass"}, + -1 + ] + } + ] + }, + "right": { + "type": "minecraft:mul", + "inputs": [ + {"type":"storage","storage":"gm4_swings:constants","path":"mass"}, + { + "type": "minecraft:pow", + "base": {"type":"storage","storage":"gm4_swings:data","path":"length"}, + "exponent": 2 + } + ] + } + }, + 57.2957795131 + ] + } + ] + }, + { + "type": "minecraft:conditional", + "condition": { + "type": "minecraft:all_of", + "terms": [ + { + "type": "minecraft:inverted", + "term": { + "type": "minecraft:float_value_check", + "test": 0, + "value": { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "angular_velocity" + } + } + }, + { + "type": "minecraft:float_value_check", + "test": { + "min": 80 + }, + "value": { + "type": "minecraft:abs", + "input": { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "rotation" + } + } + }, + { + "type": "minecraft:float_value_check", + "test": { + "min": 0 + }, + "value": { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "rotation" + }, + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "angular_velocity" + } + ] + } + } + ] + }, + "on_true": "gm4_swings:angle_damper", + "on_false": 1 + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json new file mode 100644 index 0000000000..98b02fd79b --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json @@ -0,0 +1,7 @@ +{ + "type": "minecraft:mul", + "inputs": [ + "gm4_swings:player_torque/normal", + -1 + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json new file mode 100644 index 0000000000..9bff78c511 --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json @@ -0,0 +1,51 @@ +{ + "type": "minecraft:number_dispatcher", + "cases": [ + { + "condition": { + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "minecraft:type_specific/player": { + "input": { + "forward": true + } + } + } + }, + "value": { + "type": "minecraft:mul", + "inputs": [ + {"type":"storage","storage":"gm4_swings:constants","path":"player_torque"}, + {"type":"storage","storage":"gm4_swings:data","path":"length"} + ] + } + }, + { + "condition": { + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "minecraft:type_specific/player": { + "input": { + "backward": true + } + } + } + }, + "value": { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:mul", + "inputs": [ + {"type":"storage","storage":"gm4_swings:constants","path":"player_torque"}, + {"type":"storage","storage":"gm4_swings:data","path":"length"} + ] + }, + -1 + ] + } + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json new file mode 100644 index 0000000000..9a6368d42b --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json @@ -0,0 +1,7 @@ +{ + "type": "minecraft:mul", + "inputs": [ + "gm4_swings:push_torque/normal", + -1 + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json new file mode 100644 index 0000000000..d34543a44f --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json @@ -0,0 +1,16 @@ +{ + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:storage", + "storage": "gm4_swings:constants", + "path": "player_torque" + }, + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "length" + }, + 10 + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json b/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json new file mode 100644 index 0000000000..ada82462cc --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json @@ -0,0 +1,53 @@ +{ + "type": "minecraft:add", + "inputs": [ + { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "player_motion[0]" + }, + { + "type": "minecraft:sin", + "input": { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "seat_angle" + }, + 0.0174532925199 + ] + } + } + ] + }, + { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "player_motion[2]" + }, + { + "type": "minecraft:cos", + "input": { + "type": "minecraft:mul", + "inputs": [ + { + "type": "minecraft:storage", + "storage": "gm4_swings:data", + "path": "seat_angle" + }, + 0.0174532925199 + ] + } + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/break/item.mcfunction b/gm4_swings/data/gm4_swings/function/break/item.mcfunction new file mode 100644 index 0000000000..1a2f92521b --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/break/item.mcfunction @@ -0,0 +1 @@ +$execute align xyz run loot spawn ~0.5 ~0.5 ~0.5 loot gm4_swings:swings/$(type) \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/break/main.mcfunction b/gm4_swings/data/gm4_swings/function/break/main.mcfunction new file mode 100644 index 0000000000..df1bbdddf9 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/break/main.mcfunction @@ -0,0 +1,14 @@ +# particle +data modify storage gm4_swings:temp item_model set from entity @s item.components."minecraft:item_model" +function gm4_swings:break/particle with storage gm4_swings:temp + +# sooound +playsound minecraft:item.lead.break block @a ~ ~ ~ 0.5 1.5 +playsound minecraft:block.bamboo_wood.break block @a ~ ~ ~ 1 1 + +# item +data modify storage gm4_swings:temp type set from entity @s item.components."minecraft:custom_data".gm4_swings.type +function gm4_swings:break/item with storage gm4_swings:temp + +# kill the swing +function gm4_swings:swing/kill \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/break/particle.mcfunction b/gm4_swings/data/gm4_swings/function/break/particle.mcfunction new file mode 100644 index 0000000000..02d27aa1ce --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/break/particle.mcfunction @@ -0,0 +1 @@ +$execute align xyz run particle minecraft:item{item:{id:"minecraft:diamond","components":{"minecraft:item_model":"$(item_model)"}}} ~0.5 ~0.8 ~0.5 0.3 0.2 0.3 0.1 10 \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/init.mcfunction b/gm4_swings/data/gm4_swings/function/init.mcfunction new file mode 100644 index 0000000000..f2a4bc5dec --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/init.mcfunction @@ -0,0 +1,18 @@ +scoreboard objectives add gm4_swings.id dummy +scoreboard objectives add gm4_swings.angular_velocity dummy +scoreboard objectives add gm4_swings.push_torque dummy +scoreboard objectives add gm4_swings.toggle dummy +scoreboard objectives add gm4_swings.min_velocity dummy +scoreboard objectives add gm4_swings.max_velocity dummy +scoreboard objectives add gm4_swings.length dummy +scoreboard objectives add gm4_swings.dummy dummy + +scoreboard objectives add gm4_swings.on_join minecraft.custom:minecraft.leave_game +scoreboard players reset * gm4_swings.on_join +scoreboard players set @a gm4_swings.on_join 0 + +# constants +data merge storage gm4_swings:constants {gravity:0.08, mass:140, player_torque:1.5, damping:0.01, minimum_oscillation:0.3, max_length:9} + +function gm4_swings:tick +function gm4_swings:tick_5s diff --git a/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction new file mode 100644 index 0000000000..97f098276a --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction @@ -0,0 +1,5 @@ +advancement revoke @s only gm4_swings:interactions/hit + +tag @s add gm4_swings.attacker +execute as @n[type=minecraft:interaction,tag=gm4_swings.interaction.hit,nbt={attack:{}},distance=..20] at @s run function gm4_swings:interactions/hit/on_interaction +tag @s remove gm4_swings.attacker \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction new file mode 100644 index 0000000000..e06035e5f7 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction @@ -0,0 +1,7 @@ +execute on target unless entity @s[tag=gm4_swings.attacker] run return fail + +# switch +execute if entity @s[tag=gm4_swings.interaction.break] on vehicle run function gm4_swings:break/main +execute if entity @s[tag=gm4_swings.interaction.seat] on vehicle run function gm4_swings:seat/push/main + +data remove entity @s attack \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction new file mode 100644 index 0000000000..590c2a24fe --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction @@ -0,0 +1,5 @@ +advancement revoke @s only gm4_swings:interactions/interact + +tag @s add gm4_swings.interacter +execute as @n[type=minecraft:interaction,tag=gm4_swings.interaction.hit,nbt={interaction:{}},distance=..20] at @s run function gm4_swings:interactions/interact/on_interaction +tag @s remove gm4_swings.interacter \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction new file mode 100644 index 0000000000..76a5743f51 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction @@ -0,0 +1,6 @@ +execute on target unless entity @s[tag=gm4_swings.interacter] run return fail + +# switch +execute if entity @s[tag=gm4_swings.interaction.seat] on vehicle run function gm4_swings:seat/sit + +data remove entity @s interaction \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction b/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction new file mode 100644 index 0000000000..cf27c6b7e9 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction @@ -0,0 +1,8 @@ +tag @s remove gm4_swings.swing_sitter +execute if data storage gm4_swings:temp {motion:0} run return fail + +# scale velocity +execute store result score $strength gm4_player_motion.api.launch run compute default integer {type:"minecraft:div",left:{type:"minecraft:mul",inputs:[{type:"minecraft:storage",storage:"gm4_swings:temp",path:"motion"},-1]},right:400} + +# chuck em boys +function #gm4_player_motion:launch_looking diff --git a/gm4_swings/data/gm4_swings/function/launch/main.mcfunction b/gm4_swings/data/gm4_swings/function/launch/main.mcfunction new file mode 100644 index 0000000000..666a528a7b --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/launch/main.mcfunction @@ -0,0 +1,2 @@ +execute store result storage gm4_swings:temp motion int 1 run scoreboard players get @s gm4_swings.angular_velocity +execute rotated as @s as @p[tag=gm4_swings.swing_sitter,predicate=!gm4_swings:vehicle] run function gm4_swings:launch/launch diff --git a/gm4_swings/data/gm4_swings/function/on_join.mcfunction b/gm4_swings/data/gm4_swings/function/on_join.mcfunction new file mode 100644 index 0000000000..b6b6703bc9 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/on_join.mcfunction @@ -0,0 +1,9 @@ +scoreboard players set @s gm4_swings.on_join 0 + +# stop sitting, kill seat +tag @s remove gm4_swings.swing_sitter +execute on vehicle if entity @s[type=minecraft:item_display,tag=gm4_swings.swing_seat] run function gm4_swings:seat/kill + +# try to remount +tag @s add gm4_swings.interacter +tag @s remove gm4_swings.interacter \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/check.mcfunction b/gm4_swings/data/gm4_swings/function/place/check.mcfunction new file mode 100644 index 0000000000..54713284e9 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/check.mcfunction @@ -0,0 +1,24 @@ +# if no solid block above, fail +execute unless block ~ ~1 ~ #minecraft:blocks_motion run return run function gm4_swings:place/fail with block ~ ~ ~ + +# if swing already here, fail +execute positioned ~ ~0.5 ~ if entity @n[type=minecraft:item_display,tag=gm4_swings.swing,distance=..1] run return run function gm4_swings:place/fail with block ~ ~ ~ + +execute store result score $max_length gm4_swings.dummy run data get storage gm4_swings:constants max_length +scoreboard players set $length gm4_swings.dummy 0 + +# calculate max possible length +execute positioned ~ ~-1 ~ run function gm4_swings:place/length/loop + +# sooound +playsound minecraft:item.lead.tied block @a ~ ~ ~ 0.5 1.5 +playsound minecraft:block.bamboo_wood.place block @a ~ ~ ~ 1 1 + +# figure out direction and place +execute store result storage gm4_swings:temp length int 1 run scoreboard players get $length gm4_swings.dummy +data modify storage gm4_swings:temp item_model set from block ~ ~ ~ components."minecraft:item_model" +data modify storage gm4_swings:temp custom_data set from block ~ ~ ~ components."minecraft:custom_data" +execute positioned ~ ~0.975 ~ run function gm4_swings:place/place + +# remove head +setblock ~ ~ ~ minecraft:air \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/fail.mcfunction b/gm4_swings/data/gm4_swings/function/place/fail.mcfunction new file mode 100644 index 0000000000..1aed962aed --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/fail.mcfunction @@ -0,0 +1,2 @@ +$loot spawn ~ ~ ~ loot {pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:player_head",modifier:[{type:"minecraft:set_components",components:$(components)},{type:"minecraft:set_components",components:{"minecraft:profile":{texture:"gm4_swings:block/transparent_head"},"!minecraft:equippable":{}}}]}]}]} +setblock ~ ~ ~ minecraft:air \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction b/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction new file mode 100644 index 0000000000..c63c2d4b1b --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction @@ -0,0 +1,5 @@ +execute if block ~ ~ ~ #minecraft:blocks_motion run return fail + +scoreboard players add $length gm4_swings.dummy 1 + +execute if score $length gm4_swings.dummy < $max_length gm4_swings.dummy positioned ~ ~-1 ~ run function gm4_swings:place/length/loop \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/main.mcfunction b/gm4_swings/data/gm4_swings/function/place/main.mcfunction new file mode 100644 index 0000000000..8cfe6571e8 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/main.mcfunction @@ -0,0 +1,8 @@ +advancement revoke @s only gm4_swings:place + +execute store result score $reach gm4_swings.dummy run attribute @s minecraft:block_interaction_range get 2 +scoreboard players set $raycast_distance gm4_swings.dummy 0 + +tag @s add gm4_swings.placer +execute anchored eyes positioned ^ ^ ^ anchored feet run function gm4_swings:place/ray +tag @s remove gm4_swings.placer \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/place.mcfunction b/gm4_swings/data/gm4_swings/function/place/place.mcfunction new file mode 100644 index 0000000000..e7ecfbaa3b --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/place.mcfunction @@ -0,0 +1,18 @@ +execute if block ~ ~ ~ minecraft:player_head[rotation=0] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=1] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=2] rotated 45 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=3] rotated 90 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=4] rotated 90 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=5] rotated 90 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=6] rotated 135 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=7] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=8] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=9] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=10] rotated 45 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=11] rotated 90 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=12] rotated 90 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=13] rotated 90 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=14] rotated 135 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute if block ~ ~ ~ minecraft:player_head[rotation=15] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp + +execute if block ~ ~ ~ minecraft:player_wall_head summon minecraft:item_display run function gm4_swings:place/wall_head/main \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/ray.mcfunction b/gm4_swings/data/gm4_swings/function/place/ray.mcfunction new file mode 100644 index 0000000000..fc861da059 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/ray.mcfunction @@ -0,0 +1,11 @@ +execute if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check +execute positioned ~ ~1 ~ if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check +execute positioned ~ ~-1 ~ if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check +execute positioned ~1 ~ ~ if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check +execute positioned ~-1 ~ ~ if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check +execute positioned ~ ~ ~1 if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check +execute positioned ~ ~ ~-1 if block ~ ~ ~ #gm4_swings:player_heads if data block ~ ~ ~ components."minecraft:custom_data".gm4_swings align xyz positioned ~0.5 ~ ~0.5 run return run function gm4_swings:place/check + +scoreboard players add $raycast_distance gm4_swings.dummy 1 + +execute if score $raycast_distance gm4_swings.dummy < $reach gm4_swings.dummy positioned ^ ^ ^0.5 run function gm4_swings:place/ray \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction b/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction new file mode 100644 index 0000000000..0d489f1fd3 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction @@ -0,0 +1,9 @@ +rotate @s facing entity @p[tag=gm4_swings.placer,distance=..20] +execute rotated as @s if entity @s[y_rotation=-22.5..22.5] rotated 0 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=22.5..67.5] rotated 45 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=67.5..112.5] rotated 90 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=112.5..157.5] rotated 135 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=157.5..-157.5] rotated 180 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=-157.5..-112.5] rotated 45 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=-112.5..-67.5] rotated 90 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp +execute rotated as @s if entity @s[y_rotation=-67.5..-22.5] rotated 135 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction b/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction new file mode 100644 index 0000000000..3fa0d5c825 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction @@ -0,0 +1,2 @@ +execute store result storage gm4_swings:data player_torque double 0.000001 run scoreboard players get @s gm4_swings.push_torque +scoreboard players reset @s gm4_swings.push_torque \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/create.mcfunction b/gm4_swings/data/gm4_swings/function/seat/create.mcfunction new file mode 100644 index 0000000000..294c80af90 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/create.mcfunction @@ -0,0 +1,8 @@ +# create seat +$summon minecraft:item_display ~ ~ ~ {Rotation:[$(rotation),0],teleport_duration:2,interpolation_duration:2,Tags:["gm4_swings.swing_seat"],Passengers: \ + [ \ + {id:"minecraft:interaction", Tags:["gm4_swings.interaction.interact","gm4_swings.interaction.hit","gm4_swings.interaction.seat"], height:0.8, width:1, response:true}, \ + {id:"minecraft:interaction", Tags:["gm4_swings.interaction.interact","gm4_swings.interaction.hit","gm4_swings.interaction.seat"], height:-0.2, width:1, response:true} \ + ] \ +} +scoreboard players operation @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,distance=..0.1] gm4_swings.id = $global gm4_swings.id \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction new file mode 100644 index 0000000000..ddc0a59a10 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction @@ -0,0 +1,8 @@ +execute if predicate gm4_swings:jump run return run ride @s dismount + +scoreboard players set $has_player gm4_swings.dummy 1 + +execute if data storage gm4_swings:temp {seat_rotation:0.0f} run return run function gm4_swings:seat/input/z +execute if data storage gm4_swings:temp {seat_rotation:90.0f} run return run function gm4_swings:seat/input/x +execute if data storage gm4_swings:temp {seat_rotation:45.0f} run return run function gm4_swings:seat/input/zx +execute if data storage gm4_swings:temp {seat_rotation:135.0f} run return run function gm4_swings:seat/input/xz \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction new file mode 100644 index 0000000000..d98c6bf453 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=0..180] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse +execute if entity @s[y_rotation=-180..0] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction new file mode 100644 index 0000000000..368efccea8 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=45..-135] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse +execute if entity @s[y_rotation=-135..45] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction new file mode 100644 index 0000000000..3622f47473 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=90..-90] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal +execute if entity @s[y_rotation=-90..90] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction new file mode 100644 index 0000000000..1564f71c65 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=135..-45] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal +execute if entity @s[y_rotation=-45..135] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction b/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction new file mode 100644 index 0000000000..eada91145a --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction @@ -0,0 +1,2 @@ +execute on passengers if entity @s[type=minecraft:interaction] run kill @s +kill @s \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/move.mcfunction b/gm4_swings/data/gm4_swings/function/seat/move.mcfunction new file mode 100644 index 0000000000..77ebc6579f --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/move.mcfunction @@ -0,0 +1 @@ +$tp @s ^ ^-$(length) ^ \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction new file mode 100644 index 0000000000..afd8d53013 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction @@ -0,0 +1,9 @@ +scoreboard players operation $id gm4_swings.id = @s gm4_swings.id +tag @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] add gm4_swings.ticking_swing + +scoreboard players set $push_torque gm4_swings.dummy 0 +data modify storage gm4_swings:temp seat_rotation set from entity @s Rotation[0] +execute store result storage gm4_swings:data length int 1 run scoreboard players get @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.length +execute as @p[tag=gm4_swings.attacker,distance=..20] run function gm4_swings:seat/push/on_pusher + +scoreboard players operation @s gm4_swings.push_torque = $push_torque gm4_swings.dummy \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction new file mode 100644 index 0000000000..865299e224 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction @@ -0,0 +1,4 @@ +execute if data storage gm4_swings:temp {seat_rotation:0.0f} run return run function gm4_swings:seat/push/z +execute if data storage gm4_swings:temp {seat_rotation:90.0f} run return run function gm4_swings:seat/push/x +execute if data storage gm4_swings:temp {seat_rotation:45.0f} run return run function gm4_swings:seat/push/zx +execute if data storage gm4_swings:temp {seat_rotation:135.0f} run return run function gm4_swings:seat/push/xz \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction new file mode 100644 index 0000000000..827bb1a5a8 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=0..180] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 +execute if entity @s[y_rotation=-180..0] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction new file mode 100644 index 0000000000..19a6a002d7 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=45..-135] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 +execute if entity @s[y_rotation=-135..45] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction new file mode 100644 index 0000000000..8c6dd42a1e --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=90..-90] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 +execute if entity @s[y_rotation=-90..90] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction new file mode 100644 index 0000000000..9d61efd75d --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction @@ -0,0 +1,2 @@ +execute if entity @s[y_rotation=135..-45] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 +execute if entity @s[y_rotation=-45..135] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction new file mode 100644 index 0000000000..6fb6059157 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction @@ -0,0 +1,18 @@ +execute if entity @s[tag=gm4_swings.has_player] run return fail + +# get id +scoreboard players operation $id gm4_swings.id = @s gm4_swings.id + +# add player velocity +data modify storage gm4_swings:data seat_rotation set from entity @s Rotation[0] +data modify storage gm4_swings:data player_motion set from entity @p[tag=gm4_swings.interacter,distance=..10] Motion +execute store result score @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.angular_velocity run compute default float gm4_swings:vector_projection -10000000 + +# mount player +tag @p[tag=gm4_swings.interacter,distance=..10] add gm4_swings.swing_sitter +ride @p[tag=gm4_swings.interacter,distance=..10] dismount +ride @p[tag=gm4_swings.interacter,distance=..10] mount @s +tag @s add gm4_swings.has_player + +# make swing tick +tag @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] add gm4_swings.ticking_swing \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction b/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction new file mode 100644 index 0000000000..113f54be9d --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction @@ -0,0 +1,23 @@ +scoreboard players set $found_seat gm4_swings.dummy 1 + +# check if in block +scoreboard players set $hit_block gm4_swings.dummy 0 +execute if block ^ ^ ^0.25 #minecraft:blocks_motion run scoreboard players set $hit_block gm4_swings.dummy 1 +execute if block ^ ^ ^-0.25 #minecraft:blocks_motion run scoreboard players set $hit_block gm4_swings.dummy 1 + +# store position +data modify storage gm4_swings:data seat_pos set from entity @s Pos + +# store push torque and clear +scoreboard players operation $push_torque gm4_swings.dummy = @s gm4_swings.push_torque +scoreboard players reset @s gm4_swings.push_torque +execute unless score $push_torque gm4_swings.dummy matches 0 store result storage gm4_swings:data player_torque double 0.000001 run return run scoreboard players get $push_torque gm4_swings.dummy + +# check for player +scoreboard players set $has_player gm4_swings.dummy 0 +data modify storage gm4_swings:data player_torque set value 0 +data modify storage gm4_swings:temp seat_rotation set from entity @s Rotation[0] +execute on passengers if entity @s[type=minecraft:player] run return run function gm4_swings:seat/input/main + +# player has dismounted +execute if entity @s[tag=gm4_swings.has_player] if score $has_player gm4_swings.dummy matches 0 run function gm4_swings:swing/no_player \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction b/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction new file mode 100644 index 0000000000..5ccd96f97f --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction @@ -0,0 +1,4 @@ +data merge entity @s {height:-0.5,Tags:["gm4_swings.interaction.hit","gm4_swings.interaction.break"]} +scoreboard players operation @s gm4_swings.id = $global gm4_swings.id + +ride @s mount @n[type=minecraft:item_display,tag=gm4_swings.swing,distance=..0.1] \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction b/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction new file mode 100644 index 0000000000..cde8bc1407 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction @@ -0,0 +1,6 @@ +data modify storage gm4_swings:temp transformation set value [0f,0f,0f,0f,0f,0f,0f,0f,0f,0f,0f,0f,0f,0f,0f,1f] +data modify storage gm4_swings:temp transformation[0] set from storage gm4_swings:data delta.x +data modify storage gm4_swings:temp transformation[8] set from storage gm4_swings:data delta.z + +data modify entity @s transformation set from storage gm4_swings:temp transformation +data modify storage gm4_swings:data dx set from entity @s transformation.scale[0] \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction b/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction new file mode 100644 index 0000000000..13c54175ca --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction @@ -0,0 +1,5 @@ +tag @s add gm4_swings.hit_block + +# invert and damp velocity and set player torque to 0 +data modify storage gm4_swings:data angular_velocity set compute default float {type:"minecraft:mul",inputs:[{type:"minecraft:storage",storage:"gm4_swings:data",path:"angular_velocity"},-0.4]} +data modify storage gm4_swings:data player_torque set value 0 \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction b/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction new file mode 100644 index 0000000000..299482bd27 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction @@ -0,0 +1,9 @@ +# break interaction +execute on passengers run kill @s + +# seat +scoreboard players operation $id gm4_swings.id = @s gm4_swings.id +execute as @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..20] run function gm4_swings:seat/kill + +# display +kill @s \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction b/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction new file mode 100644 index 0000000000..2123e5d797 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction @@ -0,0 +1,5 @@ +tag @s remove gm4_swings.has_player + +# launch +scoreboard players operation $id gm4_swings.id = @s gm4_swings.id +execute as @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] run function gm4_swings:launch/main \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction b/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction new file mode 100644 index 0000000000..913962c913 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction @@ -0,0 +1,3 @@ +scoreboard players set @s gm4_swings.angular_velocity 0 +data modify storage gm4_swings:data new_rotation set value 0 +tag @s remove gm4_swings.ticking_swing \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction b/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction new file mode 100644 index 0000000000..b7e5b74974 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction @@ -0,0 +1,4 @@ +scoreboard players operation $global gm4_swings.id = @s gm4_swings.id + +data modify storage gm4_swings:temp swings.rotation set from entity @s Rotation[0] +execute rotated as @s positioned ^ ^-5.5 ^ run function gm4_swings:seat/create with storage gm4_swings:temp swings \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction b/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction new file mode 100644 index 0000000000..ad3091e6ad --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction @@ -0,0 +1,22 @@ +# add data +$data merge entity @s {teleport_duration:2,interpolation_duration:2,Tags:["gm4_swings.swing"],item:{id:"minecraft:diamond",components:{"minecraft:item_model":"$(item_model)","minecraft:custom_data":$(custom_data),"minecraft:custom_model_data":{floats:[$(length)]}}},transformation:{left_rotation:[0.0f,0.0,0.0f,1.0f],translation:[0.0f,0.0625f,0.0f],right_rotation:[0.0f,0.0f,0.0f,1.0f],scale:[1.0f,1.0f,1.0f]}} + +# rotate +rotate @s ~ ~ + +# assign score +scoreboard players add $global gm4_swings.id 1 +scoreboard players operation @s gm4_swings.id = $global gm4_swings.id + +# create break interaction +execute summon minecraft:interaction run function gm4_swings:swing/break_interaction + +# create seat +data modify storage gm4_swings:temp swings.rotation set from entity @s Rotation[0] +$execute rotated as @s positioned ^ ^-$(length) ^ positioned ^ ^-0.5 ^ run function gm4_swings:seat/create with storage gm4_swings:temp swings + +# set initial velocity +scoreboard players set @s gm4_swings.angular_velocity 0 + +# set length +$scoreboard players set @s gm4_swings.length $(length) \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction b/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction new file mode 100644 index 0000000000..d9ab81a91e --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction @@ -0,0 +1,40 @@ +execute store result storage gm4_swings:data length int 1 run scoreboard players get @s gm4_swings.length + +# get data from seat +scoreboard players set $found_seat gm4_swings.dummy 0 +scoreboard players operation $id gm4_swings.id = @s gm4_swings.id +execute rotated as @s as @e[tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..10,limit=1,type=minecraft:item_display] at @s run function gm4_swings:seat/tick + +# if no seat found, spawn a new one and skip a tick +execute if score $found_seat gm4_swings.dummy matches 0 rotated as @s run return run function gm4_swings:swing/respawn_seat + +# store data +data modify storage gm4_swings:data rotation set from entity @s Rotation[1] +data modify storage gm4_swings:data origin_pos set from entity @s Pos + +execute store result storage gm4_swings:data angular_velocity double 0.000001 run scoreboard players get @s gm4_swings.angular_velocity + +# if not hit a block in this tick, if it was tagged as having hit a block previously, untag +execute if score $hit_block gm4_swings.dummy matches 0 run tag @s[tag=gm4_swings.hit_block] remove gm4_swings.hit_block + +# if hit a block in this tick and is not tagged as having hit a block previously, bounce +execute if score $hit_block gm4_swings.dummy matches 1 if entity @s[tag=!gm4_swings.hit_block] run function gm4_swings:swing/hit_block + +# calculate angular velocity +data modify storage gm4_swings:data angular_velocity set compute default float gm4_swings:pendulum +execute store result score @s gm4_swings.angular_velocity run data get storage gm4_swings:data angular_velocity 1000000 + +# add velocity to angle +data modify storage gm4_swings:data new_rotation set compute default float gm4_swings:add_rotation + +# stop lil oscillations, but dont reset if a player is present +execute if score $has_player gm4_swings.dummy matches 0 if predicate gm4_swings:small_oscillation run function gm4_swings:swing/reset_motion + +# rotation exploit +execute store success entity @s OnGround byte 1 store success score @s gm4_swings.toggle unless score @s gm4_swings.toggle matches 1 + +# store new angle +data modify entity @s Rotation[1] set from storage gm4_swings:data new_rotation + +# move seat +execute rotated as @s positioned ^ ^-0.5 ^ as @e[tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..10,limit=1,type=minecraft:item_display] run function gm4_swings:seat/move with storage gm4_swings:data \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction b/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction new file mode 100644 index 0000000000..2dc98f3225 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction @@ -0,0 +1,6 @@ +execute unless block ~ ~1 ~ #minecraft:blocks_motion run return run function gm4_swings:break/main +execute if block ~ ~ ~ #minecraft:blocks_motion run return run function gm4_swings:break/main + +scoreboard players operation $id gm4_swings.id = @s gm4_swings.id +execute store result score $seat_block gm4_swings.dummy at @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..10] if block ~ ~ ~ #minecraft:blocks_motion +execute if score $seat_block gm4_swings.dummy matches 1 run function gm4_swings:break/main \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/function/tick.mcfunction b/gm4_swings/data/gm4_swings/function/tick.mcfunction new file mode 100644 index 0000000000..3cea41a546 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/tick.mcfunction @@ -0,0 +1,4 @@ +schedule function gm4_swings:tick 1t + +execute as @e[type=minecraft:item_display,tag=gm4_swings.ticking_swing] at @s run function gm4_swings:swing/tick +execute as @a[scores={gm4_swings.on_join=1..}] at @s run function gm4_swings:on_join diff --git a/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction b/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction new file mode 100644 index 0000000000..5a875e3c7e --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction @@ -0,0 +1,3 @@ +schedule function gm4_swings:tick_5s 5s + +execute as @e[type=minecraft:item_display,tag=gm4_swings.swing] at @s run function gm4_swings:swing/tick_5s \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/base.json b/gm4_swings/data/gm4_swings/loot_table/swings/base.json new file mode 100644 index 0000000000..896fbcd195 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/base.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:item", + "name": "minecraft:player_head", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:custom_data": {"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/black.json b/gm4_swings/data/gm4_swings/loot_table/swings/black.json new file mode 100644 index 0000000000..b0a6a8b760 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/black.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.black_swing", "fallback":"Black Swing"}, + "minecraft:item_model": "gm4_swings:black_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"black"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/blue.json b/gm4_swings/data/gm4_swings/loot_table/swings/blue.json new file mode 100644 index 0000000000..9f5577750c --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/blue.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.blue_swing", "fallback":"Blue Swing"}, + "minecraft:item_model": "gm4_swings:blue_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"blue"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/brown.json b/gm4_swings/data/gm4_swings/loot_table/swings/brown.json new file mode 100644 index 0000000000..128fe69ebe --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/brown.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.brown_swing", "fallback":"Brown Swing"}, + "minecraft:item_model": "gm4_swings:brown_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"brown"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json b/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json new file mode 100644 index 0000000000..aba283483e --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.cyan_swing", "fallback":"Cyan Swing"}, + "minecraft:item_model": "gm4_swings:cyan_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"cyan"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/gray.json b/gm4_swings/data/gm4_swings/loot_table/swings/gray.json new file mode 100644 index 0000000000..e148aecd18 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/gray.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.gray_swing", "fallback":"Gray Swing"}, + "minecraft:item_model": "gm4_swings:gray_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"gray"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/green.json b/gm4_swings/data/gm4_swings/loot_table/swings/green.json new file mode 100644 index 0000000000..a87039327e --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/green.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.green_swing", "fallback":"Green Swing"}, + "minecraft:item_model": "gm4_swings:green_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"green"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json b/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json new file mode 100644 index 0000000000..e91cee5d89 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.light_blue_swing", "fallback":"Light Blue Swing"}, + "minecraft:item_model": "gm4_swings:light_blue_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"light_blue"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json b/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json new file mode 100644 index 0000000000..c282d8331c --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.light_gray_swing", "fallback":"Light Gray Swing"}, + "minecraft:item_model": "gm4_swings:light_gray_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"light_gray"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/lime.json b/gm4_swings/data/gm4_swings/loot_table/swings/lime.json new file mode 100644 index 0000000000..9be935cfce --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/lime.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.lime_swing", "fallback":"Lime Swing"}, + "minecraft:item_model": "gm4_swings:lime_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"lime"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json b/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json new file mode 100644 index 0000000000..ade6ee2e83 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.magenta_swing", "fallback":"Magenta Swing"}, + "minecraft:item_model": "gm4_swings:magenta_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"magenta"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/orange.json b/gm4_swings/data/gm4_swings/loot_table/swings/orange.json new file mode 100644 index 0000000000..b7ba0677c5 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/orange.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.orange_swing", "fallback":"Orange Swing"}, + "minecraft:item_model": "gm4_swings:orange_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"orange"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/pink.json b/gm4_swings/data/gm4_swings/loot_table/swings/pink.json new file mode 100644 index 0000000000..691dbf54bd --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/pink.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.pink_swing", "fallback":"Pink Swing"}, + "minecraft:item_model": "gm4_swings:pink_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"pink"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/purple.json b/gm4_swings/data/gm4_swings/loot_table/swings/purple.json new file mode 100644 index 0000000000..acf344a7ce --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/purple.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.purple_swing", "fallback":"Purple Swing"}, + "minecraft:item_model": "gm4_swings:purple_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"purple"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/red.json b/gm4_swings/data/gm4_swings/loot_table/swings/red.json new file mode 100644 index 0000000000..e2d1c4ff02 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/red.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.red_swing", "fallback":"Red Swing"}, + "minecraft:item_model": "gm4_swings:red_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"red"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/white.json b/gm4_swings/data/gm4_swings/loot_table/swings/white.json new file mode 100644 index 0000000000..726485304b --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/white.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.white_swing", "fallback":"white Swing"}, + "minecraft:item_model": "gm4_swings:white_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"white"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json b/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json new file mode 100644 index 0000000000..6495888685 --- /dev/null +++ b/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json @@ -0,0 +1,26 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:loot_table", + "value": "gm4_swings:swings/base", + "modifier": [ + { + "type": "minecraft:set_components", + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.yellow_swing", "fallback":"Yellow Swing"}, + "minecraft:item_model": "gm4_swings:yellow_swing" + } + }, + { + "type": "minecraft:set_custom_data", + "tag": {"gm4_swings":{"type":"yellow"}} + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/predicate/id_match.json b/gm4_swings/data/gm4_swings/predicate/id_match.json new file mode 100644 index 0000000000..f1a7dddf9b --- /dev/null +++ b/gm4_swings/data/gm4_swings/predicate/id_match.json @@ -0,0 +1,24 @@ +{ + "type": "minecraft:entity_scores", + "entity": "this", + "scores": { + "gm4_swings.id": { + "min": { + "type": "minecraft:score", + "target": { + "type": "minecraft:fixed", + "name": "$id" + }, + "score": "gm4_swings.id" + }, + "max": { + "type": "minecraft:score", + "target": { + "type": "minecraft:fixed", + "name": "$id" + }, + "score": "gm4_swings.id" + } + } + } +} diff --git a/gm4_swings/data/gm4_swings/predicate/jump.json b/gm4_swings/data/gm4_swings/predicate/jump.json new file mode 100644 index 0000000000..145a5e57ea --- /dev/null +++ b/gm4_swings/data/gm4_swings/predicate/jump.json @@ -0,0 +1,12 @@ +{ + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "entity_type": "player", + "type_specific/player": { + "input": { + "jump": true + } + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/predicate/small_oscillation.json b/gm4_swings/data/gm4_swings/predicate/small_oscillation.json new file mode 100644 index 0000000000..e9fed39b18 --- /dev/null +++ b/gm4_swings/data/gm4_swings/predicate/small_oscillation.json @@ -0,0 +1,33 @@ +{ + "type": "minecraft:all_of", + "terms": [ + { + "type": "minecraft:float_value_check", + "value": {"type":"storage","storage":"gm4_swings:data","path":"new_rotation"}, + "test": { + "min": { + "type": "minecraft:mul", + "inputs": [ + {"type":"storage","storage":"gm4_swings:constants","path":"minimum_oscillation"}, + -1 + ] + }, + "max": {"type":"storage","storage":"gm4_swings:constants","path":"minimum_oscillation"} + } + }, + { + "type": "minecraft:float_value_check", + "value": {"type":"storage","storage":"gm4_swings:data","path":"angular_velocity"}, + "test": { + "min": { + "type": "minecraft:mul", + "inputs": [ + {"type":"storage","storage":"gm4_swings:constants","path":"minimum_oscillation"}, + -1 + ] + }, + "max": {"type":"storage","storage":"gm4_swings:constants","path":"minimum_oscillation"} + } + } + ] +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/predicate/vehicle.json b/gm4_swings/data/gm4_swings/predicate/vehicle.json new file mode 100644 index 0000000000..317a9af322 --- /dev/null +++ b/gm4_swings/data/gm4_swings/predicate/vehicle.json @@ -0,0 +1,7 @@ +{ + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "vehicle": {} + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/black.json b/gm4_swings/data/gm4_swings/recipe/swings/black.json new file mode 100755 index 0000000000..545eb1b7a6 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/black.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:black_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.black_swing", "fallback":"Black Swing"}, + "minecraft:item_model": "gm4_swings:black_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"black"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/blue.json b/gm4_swings/data/gm4_swings/recipe/swings/blue.json new file mode 100755 index 0000000000..c1ada7ce53 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/blue.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:blue_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.blue_swing", "fallback":"Blue Swing"}, + "minecraft:item_model": "gm4_swings:blue_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"blue"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/brown.json b/gm4_swings/data/gm4_swings/recipe/swings/brown.json new file mode 100755 index 0000000000..8a74c1d2a1 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/brown.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:brown_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.brown_swing", "fallback":"Brown Swing"}, + "minecraft:item_model": "gm4_swings:brown_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"brown"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/cyan.json b/gm4_swings/data/gm4_swings/recipe/swings/cyan.json new file mode 100755 index 0000000000..7ebae7613a --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/cyan.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:cyan_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.cyan_swing", "fallback":"Cyan Swing"}, + "minecraft:item_model": "gm4_swings:cyan_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"cyan"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/gray.json b/gm4_swings/data/gm4_swings/recipe/swings/gray.json new file mode 100755 index 0000000000..1d0e49228f --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/gray.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:gray_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.gray_swing", "fallback":"Gray Swing"}, + "minecraft:item_model": "gm4_swings:gray_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"gray"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/green.json b/gm4_swings/data/gm4_swings/recipe/swings/green.json new file mode 100755 index 0000000000..81089b4e39 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/green.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:green_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.green_swing", "fallback":"Green Swing"}, + "minecraft:item_model": "gm4_swings:green_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"green"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json b/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json new file mode 100755 index 0000000000..18a9a2f101 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:light_blue_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.light_blue_swing", "fallback":"light_blue Swing"}, + "minecraft:item_model": "gm4_swings:light_blue_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"light_blue"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json b/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json new file mode 100755 index 0000000000..add1a8a4e2 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:light_gray_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.light_gray_swing", "fallback":"Light Gray Swing"}, + "minecraft:item_model": "gm4_swings:light_gray_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"light_gray"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/lime.json b/gm4_swings/data/gm4_swings/recipe/swings/lime.json new file mode 100755 index 0000000000..641ee42206 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/lime.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:lime_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.lime_swing", "fallback":"Lime Swing"}, + "minecraft:item_model": "gm4_swings:lime_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"lime"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/magenta.json b/gm4_swings/data/gm4_swings/recipe/swings/magenta.json new file mode 100755 index 0000000000..b61025b57c --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/magenta.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:magenta_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.magenta_swing", "fallback":"Magenta Swing"}, + "minecraft:item_model": "gm4_swings:magenta_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"magenta"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/orange.json b/gm4_swings/data/gm4_swings/recipe/swings/orange.json new file mode 100755 index 0000000000..022fee14a8 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/orange.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:orange_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.orange_swing", "fallback":"Orange Swing"}, + "minecraft:item_model": "gm4_swings:orange_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"orange"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/pink.json b/gm4_swings/data/gm4_swings/recipe/swings/pink.json new file mode 100755 index 0000000000..a4bbdde939 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/pink.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:pink_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.pink_swing", "fallback":"Pink Swing"}, + "minecraft:item_model": "gm4_swings:pink_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"pink"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/purple.json b/gm4_swings/data/gm4_swings/recipe/swings/purple.json new file mode 100755 index 0000000000..2378ea7283 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/purple.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:purple_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.purple_swing", "fallback":"Purple Swing"}, + "minecraft:item_model": "gm4_swings:purple_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"purple"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/red.json b/gm4_swings/data/gm4_swings/recipe/swings/red.json new file mode 100755 index 0000000000..a8d5b4fa16 --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/red.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:red_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.red_swing", "fallback":"Red Swing"}, + "minecraft:item_model": "gm4_swings:red_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"red"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/white.json b/gm4_swings/data/gm4_swings/recipe/swings/white.json new file mode 100755 index 0000000000..3d054b6c6f --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/white.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:white_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.white_swing", "fallback":"White Swing"}, + "minecraft:item_model": "gm4_swings:white_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"white"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/recipe/swings/yellow.json b/gm4_swings/data/gm4_swings/recipe/swings/yellow.json new file mode 100755 index 0000000000..9083cd8d0d --- /dev/null +++ b/gm4_swings/data/gm4_swings/recipe/swings/yellow.json @@ -0,0 +1,26 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "s s", + "s s", + "scs" + ], + "key": { + "s": "minecraft:string", + "c": "minecraft:yellow_cushion" + }, + "result": { + "id": "minecraft:player_head", + "count": 1, + "components": { + "minecraft:item_name": {"translate":"item.gm4_swings.yellow_swing", "fallback":"Yellow Swing"}, + "minecraft:item_model": "gm4_swings:yellow_swing", + "minecraft:custom_data": {"gm4_swings":{"type":"yellow"},"smithed":{"ignore":{"functionality":true,"crafting":true}}}, + "minecraft:profile": {"texture":"gm4_swings:block/transparent_head"}, + "tooltip_display": {"hidden_components":["minecraft:profile"]}, + "minecraft:max_stack_size": 16, + "minecraft:rarity":"common", + "!minecraft:equippable": {} + } + } +} \ No newline at end of file diff --git a/gm4_swings/data/gm4_swings/tags/block/player_heads.json b/gm4_swings/data/gm4_swings/tags/block/player_heads.json new file mode 100644 index 0000000000..06c61961c5 --- /dev/null +++ b/gm4_swings/data/gm4_swings/tags/block/player_heads.json @@ -0,0 +1,4 @@ +{"replace":false,"values":[ + "minecraft:player_head", + "minecraft:player_wall_head" +]} \ No newline at end of file diff --git a/gm4_swings/pack.png b/gm4_swings/pack.png new file mode 100644 index 0000000000000000000000000000000000000000..0e2fb45d0f347df07b62ac0af208c71c88e7c505 GIT binary patch literal 746 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSjKx9jP7LeL$-HD>U|Qno;uumf z=j~lvab1Wue^IU z$5}>;pN}&;7ico5*T-xX3}Jupq<_6y(<+8Je=4WA6+~7YI{WUylmE^~8Go!WpMGie z*U~Qs0=Y%3bU&@#@q#PBYQg0Bi@%iC)z!w&+5TvIgQ{QMx=Gi6zkXi+(I$~G!;g(2 zouL3qi0=~!S(L80_-Wzh(mmJQZ@>9iwIrUgDtu#B|9i>znY-<;$;AKudhz&n4_<{= z?b^2e^?PHU*)q&wJRpgeSjr~wwXyxu=N;jRk-tP2lm}(?pO?{B+VLji{HKW<-pCsj z@430o>K-!|W2%{(kH5a#J7w>LC-)8mU+pFL5{V8PsAjF%|RPk2=6 zHsxQZ!uHnQqua5n-SK7WfsR-+Q|-K))nD&OTTFPfx9S~l%!9bSAOF18ZkUGOYrZ>8 zeF~TDVe0u+&#ZiGcXa&G8sk==DL*Ur0!20YP=h8Wf}t+VKK$hC+WPHrHvT`vR^JqJ zN)xdZf2iFU$N6m1u8)D0Uh9wCV>z_+pLE#M6+8K}cO@D(6<)p9Vt#+4^uda#c?WjM z-Rwz_S=)bK@%)>%0=vDh^%i!UwM}^Z?OE2=>dJzHzM#~l68e+*#rN<1e-8ZG4NSZY Mp00i_>zopr01Hh-DgXcg literal 0 HcmV?d00001 From 165f3fdf9358d15bc847e116d1a2b88ca4e08a3c Mon Sep 17 00:00:00 2001 From: maybejake Date: Thu, 8 Oct 2026 00:43:00 +0100 Subject: [PATCH 4/7] Add recipe unlock to recipe advancements --- .../advancement/recipes/swings/black.json | 14 +++++++++++++- .../advancement/recipes/swings/blue.json | 14 +++++++++++++- .../advancement/recipes/swings/brown.json | 14 +++++++++++++- .../advancement/recipes/swings/cyan.json | 14 +++++++++++++- .../advancement/recipes/swings/gray.json | 14 +++++++++++++- .../advancement/recipes/swings/green.json | 14 +++++++++++++- .../advancement/recipes/swings/light_blue.json | 14 +++++++++++++- .../advancement/recipes/swings/light_gray.json | 14 +++++++++++++- .../advancement/recipes/swings/lime.json | 14 +++++++++++++- .../advancement/recipes/swings/magenta.json | 14 +++++++++++++- .../advancement/recipes/swings/orange.json | 14 +++++++++++++- .../advancement/recipes/swings/pink.json | 14 +++++++++++++- .../advancement/recipes/swings/purple.json | 14 +++++++++++++- .../gm4_swings/advancement/recipes/swings/red.json | 14 +++++++++++++- .../advancement/recipes/swings/white.json | 14 +++++++++++++- .../advancement/recipes/swings/yellow.json | 14 +++++++++++++- .../data/gm4_swings/recipe/swings/black.json | 2 +- 17 files changed, 209 insertions(+), 17 deletions(-) diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json index 6a089eaefe..89e03252c1 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/black" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/black" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json index d78375ca2a..80ee95bdfa 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/blue" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/blue" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json index 9949880758..b121aa2c28 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/brown" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/brown" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json index 811b724c5e..816b5fa040 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/cyan" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/cyan" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json index 8b565e019e..22fe13326f 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/gray" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/gray" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json index 1fd6fb4a97..d57dcf396a 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/green" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/green" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json index 71623aae40..d8dae57ab6 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/light_blue" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/light_blue" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json index 86e5e23caf..4b40e2769c 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/light_gray" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/light_gray" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json index bbf61bcb56..7f655b02dd 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/lime" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/lime" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json index 4726ed696f..89d5c60b19 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/magenta" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/magenta" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json index 4996862262..2dc66b90d5 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/orange" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/orange" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json index c111c67799..a76842caeb 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/pink" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/pink" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json index 4c8c2c3ede..b73a82aab5 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/purple" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/purple" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json index 23afa7544c..80b54afd5b 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/red" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/red" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json index 02055d8915..702acac0fb 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/white" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/white" diff --git a/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json b/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json index f910df5aa2..4bf9afe095 100644 --- a/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json @@ -1,6 +1,12 @@ { "criteria": { - "place": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/yellow" + } + }, + "has materials": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ @@ -11,6 +17,12 @@ } } }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], "rewards": { "recipes": [ "gm4_swings:swings/yellow" diff --git a/gm4_swings/data/gm4_swings/recipe/swings/black.json b/gm4_swings/data/gm4_swings/recipe/swings/black.json index 545eb1b7a6..2caa64301a 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/black.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/black.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} From 22510f913f5571b5dc8617958db9b78a9aa51bab Mon Sep 17 00:00:00 2001 From: maybejake Date: Fri, 9 Oct 2026 15:48:47 +0100 Subject: [PATCH 5/7] Line endings --- .../gm4_swings/advancement/interactions/hit.json | 2 +- .../advancement/interactions/interact.json | 2 +- .../context_float_provider/add_rotation.json | 2 +- .../context_float_provider/angle_damper.json | 2 +- .../gm4_swings/context_float_provider/dx.json | 2 +- .../context_float_provider/pendulum.json | 2 +- .../player_torque/inverse.json | 2 +- .../player_torque/normal.json | 2 +- .../push_torque/inverse.json | 2 +- .../push_torque/normal.json | 2 +- .../context_float_provider/vector_projection.json | 2 +- .../gm4_swings/function/break/item.mcfunction | 2 +- .../gm4_swings/function/break/main.mcfunction | 2 +- .../gm4_swings/function/break/particle.mcfunction | 2 +- .../function/interactions/hit/main.mcfunction | 2 +- .../interactions/hit/on_interaction.mcfunction | 2 +- .../interactions/interact/main.mcfunction | 2 +- .../interact/on_interaction.mcfunction | 2 +- .../data/gm4_swings/function/on_join.mcfunction | 2 +- .../gm4_swings/function/place/check.mcfunction | 2 +- .../gm4_swings/function/place/fail.mcfunction | 2 +- .../function/place/length/loop.mcfunction | 2 +- .../gm4_swings/function/place/main.mcfunction | 2 +- .../gm4_swings/function/place/place.mcfunction | 2 +- .../data/gm4_swings/function/place/ray.mcfunction | 2 +- .../function/place/wall_head/main.mcfunction | 2 +- .../function/seat/apply_push.mcfunction | 2 +- .../gm4_swings/function/seat/create.mcfunction | 2 +- .../function/seat/input/main.mcfunction | 2 +- .../gm4_swings/function/seat/input/x.mcfunction | 2 +- .../gm4_swings/function/seat/input/xz.mcfunction | 2 +- .../gm4_swings/function/seat/input/z.mcfunction | 2 +- .../gm4_swings/function/seat/input/zx.mcfunction | 2 +- .../data/gm4_swings/function/seat/kill.mcfunction | 2 +- .../data/gm4_swings/function/seat/move.mcfunction | 2 +- .../gm4_swings/function/seat/push/main.mcfunction | 2 +- .../function/seat/push/on_pusher.mcfunction | 2 +- .../gm4_swings/function/seat/push/x.mcfunction | 2 +- .../gm4_swings/function/seat/push/xz.mcfunction | 2 +- .../gm4_swings/function/seat/push/z.mcfunction | 2 +- .../gm4_swings/function/seat/push/zx.mcfunction | 2 +- .../data/gm4_swings/function/seat/sit.mcfunction | 2 +- .../data/gm4_swings/function/seat/tick.mcfunction | 2 +- .../function/swing/break_interaction.mcfunction | 2 +- .../function/swing/calculate_distance.mcfunction | 2 +- .../function/swing/hit_block.mcfunction | 2 +- .../gm4_swings/function/swing/kill.mcfunction | 2 +- .../function/swing/no_player.mcfunction | 2 +- .../function/swing/reset_motion.mcfunction | 2 +- .../function/swing/respawn_seat.mcfunction | 2 +- .../gm4_swings/function/swing/setup.mcfunction | 2 +- .../gm4_swings/function/swing/tick.mcfunction | 2 +- .../gm4_swings/function/swing/tick_5s.mcfunction | 2 +- .../data/gm4_swings/function/tick_5s.mcfunction | 2 +- .../data/gm4_swings/loot_table/swings/base.json | 2 +- .../data/gm4_swings/loot_table/swings/black.json | 2 +- .../data/gm4_swings/loot_table/swings/blue.json | 2 +- .../data/gm4_swings/loot_table/swings/brown.json | 2 +- .../data/gm4_swings/loot_table/swings/cyan.json | 2 +- .../data/gm4_swings/loot_table/swings/gray.json | 2 +- .../data/gm4_swings/loot_table/swings/green.json | 2 +- .../gm4_swings/loot_table/swings/light_blue.json | 2 +- .../gm4_swings/loot_table/swings/light_gray.json | 2 +- .../data/gm4_swings/loot_table/swings/lime.json | 2 +- .../gm4_swings/loot_table/swings/magenta.json | 2 +- .../data/gm4_swings/loot_table/swings/orange.json | 2 +- .../data/gm4_swings/loot_table/swings/pink.json | 2 +- .../data/gm4_swings/loot_table/swings/purple.json | 2 +- .../data/gm4_swings/loot_table/swings/red.json | 2 +- .../data/gm4_swings/loot_table/swings/white.json | 2 +- .../data/gm4_swings/loot_table/swings/yellow.json | 2 +- gm4_swings/data/gm4_swings/predicate/jump.json | 2 +- .../gm4_swings/predicate/small_oscillation.json | 2 +- gm4_swings/data/gm4_swings/predicate/vehicle.json | 2 +- .../data/gm4_swings/recipe/swings/blue.json | 2 +- .../data/gm4_swings/recipe/swings/brown.json | 2 +- .../data/gm4_swings/recipe/swings/cyan.json | 2 +- .../data/gm4_swings/recipe/swings/gray.json | 2 +- .../data/gm4_swings/recipe/swings/green.json | 2 +- .../data/gm4_swings/recipe/swings/light_blue.json | 2 +- .../data/gm4_swings/recipe/swings/light_gray.json | 2 +- .../data/gm4_swings/recipe/swings/lime.json | 2 +- .../data/gm4_swings/recipe/swings/magenta.json | 2 +- .../data/gm4_swings/recipe/swings/orange.json | 2 +- .../data/gm4_swings/recipe/swings/pink.json | 2 +- .../data/gm4_swings/recipe/swings/purple.json | 2 +- gm4_swings/data/gm4_swings/recipe/swings/red.json | 2 +- .../data/gm4_swings/recipe/swings/white.json | 2 +- .../data/gm4_swings/recipe/swings/yellow.json | 2 +- .../data/gm4_swings/tags/block/player_heads.json | 11 +++++++---- gm4_swings/pack.png | Bin 746 -> 0 bytes 91 files changed, 96 insertions(+), 93 deletions(-) delete mode 100644 gm4_swings/pack.png diff --git a/gm4_swings/data/gm4_swings/advancement/interactions/hit.json b/gm4_swings/data/gm4_swings/advancement/interactions/hit.json index 9cb50eeb29..07697fa7e5 100644 --- a/gm4_swings/data/gm4_swings/advancement/interactions/hit.json +++ b/gm4_swings/data/gm4_swings/advancement/interactions/hit.json @@ -17,4 +17,4 @@ "rewards": { "function": "gm4_swings:interactions/hit/main" } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/advancement/interactions/interact.json b/gm4_swings/data/gm4_swings/advancement/interactions/interact.json index 218b9b7f96..14f85a6d88 100755 --- a/gm4_swings/data/gm4_swings/advancement/interactions/interact.json +++ b/gm4_swings/data/gm4_swings/advancement/interactions/interact.json @@ -17,4 +17,4 @@ "rewards": { "function": "gm4_swings:interactions/interact/main" } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json b/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json index f9c27d9b72..577f5b2740 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/add_rotation.json @@ -16,4 +16,4 @@ }, -90 ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json b/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json index b1a41ca25d..eea504383d 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/angle_damper.json @@ -13,4 +13,4 @@ } }, "right": 10 -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/dx.json b/gm4_swings/data/gm4_swings/context_float_provider/dx.json index be78964973..b143a481e5 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/dx.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/dx.json @@ -12,4 +12,4 @@ "right": {"type":"storage","storage":"gm4_swings:data","path":"seat_pos[2]"} } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json b/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json index 4bbe14aa63..01fbe8a42a 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json @@ -131,4 +131,4 @@ "on_false": 1 } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json index 98b02fd79b..c2be9ca692 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/inverse.json @@ -4,4 +4,4 @@ "gm4_swings:player_torque/normal", -1 ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json index 9bff78c511..d530491c33 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/player_torque/normal.json @@ -48,4 +48,4 @@ } } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json index 9a6368d42b..212250f7b2 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/inverse.json @@ -4,4 +4,4 @@ "gm4_swings:push_torque/normal", -1 ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json index d34543a44f..e494910439 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/push_torque/normal.json @@ -13,4 +13,4 @@ }, 10 ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json b/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json index ada82462cc..954ec7b4de 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json @@ -50,4 +50,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/function/break/item.mcfunction b/gm4_swings/data/gm4_swings/function/break/item.mcfunction index 1a2f92521b..a804ee3265 100644 --- a/gm4_swings/data/gm4_swings/function/break/item.mcfunction +++ b/gm4_swings/data/gm4_swings/function/break/item.mcfunction @@ -1 +1 @@ -$execute align xyz run loot spawn ~0.5 ~0.5 ~0.5 loot gm4_swings:swings/$(type) \ No newline at end of file +$execute align xyz run loot spawn ~0.5 ~0.5 ~0.5 loot gm4_swings:swings/$(type) diff --git a/gm4_swings/data/gm4_swings/function/break/main.mcfunction b/gm4_swings/data/gm4_swings/function/break/main.mcfunction index df1bbdddf9..697cb3ac7a 100644 --- a/gm4_swings/data/gm4_swings/function/break/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/break/main.mcfunction @@ -11,4 +11,4 @@ data modify storage gm4_swings:temp type set from entity @s item.components."min function gm4_swings:break/item with storage gm4_swings:temp # kill the swing -function gm4_swings:swing/kill \ No newline at end of file +function gm4_swings:swing/kill diff --git a/gm4_swings/data/gm4_swings/function/break/particle.mcfunction b/gm4_swings/data/gm4_swings/function/break/particle.mcfunction index 02d27aa1ce..70ccc5ebe5 100644 --- a/gm4_swings/data/gm4_swings/function/break/particle.mcfunction +++ b/gm4_swings/data/gm4_swings/function/break/particle.mcfunction @@ -1 +1 @@ -$execute align xyz run particle minecraft:item{item:{id:"minecraft:diamond","components":{"minecraft:item_model":"$(item_model)"}}} ~0.5 ~0.8 ~0.5 0.3 0.2 0.3 0.1 10 \ No newline at end of file +$execute align xyz run particle minecraft:item{item:{id:"minecraft:diamond","components":{"minecraft:item_model":"$(item_model)"}}} ~0.5 ~0.8 ~0.5 0.3 0.2 0.3 0.1 10 diff --git a/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction index 97f098276a..850423e2ea 100644 --- a/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/interactions/hit/main.mcfunction @@ -2,4 +2,4 @@ advancement revoke @s only gm4_swings:interactions/hit tag @s add gm4_swings.attacker execute as @n[type=minecraft:interaction,tag=gm4_swings.interaction.hit,nbt={attack:{}},distance=..20] at @s run function gm4_swings:interactions/hit/on_interaction -tag @s remove gm4_swings.attacker \ No newline at end of file +tag @s remove gm4_swings.attacker diff --git a/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction index e06035e5f7..55da0fe565 100644 --- a/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction +++ b/gm4_swings/data/gm4_swings/function/interactions/hit/on_interaction.mcfunction @@ -4,4 +4,4 @@ execute on target unless entity @s[tag=gm4_swings.attacker] run return fail execute if entity @s[tag=gm4_swings.interaction.break] on vehicle run function gm4_swings:break/main execute if entity @s[tag=gm4_swings.interaction.seat] on vehicle run function gm4_swings:seat/push/main -data remove entity @s attack \ No newline at end of file +data remove entity @s attack diff --git a/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction index 590c2a24fe..1c4f0c1ab3 100644 --- a/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/interactions/interact/main.mcfunction @@ -2,4 +2,4 @@ advancement revoke @s only gm4_swings:interactions/interact tag @s add gm4_swings.interacter execute as @n[type=minecraft:interaction,tag=gm4_swings.interaction.hit,nbt={interaction:{}},distance=..20] at @s run function gm4_swings:interactions/interact/on_interaction -tag @s remove gm4_swings.interacter \ No newline at end of file +tag @s remove gm4_swings.interacter diff --git a/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction b/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction index 76a5743f51..23870aeac3 100644 --- a/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction +++ b/gm4_swings/data/gm4_swings/function/interactions/interact/on_interaction.mcfunction @@ -3,4 +3,4 @@ execute on target unless entity @s[tag=gm4_swings.interacter] run return fail # switch execute if entity @s[tag=gm4_swings.interaction.seat] on vehicle run function gm4_swings:seat/sit -data remove entity @s interaction \ No newline at end of file +data remove entity @s interaction diff --git a/gm4_swings/data/gm4_swings/function/on_join.mcfunction b/gm4_swings/data/gm4_swings/function/on_join.mcfunction index b6b6703bc9..f7dc8e24c2 100644 --- a/gm4_swings/data/gm4_swings/function/on_join.mcfunction +++ b/gm4_swings/data/gm4_swings/function/on_join.mcfunction @@ -6,4 +6,4 @@ execute on vehicle if entity @s[type=minecraft:item_display,tag=gm4_swings.swing # try to remount tag @s add gm4_swings.interacter -tag @s remove gm4_swings.interacter \ No newline at end of file +tag @s remove gm4_swings.interacter diff --git a/gm4_swings/data/gm4_swings/function/place/check.mcfunction b/gm4_swings/data/gm4_swings/function/place/check.mcfunction index 54713284e9..0ee2497aac 100644 --- a/gm4_swings/data/gm4_swings/function/place/check.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/check.mcfunction @@ -21,4 +21,4 @@ data modify storage gm4_swings:temp custom_data set from block ~ ~ ~ components. execute positioned ~ ~0.975 ~ run function gm4_swings:place/place # remove head -setblock ~ ~ ~ minecraft:air \ No newline at end of file +setblock ~ ~ ~ minecraft:air diff --git a/gm4_swings/data/gm4_swings/function/place/fail.mcfunction b/gm4_swings/data/gm4_swings/function/place/fail.mcfunction index 1aed962aed..6bfdd67701 100644 --- a/gm4_swings/data/gm4_swings/function/place/fail.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/fail.mcfunction @@ -1,2 +1,2 @@ $loot spawn ~ ~ ~ loot {pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:player_head",modifier:[{type:"minecraft:set_components",components:$(components)},{type:"minecraft:set_components",components:{"minecraft:profile":{texture:"gm4_swings:block/transparent_head"},"!minecraft:equippable":{}}}]}]}]} -setblock ~ ~ ~ minecraft:air \ No newline at end of file +setblock ~ ~ ~ minecraft:air diff --git a/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction b/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction index c63c2d4b1b..d4ec950011 100644 --- a/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/length/loop.mcfunction @@ -2,4 +2,4 @@ execute if block ~ ~ ~ #minecraft:blocks_motion run return fail scoreboard players add $length gm4_swings.dummy 1 -execute if score $length gm4_swings.dummy < $max_length gm4_swings.dummy positioned ~ ~-1 ~ run function gm4_swings:place/length/loop \ No newline at end of file +execute if score $length gm4_swings.dummy < $max_length gm4_swings.dummy positioned ~ ~-1 ~ run function gm4_swings:place/length/loop diff --git a/gm4_swings/data/gm4_swings/function/place/main.mcfunction b/gm4_swings/data/gm4_swings/function/place/main.mcfunction index 8cfe6571e8..75e03af8a3 100644 --- a/gm4_swings/data/gm4_swings/function/place/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/main.mcfunction @@ -5,4 +5,4 @@ scoreboard players set $raycast_distance gm4_swings.dummy 0 tag @s add gm4_swings.placer execute anchored eyes positioned ^ ^ ^ anchored feet run function gm4_swings:place/ray -tag @s remove gm4_swings.placer \ No newline at end of file +tag @s remove gm4_swings.placer diff --git a/gm4_swings/data/gm4_swings/function/place/place.mcfunction b/gm4_swings/data/gm4_swings/function/place/place.mcfunction index e7ecfbaa3b..b1da77865d 100644 --- a/gm4_swings/data/gm4_swings/function/place/place.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/place.mcfunction @@ -15,4 +15,4 @@ execute if block ~ ~ ~ minecraft:player_head[rotation=13] rotated 90 0 summon mi execute if block ~ ~ ~ minecraft:player_head[rotation=14] rotated 135 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp execute if block ~ ~ ~ minecraft:player_head[rotation=15] rotated 0 0 summon minecraft:item_display run return run function gm4_swings:swing/setup with storage gm4_swings:temp -execute if block ~ ~ ~ minecraft:player_wall_head summon minecraft:item_display run function gm4_swings:place/wall_head/main \ No newline at end of file +execute if block ~ ~ ~ minecraft:player_wall_head summon minecraft:item_display run function gm4_swings:place/wall_head/main diff --git a/gm4_swings/data/gm4_swings/function/place/ray.mcfunction b/gm4_swings/data/gm4_swings/function/place/ray.mcfunction index fc861da059..6e0570dea6 100644 --- a/gm4_swings/data/gm4_swings/function/place/ray.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/ray.mcfunction @@ -8,4 +8,4 @@ execute positioned ~ ~ ~-1 if block ~ ~ ~ #gm4_swings:player_heads if data block scoreboard players add $raycast_distance gm4_swings.dummy 1 -execute if score $raycast_distance gm4_swings.dummy < $reach gm4_swings.dummy positioned ^ ^ ^0.5 run function gm4_swings:place/ray \ No newline at end of file +execute if score $raycast_distance gm4_swings.dummy < $reach gm4_swings.dummy positioned ^ ^ ^0.5 run function gm4_swings:place/ray diff --git a/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction b/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction index 0d489f1fd3..8665031887 100644 --- a/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/place/wall_head/main.mcfunction @@ -6,4 +6,4 @@ execute rotated as @s if entity @s[y_rotation=112.5..157.5] rotated 135 0 run re execute rotated as @s if entity @s[y_rotation=157.5..-157.5] rotated 180 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp execute rotated as @s if entity @s[y_rotation=-157.5..-112.5] rotated 45 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp execute rotated as @s if entity @s[y_rotation=-112.5..-67.5] rotated 90 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp -execute rotated as @s if entity @s[y_rotation=-67.5..-22.5] rotated 135 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp \ No newline at end of file +execute rotated as @s if entity @s[y_rotation=-67.5..-22.5] rotated 135 0 run return run function gm4_swings:swing/setup with storage gm4_swings:temp diff --git a/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction b/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction index 3fa0d5c825..f9b471c395 100644 --- a/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/apply_push.mcfunction @@ -1,2 +1,2 @@ execute store result storage gm4_swings:data player_torque double 0.000001 run scoreboard players get @s gm4_swings.push_torque -scoreboard players reset @s gm4_swings.push_torque \ No newline at end of file +scoreboard players reset @s gm4_swings.push_torque diff --git a/gm4_swings/data/gm4_swings/function/seat/create.mcfunction b/gm4_swings/data/gm4_swings/function/seat/create.mcfunction index 294c80af90..de61b675e9 100644 --- a/gm4_swings/data/gm4_swings/function/seat/create.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/create.mcfunction @@ -5,4 +5,4 @@ $summon minecraft:item_display ~ ~ ~ {Rotation:[$(rotation),0],teleport_duration {id:"minecraft:interaction", Tags:["gm4_swings.interaction.interact","gm4_swings.interaction.hit","gm4_swings.interaction.seat"], height:-0.2, width:1, response:true} \ ] \ } -scoreboard players operation @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,distance=..0.1] gm4_swings.id = $global gm4_swings.id \ No newline at end of file +scoreboard players operation @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,distance=..0.1] gm4_swings.id = $global gm4_swings.id diff --git a/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction index ddc0a59a10..a5d3b3e131 100644 --- a/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/input/main.mcfunction @@ -5,4 +5,4 @@ scoreboard players set $has_player gm4_swings.dummy 1 execute if data storage gm4_swings:temp {seat_rotation:0.0f} run return run function gm4_swings:seat/input/z execute if data storage gm4_swings:temp {seat_rotation:90.0f} run return run function gm4_swings:seat/input/x execute if data storage gm4_swings:temp {seat_rotation:45.0f} run return run function gm4_swings:seat/input/zx -execute if data storage gm4_swings:temp {seat_rotation:135.0f} run return run function gm4_swings:seat/input/xz \ No newline at end of file +execute if data storage gm4_swings:temp {seat_rotation:135.0f} run return run function gm4_swings:seat/input/xz diff --git a/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction index d98c6bf453..30a1cb81c0 100644 --- a/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/input/x.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=0..180] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse -execute if entity @s[y_rotation=-180..0] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal \ No newline at end of file +execute if entity @s[y_rotation=-180..0] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal diff --git a/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction index 368efccea8..81e6817fb1 100644 --- a/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/input/xz.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=45..-135] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse -execute if entity @s[y_rotation=-135..45] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal \ No newline at end of file +execute if entity @s[y_rotation=-135..45] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal diff --git a/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction index 3622f47473..bc4109db99 100644 --- a/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/input/z.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=90..-90] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal -execute if entity @s[y_rotation=-90..90] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse \ No newline at end of file +execute if entity @s[y_rotation=-90..90] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse diff --git a/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction b/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction index 1564f71c65..b1fbc6a242 100644 --- a/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/input/zx.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=135..-45] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/normal -execute if entity @s[y_rotation=-45..135] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse \ No newline at end of file +execute if entity @s[y_rotation=-45..135] run return run data modify storage gm4_swings:data player_torque set compute entity @s float gm4_swings:player_torque/inverse diff --git a/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction b/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction index eada91145a..cfcb770f91 100644 --- a/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/kill.mcfunction @@ -1,2 +1,2 @@ execute on passengers if entity @s[type=minecraft:interaction] run kill @s -kill @s \ No newline at end of file +kill @s diff --git a/gm4_swings/data/gm4_swings/function/seat/move.mcfunction b/gm4_swings/data/gm4_swings/function/seat/move.mcfunction index 77ebc6579f..3dc45b12dd 100644 --- a/gm4_swings/data/gm4_swings/function/seat/move.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/move.mcfunction @@ -1 +1 @@ -$tp @s ^ ^-$(length) ^ \ No newline at end of file +$tp @s ^ ^-$(length) ^ diff --git a/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction index afd8d53013..151a5e282b 100644 --- a/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/push/main.mcfunction @@ -6,4 +6,4 @@ data modify storage gm4_swings:temp seat_rotation set from entity @s Rotation[0] execute store result storage gm4_swings:data length int 1 run scoreboard players get @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.length execute as @p[tag=gm4_swings.attacker,distance=..20] run function gm4_swings:seat/push/on_pusher -scoreboard players operation @s gm4_swings.push_torque = $push_torque gm4_swings.dummy \ No newline at end of file +scoreboard players operation @s gm4_swings.push_torque = $push_torque gm4_swings.dummy diff --git a/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction index 865299e224..9bc411fb2a 100644 --- a/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/push/on_pusher.mcfunction @@ -1,4 +1,4 @@ execute if data storage gm4_swings:temp {seat_rotation:0.0f} run return run function gm4_swings:seat/push/z execute if data storage gm4_swings:temp {seat_rotation:90.0f} run return run function gm4_swings:seat/push/x execute if data storage gm4_swings:temp {seat_rotation:45.0f} run return run function gm4_swings:seat/push/zx -execute if data storage gm4_swings:temp {seat_rotation:135.0f} run return run function gm4_swings:seat/push/xz \ No newline at end of file +execute if data storage gm4_swings:temp {seat_rotation:135.0f} run return run function gm4_swings:seat/push/xz diff --git a/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction index 827bb1a5a8..077063e265 100644 --- a/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/push/x.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=0..180] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 -execute if entity @s[y_rotation=-180..0] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 \ No newline at end of file +execute if entity @s[y_rotation=-180..0] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 diff --git a/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction index 19a6a002d7..66711a8cdb 100644 --- a/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/push/xz.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=45..-135] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 -execute if entity @s[y_rotation=-135..45] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 \ No newline at end of file +execute if entity @s[y_rotation=-135..45] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 diff --git a/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction index 8c6dd42a1e..4bfc951a0c 100644 --- a/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/push/z.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=90..-90] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 -execute if entity @s[y_rotation=-90..90] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 \ No newline at end of file +execute if entity @s[y_rotation=-90..90] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 diff --git a/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction b/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction index 9d61efd75d..7549a45f4d 100644 --- a/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/push/zx.mcfunction @@ -1,2 +1,2 @@ execute if entity @s[y_rotation=135..-45] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/normal 1000000 -execute if entity @s[y_rotation=-45..135] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 \ No newline at end of file +execute if entity @s[y_rotation=-45..135] store result score $push_torque gm4_swings.dummy run return run compute default float gm4_swings:push_torque/inverse 1000000 diff --git a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction index 6fb6059157..945dc95113 100644 --- a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction @@ -15,4 +15,4 @@ ride @p[tag=gm4_swings.interacter,distance=..10] mount @s tag @s add gm4_swings.has_player # make swing tick -tag @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] add gm4_swings.ticking_swing \ No newline at end of file +tag @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] add gm4_swings.ticking_swing diff --git a/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction b/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction index 113f54be9d..0366873ac3 100644 --- a/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/tick.mcfunction @@ -20,4 +20,4 @@ data modify storage gm4_swings:temp seat_rotation set from entity @s Rotation[0] execute on passengers if entity @s[type=minecraft:player] run return run function gm4_swings:seat/input/main # player has dismounted -execute if entity @s[tag=gm4_swings.has_player] if score $has_player gm4_swings.dummy matches 0 run function gm4_swings:swing/no_player \ No newline at end of file +execute if entity @s[tag=gm4_swings.has_player] if score $has_player gm4_swings.dummy matches 0 run function gm4_swings:swing/no_player diff --git a/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction b/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction index 5ccd96f97f..31dd8de446 100644 --- a/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/break_interaction.mcfunction @@ -1,4 +1,4 @@ data merge entity @s {height:-0.5,Tags:["gm4_swings.interaction.hit","gm4_swings.interaction.break"]} scoreboard players operation @s gm4_swings.id = $global gm4_swings.id -ride @s mount @n[type=minecraft:item_display,tag=gm4_swings.swing,distance=..0.1] \ No newline at end of file +ride @s mount @n[type=minecraft:item_display,tag=gm4_swings.swing,distance=..0.1] diff --git a/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction b/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction index cde8bc1407..190a4ab986 100644 --- a/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/calculate_distance.mcfunction @@ -3,4 +3,4 @@ data modify storage gm4_swings:temp transformation[0] set from storage gm4_swing data modify storage gm4_swings:temp transformation[8] set from storage gm4_swings:data delta.z data modify entity @s transformation set from storage gm4_swings:temp transformation -data modify storage gm4_swings:data dx set from entity @s transformation.scale[0] \ No newline at end of file +data modify storage gm4_swings:data dx set from entity @s transformation.scale[0] diff --git a/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction b/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction index 13c54175ca..df39c8bdf8 100644 --- a/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/hit_block.mcfunction @@ -2,4 +2,4 @@ tag @s add gm4_swings.hit_block # invert and damp velocity and set player torque to 0 data modify storage gm4_swings:data angular_velocity set compute default float {type:"minecraft:mul",inputs:[{type:"minecraft:storage",storage:"gm4_swings:data",path:"angular_velocity"},-0.4]} -data modify storage gm4_swings:data player_torque set value 0 \ No newline at end of file +data modify storage gm4_swings:data player_torque set value 0 diff --git a/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction b/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction index 299482bd27..f39069d7a4 100644 --- a/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/kill.mcfunction @@ -6,4 +6,4 @@ scoreboard players operation $id gm4_swings.id = @s gm4_swings.id execute as @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..20] run function gm4_swings:seat/kill # display -kill @s \ No newline at end of file +kill @s diff --git a/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction b/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction index 2123e5d797..90ff542cae 100644 --- a/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/no_player.mcfunction @@ -2,4 +2,4 @@ tag @s remove gm4_swings.has_player # launch scoreboard players operation $id gm4_swings.id = @s gm4_swings.id -execute as @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] run function gm4_swings:launch/main \ No newline at end of file +execute as @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] run function gm4_swings:launch/main diff --git a/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction b/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction index 913962c913..447124a0e2 100644 --- a/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/reset_motion.mcfunction @@ -1,3 +1,3 @@ scoreboard players set @s gm4_swings.angular_velocity 0 data modify storage gm4_swings:data new_rotation set value 0 -tag @s remove gm4_swings.ticking_swing \ No newline at end of file +tag @s remove gm4_swings.ticking_swing diff --git a/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction b/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction index b7e5b74974..1cee0a76c4 100644 --- a/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/respawn_seat.mcfunction @@ -1,4 +1,4 @@ scoreboard players operation $global gm4_swings.id = @s gm4_swings.id data modify storage gm4_swings:temp swings.rotation set from entity @s Rotation[0] -execute rotated as @s positioned ^ ^-5.5 ^ run function gm4_swings:seat/create with storage gm4_swings:temp swings \ No newline at end of file +execute rotated as @s positioned ^ ^-5.5 ^ run function gm4_swings:seat/create with storage gm4_swings:temp swings diff --git a/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction b/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction index ad3091e6ad..f5876efdd4 100644 --- a/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/setup.mcfunction @@ -19,4 +19,4 @@ $execute rotated as @s positioned ^ ^-$(length) ^ positioned ^ ^-0.5 ^ run funct scoreboard players set @s gm4_swings.angular_velocity 0 # set length -$scoreboard players set @s gm4_swings.length $(length) \ No newline at end of file +$scoreboard players set @s gm4_swings.length $(length) diff --git a/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction b/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction index d9ab81a91e..62aa91413a 100644 --- a/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/tick.mcfunction @@ -37,4 +37,4 @@ execute store success entity @s OnGround byte 1 store success score @s gm4_swing data modify entity @s Rotation[1] set from storage gm4_swings:data new_rotation # move seat -execute rotated as @s positioned ^ ^-0.5 ^ as @e[tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..10,limit=1,type=minecraft:item_display] run function gm4_swings:seat/move with storage gm4_swings:data \ No newline at end of file +execute rotated as @s positioned ^ ^-0.5 ^ as @e[tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..10,limit=1,type=minecraft:item_display] run function gm4_swings:seat/move with storage gm4_swings:data diff --git a/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction b/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction index 2dc98f3225..9ff1d668a4 100644 --- a/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction +++ b/gm4_swings/data/gm4_swings/function/swing/tick_5s.mcfunction @@ -3,4 +3,4 @@ execute if block ~ ~ ~ #minecraft:blocks_motion run return run function gm4_swin scoreboard players operation $id gm4_swings.id = @s gm4_swings.id execute store result score $seat_block gm4_swings.dummy at @n[type=minecraft:item_display,tag=gm4_swings.swing_seat,predicate=gm4_swings:id_match,distance=..10] if block ~ ~ ~ #minecraft:blocks_motion -execute if score $seat_block gm4_swings.dummy matches 1 run function gm4_swings:break/main \ No newline at end of file +execute if score $seat_block gm4_swings.dummy matches 1 run function gm4_swings:break/main diff --git a/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction b/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction index 5a875e3c7e..9521a15a7e 100644 --- a/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction +++ b/gm4_swings/data/gm4_swings/function/tick_5s.mcfunction @@ -1,3 +1,3 @@ schedule function gm4_swings:tick_5s 5s -execute as @e[type=minecraft:item_display,tag=gm4_swings.swing] at @s run function gm4_swings:swing/tick_5s \ No newline at end of file +execute as @e[type=minecraft:item_display,tag=gm4_swings.swing] at @s run function gm4_swings:swing/tick_5s diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/base.json b/gm4_swings/data/gm4_swings/loot_table/swings/base.json index 896fbcd195..530249edbf 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/base.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/base.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/black.json b/gm4_swings/data/gm4_swings/loot_table/swings/black.json index b0a6a8b760..98dfb00d5e 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/black.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/black.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/blue.json b/gm4_swings/data/gm4_swings/loot_table/swings/blue.json index 9f5577750c..8277d57be6 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/blue.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/blue.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/brown.json b/gm4_swings/data/gm4_swings/loot_table/swings/brown.json index 128fe69ebe..e0c3f8c80e 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/brown.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/brown.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json b/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json index aba283483e..329384a2c7 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/cyan.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/gray.json b/gm4_swings/data/gm4_swings/loot_table/swings/gray.json index e148aecd18..38366005e8 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/gray.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/gray.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/green.json b/gm4_swings/data/gm4_swings/loot_table/swings/green.json index a87039327e..88be76c855 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/green.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/green.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json b/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json index e91cee5d89..5dd2979122 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/light_blue.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json b/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json index c282d8331c..a95c93f560 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/light_gray.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/lime.json b/gm4_swings/data/gm4_swings/loot_table/swings/lime.json index 9be935cfce..3e41b1e630 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/lime.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/lime.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json b/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json index ade6ee2e83..fc672dfeb5 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/magenta.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/orange.json b/gm4_swings/data/gm4_swings/loot_table/swings/orange.json index b7ba0677c5..34382c5445 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/orange.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/orange.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/pink.json b/gm4_swings/data/gm4_swings/loot_table/swings/pink.json index 691dbf54bd..832c000573 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/pink.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/pink.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/purple.json b/gm4_swings/data/gm4_swings/loot_table/swings/purple.json index acf344a7ce..3b8b8e9655 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/purple.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/purple.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/red.json b/gm4_swings/data/gm4_swings/loot_table/swings/red.json index e2d1c4ff02..d8624921ef 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/red.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/red.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/white.json b/gm4_swings/data/gm4_swings/loot_table/swings/white.json index 726485304b..b2ff30a572 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/white.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/white.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json b/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json index 6495888685..aed01db34c 100644 --- a/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json +++ b/gm4_swings/data/gm4_swings/loot_table/swings/yellow.json @@ -23,4 +23,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/predicate/jump.json b/gm4_swings/data/gm4_swings/predicate/jump.json index 145a5e57ea..1e060a32b6 100644 --- a/gm4_swings/data/gm4_swings/predicate/jump.json +++ b/gm4_swings/data/gm4_swings/predicate/jump.json @@ -9,4 +9,4 @@ } } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/predicate/small_oscillation.json b/gm4_swings/data/gm4_swings/predicate/small_oscillation.json index e9fed39b18..3a724e0f21 100644 --- a/gm4_swings/data/gm4_swings/predicate/small_oscillation.json +++ b/gm4_swings/data/gm4_swings/predicate/small_oscillation.json @@ -30,4 +30,4 @@ } } ] -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/predicate/vehicle.json b/gm4_swings/data/gm4_swings/predicate/vehicle.json index 317a9af322..6e499bf1a3 100644 --- a/gm4_swings/data/gm4_swings/predicate/vehicle.json +++ b/gm4_swings/data/gm4_swings/predicate/vehicle.json @@ -4,4 +4,4 @@ "predicate": { "vehicle": {} } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/blue.json b/gm4_swings/data/gm4_swings/recipe/swings/blue.json index c1ada7ce53..b51ca5391d 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/blue.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/blue.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/brown.json b/gm4_swings/data/gm4_swings/recipe/swings/brown.json index 8a74c1d2a1..e754c02116 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/brown.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/brown.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/cyan.json b/gm4_swings/data/gm4_swings/recipe/swings/cyan.json index 7ebae7613a..648930e908 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/cyan.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/cyan.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/gray.json b/gm4_swings/data/gm4_swings/recipe/swings/gray.json index 1d0e49228f..cfd426dff3 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/gray.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/gray.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/green.json b/gm4_swings/data/gm4_swings/recipe/swings/green.json index 81089b4e39..9cb6edeb00 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/green.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/green.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json b/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json index 18a9a2f101..7c2add1747 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/light_blue.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json b/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json index add1a8a4e2..bb450575fb 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/light_gray.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/lime.json b/gm4_swings/data/gm4_swings/recipe/swings/lime.json index 641ee42206..e064f709c2 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/lime.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/lime.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/magenta.json b/gm4_swings/data/gm4_swings/recipe/swings/magenta.json index b61025b57c..953c6e999f 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/magenta.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/magenta.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/orange.json b/gm4_swings/data/gm4_swings/recipe/swings/orange.json index 022fee14a8..64498f4008 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/orange.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/orange.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/pink.json b/gm4_swings/data/gm4_swings/recipe/swings/pink.json index a4bbdde939..0002910500 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/pink.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/pink.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/purple.json b/gm4_swings/data/gm4_swings/recipe/swings/purple.json index 2378ea7283..1dc1fa1c43 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/purple.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/purple.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/red.json b/gm4_swings/data/gm4_swings/recipe/swings/red.json index a8d5b4fa16..788e45ab68 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/red.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/red.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/white.json b/gm4_swings/data/gm4_swings/recipe/swings/white.json index 3d054b6c6f..c8ae71635c 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/white.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/white.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/recipe/swings/yellow.json b/gm4_swings/data/gm4_swings/recipe/swings/yellow.json index 9083cd8d0d..52a8e1fdcf 100755 --- a/gm4_swings/data/gm4_swings/recipe/swings/yellow.json +++ b/gm4_swings/data/gm4_swings/recipe/swings/yellow.json @@ -23,4 +23,4 @@ "!minecraft:equippable": {} } } -} \ No newline at end of file +} diff --git a/gm4_swings/data/gm4_swings/tags/block/player_heads.json b/gm4_swings/data/gm4_swings/tags/block/player_heads.json index 06c61961c5..723271efca 100644 --- a/gm4_swings/data/gm4_swings/tags/block/player_heads.json +++ b/gm4_swings/data/gm4_swings/tags/block/player_heads.json @@ -1,4 +1,7 @@ -{"replace":false,"values":[ - "minecraft:player_head", - "minecraft:player_wall_head" -]} \ No newline at end of file +{ + "replace":false, + "values": [ + "minecraft:player_head", + "minecraft:player_wall_head" + ] +} diff --git a/gm4_swings/pack.png b/gm4_swings/pack.png deleted file mode 100644 index 0e2fb45d0f347df07b62ac0af208c71c88e7c505..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 746 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSjKx9jP7LeL$-HD>U|Qno;uumf z=j~lvab1Wue^IU z$5}>;pN}&;7ico5*T-xX3}Jupq<_6y(<+8Je=4WA6+~7YI{WUylmE^~8Go!WpMGie z*U~Qs0=Y%3bU&@#@q#PBYQg0Bi@%iC)z!w&+5TvIgQ{QMx=Gi6zkXi+(I$~G!;g(2 zouL3qi0=~!S(L80_-Wzh(mmJQZ@>9iwIrUgDtu#B|9i>znY-<;$;AKudhz&n4_<{= z?b^2e^?PHU*)q&wJRpgeSjr~wwXyxu=N;jRk-tP2lm}(?pO?{B+VLji{HKW<-pCsj z@430o>K-!|W2%{(kH5a#J7w>LC-)8mU+pFL5{V8PsAjF%|RPk2=6 zHsxQZ!uHnQqua5n-SK7WfsR-+Q|-K))nD&OTTFPfx9S~l%!9bSAOF18ZkUGOYrZ>8 zeF~TDVe0u+&#ZiGcXa&G8sk==DL*Ur0!20YP=h8Wf}t+VKK$hC+WPHrHvT`vR^JqJ zN)xdZf2iFU$N6m1u8)D0Uh9wCV>z_+pLE#M6+8K}cO@D(6<)p9Vt#+4^uda#c?WjM z-Rwz_S=)bK@%)>%0=vDh^%i!UwM}^Z?OE2=>dJzHzM#~l68e+*#rN<1e-8ZG4NSZY Mp00i_>zopr01Hh-DgXcg From d451392b58dcf3145be3eaa05162cfa6f47e43e3 Mon Sep 17 00:00:00 2001 From: maybejake Date: Fri, 9 Oct 2026 17:16:54 +0100 Subject: [PATCH 6/7] Scale velocity on and off swings properly --- gm4_swings/assets/gm4_swings/lang/en_us.json | 18 ++++++++++++++++++ .../conversions/to_degrees.json | 4 ++++ .../conversions/to_radians.json | 4 ++++ .../context_float_provider/pendulum.json | 2 +- .../vector_projection.json | 4 ++-- .../function/launch/launch.mcfunction | 6 +++--- .../gm4_swings/function/launch/main.mcfunction | 2 +- .../gm4_swings/function/seat/sit.mcfunction | 4 +++- 8 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 gm4_swings/assets/gm4_swings/lang/en_us.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/conversions/to_degrees.json create mode 100644 gm4_swings/data/gm4_swings/context_float_provider/conversions/to_radians.json diff --git a/gm4_swings/assets/gm4_swings/lang/en_us.json b/gm4_swings/assets/gm4_swings/lang/en_us.json new file mode 100644 index 0000000000..2bb99e65ca --- /dev/null +++ b/gm4_swings/assets/gm4_swings/lang/en_us.json @@ -0,0 +1,18 @@ +{ + "item.gm4_swings.black_swing": "Black Swing", + "item.gm4_swings.blue_swing": "Blue Swing", + "item.gm4_swings.brown_swing": "Brown Swing", + "item.gm4_swings.cyan_swing": "Cyan Swing", + "item.gm4_swings.gray_swing": "Gray Swing", + "item.gm4_swings.green_swing": "Green Swing", + "item.gm4_swings.light_blue_swing": "Light Blue Swing", + "item.gm4_swings.light_gray_swing": "Light Gray Swing", + "item.gm4_swings.lime_swing": "Lime Swing", + "item.gm4_swings.magenta_swing": "Magenta Swing", + "item.gm4_swings.orange_swing": "Orange Swing", + "item.gm4_swings.pink_swing": "Pink Swing", + "item.gm4_swings.purple_swing": "Purple Swing", + "item.gm4_swings.red_swing": "Red Swing", + "item.gm4_swings.white_swing": "White Swing", + "item.gm4_swings.yellow_swing": "Yellow Swing" +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/conversions/to_degrees.json b/gm4_swings/data/gm4_swings/context_float_provider/conversions/to_degrees.json new file mode 100644 index 0000000000..b507030e0b --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/conversions/to_degrees.json @@ -0,0 +1,4 @@ +{ + "type": "minecraft:constant", + "value": 57.2957795131 +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/conversions/to_radians.json b/gm4_swings/data/gm4_swings/context_float_provider/conversions/to_radians.json new file mode 100644 index 0000000000..923c8bde6c --- /dev/null +++ b/gm4_swings/data/gm4_swings/context_float_provider/conversions/to_radians.json @@ -0,0 +1,4 @@ +{ + "type": "minecraft:constant", + "value": 0.0174532925199 +} diff --git a/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json b/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json index 01fbe8a42a..2d9841a2bd 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/pendulum.json @@ -68,7 +68,7 @@ ] } }, - 57.2957795131 + "gm4_swings:conversions/to_degrees" ] } ] diff --git a/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json b/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json index 954ec7b4de..74f704f99b 100644 --- a/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json +++ b/gm4_swings/data/gm4_swings/context_float_provider/vector_projection.json @@ -19,7 +19,7 @@ "storage": "gm4_swings:data", "path": "seat_angle" }, - 0.0174532925199 + "gm4_swings:conversions/to_radians" ] } } @@ -43,7 +43,7 @@ "storage": "gm4_swings:data", "path": "seat_angle" }, - 0.0174532925199 + "gm4_swings:conversions/to_radians" ] } } diff --git a/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction b/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction index cf27c6b7e9..bf00c4ea57 100644 --- a/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction +++ b/gm4_swings/data/gm4_swings/function/launch/launch.mcfunction @@ -1,8 +1,8 @@ tag @s remove gm4_swings.swing_sitter -execute if data storage gm4_swings:temp {motion:0} run return fail +execute if data storage gm4_swings:data {angular_velocity:0} run return fail -# scale velocity -execute store result score $strength gm4_player_motion.api.launch run compute default integer {type:"minecraft:div",left:{type:"minecraft:mul",inputs:[{type:"minecraft:storage",storage:"gm4_swings:temp",path:"motion"},-1]},right:400} +# calculate velocity +execute store result score $strength gm4_player_motion.api.launch run compute default float {type:"minecraft:mul",inputs:[{type:"minecraft:storage",storage:"gm4_swings:data",path:"angular_velocity"},{type:"minecraft:storage",storage:"gm4_swings:data",path:"length"},"gm4_swings:conversions/to_radians",-20000]} # chuck em boys function #gm4_player_motion:launch_looking diff --git a/gm4_swings/data/gm4_swings/function/launch/main.mcfunction b/gm4_swings/data/gm4_swings/function/launch/main.mcfunction index 666a528a7b..7fcf82ed00 100644 --- a/gm4_swings/data/gm4_swings/function/launch/main.mcfunction +++ b/gm4_swings/data/gm4_swings/function/launch/main.mcfunction @@ -1,2 +1,2 @@ -execute store result storage gm4_swings:temp motion int 1 run scoreboard players get @s gm4_swings.angular_velocity +execute store result storage gm4_swings:data angular_velocity double 0.000001 run scoreboard players get @s gm4_swings.angular_velocity execute rotated as @s as @p[tag=gm4_swings.swing_sitter,predicate=!gm4_swings:vehicle] run function gm4_swings:launch/launch diff --git a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction index 945dc95113..aece830c7e 100644 --- a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction @@ -6,7 +6,9 @@ scoreboard players operation $id gm4_swings.id = @s gm4_swings.id # add player velocity data modify storage gm4_swings:data seat_rotation set from entity @s Rotation[0] data modify storage gm4_swings:data player_motion set from entity @p[tag=gm4_swings.interacter,distance=..10] Motion -execute store result score @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.angular_velocity run compute default float gm4_swings:vector_projection -10000000 +execute store result storage gm4_swings:data length int 1 run scoreboard players get @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.length +execute store result score $angular_velocity_addition gm4_swings.dummy run compute default float {type:"minecraft:div",left:"gm4_swings:vector_projection",right:{type:"minecraft:storage",storage:"gm4_swings:data",path:"length"}} -20000000 +scoreboard players operation @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.angular_velocity += $angular_velocity_addition gm4_swings.dummy # mount player tag @p[tag=gm4_swings.interacter,distance=..10] add gm4_swings.swing_sitter From 5852e276b63a30dd1474aaee57c7bd51c27d308f Mon Sep 17 00:00:00 2001 From: maybejake Date: Fri, 9 Oct 2026 17:40:44 +0100 Subject: [PATCH 7/7] Convert angle properly --- gm4_swings/data/gm4_swings/function/seat/sit.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction index aece830c7e..499925858d 100644 --- a/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction +++ b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction @@ -7,7 +7,7 @@ scoreboard players operation $id gm4_swings.id = @s gm4_swings.id data modify storage gm4_swings:data seat_rotation set from entity @s Rotation[0] data modify storage gm4_swings:data player_motion set from entity @p[tag=gm4_swings.interacter,distance=..10] Motion execute store result storage gm4_swings:data length int 1 run scoreboard players get @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.length -execute store result score $angular_velocity_addition gm4_swings.dummy run compute default float {type:"minecraft:div",left:"gm4_swings:vector_projection",right:{type:"minecraft:storage",storage:"gm4_swings:data",path:"length"}} -20000000 +execute store result score $angular_velocity_addition gm4_swings.dummy run compute default float {type:"minecraft:div",left:"gm4_swings:vector_projection",right:{type:"minecraft:mul",inputs:[{type:"minecraft:storage",storage:"gm4_swings:data",path:"length"},"gm4_swings:conversions/to_radians"]}} -20000000 scoreboard players operation @n[type=minecraft:item_display,tag=gm4_swings.swing,predicate=gm4_swings:id_match] gm4_swings.angular_velocity += $angular_velocity_addition gm4_swings.dummy # mount player