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/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/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 0000000000..5e26f40a28 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/black_swing.png differ 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 0000000000..391da4237e Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/blue_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/block/brown_swing.png b/gm4_swings/assets/gm4_swings/textures/block/brown_swing.png new file mode 100644 index 0000000000..722c2a54f9 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/brown_swing.png differ 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 0000000000..9495ef9d1b Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/cyan_swing.png differ 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 0000000000..a5a3179678 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/gray_swing.png differ 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 0000000000..bae948c325 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/green_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/block/light_blue_swing.png b/gm4_swings/assets/gm4_swings/textures/block/light_blue_swing.png new file mode 100644 index 0000000000..317a0a8017 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/light_blue_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/block/light_gray_swing.png b/gm4_swings/assets/gm4_swings/textures/block/light_gray_swing.png new file mode 100644 index 0000000000..8907d63395 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/light_gray_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/block/lime_swing.png b/gm4_swings/assets/gm4_swings/textures/block/lime_swing.png new file mode 100644 index 0000000000..09fa4a3670 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/lime_swing.png differ 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 0000000000..586d32a971 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/magenta_swing.png differ 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 0000000000..c17ba3c62c Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/orange_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/block/pink_swing.png b/gm4_swings/assets/gm4_swings/textures/block/pink_swing.png new file mode 100644 index 0000000000..a266b2bce1 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/pink_swing.png differ 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 0000000000..ea1c2573ef Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/purple_swing.png differ 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 0000000000..1802b9aac0 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/red_swing.png differ 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 0000000000..448c2ab023 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/swing_rope.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/block/transparent_head.png b/gm4_swings/assets/gm4_swings/textures/block/transparent_head.png new file mode 100755 index 0000000000..4d426c352e Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/transparent_head.png differ 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 0000000000..b4f2f0796c Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/white_swing.png differ 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 0000000000..77486c8e1b Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/block/yellow_swing.png differ 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 0000000000..d03d85290e Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/black_swing.png differ 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 0000000000..f5c3930069 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/blue_swing.png differ 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 0000000000..0fa4fba6d2 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/brown_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/item/cyan_swing.png b/gm4_swings/assets/gm4_swings/textures/item/cyan_swing.png new file mode 100644 index 0000000000..a4ad507d8f Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/cyan_swing.png differ 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 0000000000..6af41bbc4f Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/gray_swing.png differ 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 0000000000..f67cf6e1f0 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/green_swing.png differ 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 0000000000..7ca815d395 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/light_blue_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/item/light_gray_swing.png b/gm4_swings/assets/gm4_swings/textures/item/light_gray_swing.png new file mode 100644 index 0000000000..fc76b1de7e Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/light_gray_swing.png differ 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 0000000000..5268122cdc Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/lime_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/item/magenta_swing.png b/gm4_swings/assets/gm4_swings/textures/item/magenta_swing.png new file mode 100644 index 0000000000..9d50fcbd8c Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/magenta_swing.png differ 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 0000000000..7602bbc991 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/orange_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/item/pink_swing.png b/gm4_swings/assets/gm4_swings/textures/item/pink_swing.png new file mode 100644 index 0000000000..f7ca27b529 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/pink_swing.png differ 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 0000000000..e2a4996fef Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/purple_swing.png differ 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 0000000000..175d422480 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/red_swing.png differ diff --git a/gm4_swings/assets/gm4_swings/textures/item/white_swing.png b/gm4_swings/assets/gm4_swings/textures/item/white_swing.png new file mode 100644 index 0000000000..850ec9ecdb Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/white_swing.png differ 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 0000000000..06850ff5b1 Binary files /dev/null and b/gm4_swings/assets/gm4_swings/textures/item/yellow_swing.png differ 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..07697fa7e5 --- /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" + } +} 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..14f85a6d88 --- /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" + } +} 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..89e03252c1 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/black.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/black" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:black_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..80ee95bdfa --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/blue.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/blue" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:blue_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..b121aa2c28 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/brown.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/brown" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:brown_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..816b5fa040 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/cyan.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/cyan" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:cyan_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..22fe13326f --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/gray.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/gray" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:gray_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..d57dcf396a --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/green.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/green" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:green_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..d8dae57ab6 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_blue.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/light_blue" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:light_blue_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..4b40e2769c --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/light_gray.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/light_gray" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:light_gray_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..7f655b02dd --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/lime.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/lime" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:lime_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..89d5c60b19 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/magenta.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/magenta" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:magenta_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..2dc66b90d5 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/orange.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/orange" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:orange_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..a76842caeb --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/pink.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/pink" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:pink_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..b73a82aab5 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/purple.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/purple" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:purple_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..80b54afd5b --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/red.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/red" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:red_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..702acac0fb --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/white.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/white" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:white_cushion" + } + ] + } + } + }, + "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 new file mode 100644 index 0000000000..4bf9afe095 --- /dev/null +++ b/gm4_swings/data/gm4_swings/advancement/recipes/swings/yellow.json @@ -0,0 +1,31 @@ +{ + "criteria": { + "has_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipes": "gm4_swings:swings/yellow" + } + }, + "has materials": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": "minecraft:yellow_cushion" + } + ] + } + } + }, + "requirements": [ + [ + "has_recipe", + "has materials" + ] + ], + "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..577f5b2740 --- /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 + ] +} 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..eea504383d --- /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 +} 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/dx.json b/gm4_swings/data/gm4_swings/context_float_provider/dx.json new file mode 100644 index 0000000000..b143a481e5 --- /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]"} + } + ] +} 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..2d9841a2bd --- /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 + } + ] + } + }, + "gm4_swings:conversions/to_degrees" + ] + } + ] + }, + { + "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 + } + ] +} 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..c2be9ca692 --- /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 + ] +} 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..d530491c33 --- /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 + ] + } + } + ] +} 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..212250f7b2 --- /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 + ] +} 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..e494910439 --- /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 + ] +} 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..74f704f99b --- /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" + }, + "gm4_swings:conversions/to_radians" + ] + } + } + ] + }, + { + "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" + }, + "gm4_swings:conversions/to_radians" + ] + } + } + ] + } + ] +} 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..a804ee3265 --- /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) 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..697cb3ac7a --- /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 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..70ccc5ebe5 --- /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 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..850423e2ea --- /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 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..55da0fe565 --- /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 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..1c4f0c1ab3 --- /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 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..23870aeac3 --- /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 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..bf00c4ea57 --- /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:data {angular_velocity:0} run return fail + +# 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 new file mode 100644 index 0000000000..7fcf82ed00 --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/launch/main.mcfunction @@ -0,0 +1,2 @@ +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/on_join.mcfunction b/gm4_swings/data/gm4_swings/function/on_join.mcfunction new file mode 100644 index 0000000000..f7dc8e24c2 --- /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 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..0ee2497aac --- /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 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..6bfdd67701 --- /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 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..d4ec950011 --- /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 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..75e03af8a3 --- /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 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..b1da77865d --- /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 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..6e0570dea6 --- /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 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..8665031887 --- /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 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..f9b471c395 --- /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 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..de61b675e9 --- /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 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..a5d3b3e131 --- /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 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..30a1cb81c0 --- /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 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..81e6817fb1 --- /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 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..bc4109db99 --- /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 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..b1fbc6a242 --- /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 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..cfcb770f91 --- /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 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..3dc45b12dd --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/move.mcfunction @@ -0,0 +1 @@ +$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 new file mode 100644 index 0000000000..151a5e282b --- /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 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..9bc411fb2a --- /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 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..077063e265 --- /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 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..66711a8cdb --- /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 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..4bfc951a0c --- /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 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..7549a45f4d --- /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 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..499925858d --- /dev/null +++ b/gm4_swings/data/gm4_swings/function/seat/sit.mcfunction @@ -0,0 +1,20 @@ +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 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: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 +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 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..0366873ac3 --- /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 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..31dd8de446 --- /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] 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..190a4ab986 --- /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] 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..df39c8bdf8 --- /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 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..f39069d7a4 --- /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 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..90ff542cae --- /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 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..447124a0e2 --- /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 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..1cee0a76c4 --- /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 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..f5876efdd4 --- /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) 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..62aa91413a --- /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 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..9ff1d668a4 --- /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 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..9521a15a7e --- /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 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..530249edbf --- /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": {} + } + } + ] + } + ] + } + ] +} 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..98dfb00d5e --- /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"}} + } + ] + } + ] + } + ] +} 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..8277d57be6 --- /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"}} + } + ] + } + ] + } + ] +} 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..e0c3f8c80e --- /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"}} + } + ] + } + ] + } + ] +} 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..329384a2c7 --- /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"}} + } + ] + } + ] + } + ] +} 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..38366005e8 --- /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"}} + } + ] + } + ] + } + ] +} 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..88be76c855 --- /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"}} + } + ] + } + ] + } + ] +} 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..5dd2979122 --- /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"}} + } + ] + } + ] + } + ] +} 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..a95c93f560 --- /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"}} + } + ] + } + ] + } + ] +} 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..3e41b1e630 --- /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"}} + } + ] + } + ] + } + ] +} 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..fc672dfeb5 --- /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"}} + } + ] + } + ] + } + ] +} 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..34382c5445 --- /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"}} + } + ] + } + ] + } + ] +} 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..832c000573 --- /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"}} + } + ] + } + ] + } + ] +} 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..3b8b8e9655 --- /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"}} + } + ] + } + ] + } + ] +} 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..d8624921ef --- /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"}} + } + ] + } + ] + } + ] +} 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..b2ff30a572 --- /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"}} + } + ] + } + ] + } + ] +} 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..aed01db34c --- /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"}} + } + ] + } + ] + } + ] +} 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..1e060a32b6 --- /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 + } + } + } +} 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..3a724e0f21 --- /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"} + } + } + ] +} 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..6e499bf1a3 --- /dev/null +++ b/gm4_swings/data/gm4_swings/predicate/vehicle.json @@ -0,0 +1,7 @@ +{ + "type": "minecraft:entity_properties", + "entity": "this", + "predicate": { + "vehicle": {} + } +} 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..2caa64301a --- /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": {} + } + } +} 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..b51ca5391d --- /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": {} + } + } +} 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..e754c02116 --- /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": {} + } + } +} 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..648930e908 --- /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": {} + } + } +} 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..cfd426dff3 --- /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": {} + } + } +} 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..9cb6edeb00 --- /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": {} + } + } +} 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..7c2add1747 --- /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": {} + } + } +} 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..bb450575fb --- /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": {} + } + } +} 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..e064f709c2 --- /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": {} + } + } +} 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..953c6e999f --- /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": {} + } + } +} 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..64498f4008 --- /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": {} + } + } +} 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..0002910500 --- /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": {} + } + } +} 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..1dc1fa1c43 --- /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": {} + } + } +} 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..788e45ab68 --- /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": {} + } + } +} 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..c8ae71635c --- /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": {} + } + } +} 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..52a8e1fdcf --- /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": {} + } + } +} 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..723271efca --- /dev/null +++ b/gm4_swings/data/gm4_swings/tags/block/player_heads.json @@ -0,0 +1,7 @@ +{ + "replace":false, + "values": [ + "minecraft:player_head", + "minecraft:player_wall_head" + ] +}