diff --git a/61/assets/minecraft/items/anvil.json b/61/assets/minecraft/items/anvil.json new file mode 100644 index 0000000..d558050 --- /dev/null +++ b/61/assets/minecraft/items/anvil.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:block/anvil" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/anvil/button_simulator_element_settings" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/arrow.json b/61/assets/minecraft/items/arrow.json new file mode 100644 index 0000000..414d9bd --- /dev/null +++ b/61/assets/minecraft/items/arrow.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/arrow" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/arrow/button_back" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/barrier.json b/61/assets/minecraft/items/barrier.json new file mode 100644 index 0000000..2217c51 --- /dev/null +++ b/61/assets/minecraft/items/barrier.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/barrier" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/barrier/button_delete" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/beacon.json b/61/assets/minecraft/items/beacon.json new file mode 100644 index 0000000..d8b35fa --- /dev/null +++ b/61/assets/minecraft/items/beacon.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:block/beacon" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/beacon/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/blaze_rod.json b/61/assets/minecraft/items/blaze_rod.json new file mode 100644 index 0000000..9c1ae12 --- /dev/null +++ b/61/assets/minecraft/items/blaze_rod.json @@ -0,0 +1,33 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "item/blaze_rod" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/blaze_rod/1" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/blaze_rod/2" + } + }, + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/blaze_rod/3" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/bucket.json b/61/assets/minecraft/items/bucket.json new file mode 100644 index 0000000..6eb9577 --- /dev/null +++ b/61/assets/minecraft/items/bucket.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/bucket" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/bucket/schematic_show_private" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/calibrated_sculk_sensor.json b/61/assets/minecraft/items/calibrated_sculk_sensor.json new file mode 100644 index 0000000..46be395 --- /dev/null +++ b/61/assets/minecraft/items/calibrated_sculk_sensor.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:block/calibrated_sculk_sensor_inactive" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/calibrated_sculk_sensor/button_simulator_autostab" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/cauldron.json b/61/assets/minecraft/items/cauldron.json new file mode 100644 index 0000000..81b59cd --- /dev/null +++ b/61/assets/minecraft/items/cauldron.json @@ -0,0 +1,40 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/cauldron" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/cauldron/1" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/cauldron/2" + } + }, + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/cauldron/schematic_sort_type_ascending" + } + }, + { + "threshold": 4, + "model": { + "type": "model", + "model": "item/cauldron/schematic_sort_type_descending" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/chest.json b/61/assets/minecraft/items/chest.json new file mode 100644 index 0000000..e0c63ec --- /dev/null +++ b/61/assets/minecraft/items/chest.json @@ -0,0 +1,52 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "minecraft:select", + "cases": [ + { + "model": { + "type": "minecraft:special", + "base": "minecraft:item/chest", + "model": { + "type": "minecraft:chest", + "texture": "minecraft:christmas" + } + }, + "when": [ + "12-24", + "12-25", + "12-26" + ] + } + ], + "fallback": { + "type": "minecraft:special", + "base": "minecraft:item/chest", + "model": { + "type": "minecraft:chest", + "texture": "minecraft:normal" + } + }, + "pattern": "MM-dd", + "property": "minecraft:local_time" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/chest/button_simulator_make_group" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/chest/schematic_folder" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/clock.json b/61/assets/minecraft/items/clock.json new file mode 100644 index 0000000..0270ad9 --- /dev/null +++ b/61/assets/minecraft/items/clock.json @@ -0,0 +1,957 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "minecraft:select", + "cases": [ + { + "model": { + "type": "minecraft:range_dispatch", + "entries": [ + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_00" + }, + "threshold": 0.0 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_01" + }, + "threshold": 0.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_02" + }, + "threshold": 1.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_03" + }, + "threshold": 2.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_04" + }, + "threshold": 3.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_05" + }, + "threshold": 4.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_06" + }, + "threshold": 5.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_07" + }, + "threshold": 6.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_08" + }, + "threshold": 7.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_09" + }, + "threshold": 8.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_10" + }, + "threshold": 9.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_11" + }, + "threshold": 10.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_12" + }, + "threshold": 11.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_13" + }, + "threshold": 12.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_14" + }, + "threshold": 13.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_15" + }, + "threshold": 14.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_16" + }, + "threshold": 15.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_17" + }, + "threshold": 16.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_18" + }, + "threshold": 17.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_19" + }, + "threshold": 18.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_20" + }, + "threshold": 19.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_21" + }, + "threshold": 20.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_22" + }, + "threshold": 21.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_23" + }, + "threshold": 22.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_24" + }, + "threshold": 23.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_25" + }, + "threshold": 24.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_26" + }, + "threshold": 25.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_27" + }, + "threshold": 26.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_28" + }, + "threshold": 27.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_29" + }, + "threshold": 28.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_30" + }, + "threshold": 29.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_31" + }, + "threshold": 30.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_32" + }, + "threshold": 31.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_33" + }, + "threshold": 32.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_34" + }, + "threshold": 33.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_35" + }, + "threshold": 34.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_36" + }, + "threshold": 35.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_37" + }, + "threshold": 36.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_38" + }, + "threshold": 37.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_39" + }, + "threshold": 38.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_40" + }, + "threshold": 39.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_41" + }, + "threshold": 40.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_42" + }, + "threshold": 41.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_43" + }, + "threshold": 42.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_44" + }, + "threshold": 43.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_45" + }, + "threshold": 44.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_46" + }, + "threshold": 45.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_47" + }, + "threshold": 46.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_48" + }, + "threshold": 47.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_49" + }, + "threshold": 48.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_50" + }, + "threshold": 49.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_51" + }, + "threshold": 50.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_52" + }, + "threshold": 51.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_53" + }, + "threshold": 52.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_54" + }, + "threshold": 53.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_55" + }, + "threshold": 54.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_56" + }, + "threshold": 55.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_57" + }, + "threshold": 56.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_58" + }, + "threshold": 57.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_59" + }, + "threshold": 58.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_60" + }, + "threshold": 59.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_61" + }, + "threshold": 60.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_62" + }, + "threshold": 61.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_63" + }, + "threshold": 62.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_00" + }, + "threshold": 63.5 + } + ], + "property": "minecraft:time", + "scale": 64.0, + "source": "daytime" + }, + "when": "minecraft:overworld" + } + ], + "fallback": { + "type": "minecraft:range_dispatch", + "entries": [ + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_00" + }, + "threshold": 0.0 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_01" + }, + "threshold": 0.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_02" + }, + "threshold": 1.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_03" + }, + "threshold": 2.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_04" + }, + "threshold": 3.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_05" + }, + "threshold": 4.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_06" + }, + "threshold": 5.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_07" + }, + "threshold": 6.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_08" + }, + "threshold": 7.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_09" + }, + "threshold": 8.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_10" + }, + "threshold": 9.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_11" + }, + "threshold": 10.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_12" + }, + "threshold": 11.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_13" + }, + "threshold": 12.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_14" + }, + "threshold": 13.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_15" + }, + "threshold": 14.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_16" + }, + "threshold": 15.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_17" + }, + "threshold": 16.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_18" + }, + "threshold": 17.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_19" + }, + "threshold": 18.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_20" + }, + "threshold": 19.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_21" + }, + "threshold": 20.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_22" + }, + "threshold": 21.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_23" + }, + "threshold": 22.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_24" + }, + "threshold": 23.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_25" + }, + "threshold": 24.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_26" + }, + "threshold": 25.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_27" + }, + "threshold": 26.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_28" + }, + "threshold": 27.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_29" + }, + "threshold": 28.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_30" + }, + "threshold": 29.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_31" + }, + "threshold": 30.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_32" + }, + "threshold": 31.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_33" + }, + "threshold": 32.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_34" + }, + "threshold": 33.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_35" + }, + "threshold": 34.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_36" + }, + "threshold": 35.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_37" + }, + "threshold": 36.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_38" + }, + "threshold": 37.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_39" + }, + "threshold": 38.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_40" + }, + "threshold": 39.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_41" + }, + "threshold": 40.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_42" + }, + "threshold": 41.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_43" + }, + "threshold": 42.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_44" + }, + "threshold": 43.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_45" + }, + "threshold": 44.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_46" + }, + "threshold": 45.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_47" + }, + "threshold": 46.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_48" + }, + "threshold": 47.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_49" + }, + "threshold": 48.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_50" + }, + "threshold": 49.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_51" + }, + "threshold": 50.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_52" + }, + "threshold": 51.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_53" + }, + "threshold": 52.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_54" + }, + "threshold": 53.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_55" + }, + "threshold": 54.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_56" + }, + "threshold": 55.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_57" + }, + "threshold": 56.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_58" + }, + "threshold": 57.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_59" + }, + "threshold": 58.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_60" + }, + "threshold": 59.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_61" + }, + "threshold": 60.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_62" + }, + "threshold": 61.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_63" + }, + "threshold": 62.5 + }, + { + "model": { + "type": "minecraft:model", + "model": "minecraft:item/clock_00" + }, + "threshold": 63.5 + } + ], + "property": "minecraft:time", + "scale": 64.0, + "source": "random" + }, + "property": "minecraft:context_dimension" + }, + "entries": [ + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/clock/schematic_sort_time_ascending" + } + }, + { + "threshold": 4, + "model": { + "type": "model", + "model": "item/clock/schematic_sort_time_descending" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/ender_eye.json b/61/assets/minecraft/items/ender_eye.json new file mode 100644 index 0000000..9197d24 --- /dev/null +++ b/61/assets/minecraft/items/ender_eye.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/ender_eye" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/ender_eye/button_simulator_element_enabled" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/ender_pearl.json b/61/assets/minecraft/items/ender_pearl.json new file mode 100644 index 0000000..dac6216 --- /dev/null +++ b/61/assets/minecraft/items/ender_pearl.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/ender_pearl" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/ender_pearl/button_simulator_element_disabled" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/firework_star.json b/61/assets/minecraft/items/firework_star.json new file mode 100644 index 0000000..50a1089 --- /dev/null +++ b/61/assets/minecraft/items/firework_star.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/firework_star" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/firework_star/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/flint_and_steel.json b/61/assets/minecraft/items/flint_and_steel.json new file mode 100644 index 0000000..b4f494b --- /dev/null +++ b/61/assets/minecraft/items/flint_and_steel.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/flint_and_steel" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/flint_and_steel/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/glass.json b/61/assets/minecraft/items/glass.json new file mode 100644 index 0000000..de043d7 --- /dev/null +++ b/61/assets/minecraft/items/glass.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:block/glass" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/glass/schematic_show_public" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/glass_bottle.json b/61/assets/minecraft/items/glass_bottle.json new file mode 100644 index 0000000..e6e735a --- /dev/null +++ b/61/assets/minecraft/items/glass_bottle.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/glass_bottle" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/glass_bottle/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/gray_dye.json b/61/assets/minecraft/items/gray_dye.json new file mode 100644 index 0000000..f9a98bd --- /dev/null +++ b/61/assets/minecraft/items/gray_dye.json @@ -0,0 +1,33 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/gray_dye" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/gray_dye/1" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/gray_dye/2" + } + }, + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/gray_dye/button_simulator_element_blank" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/gunpowder.json b/61/assets/minecraft/items/gunpowder.json new file mode 100644 index 0000000..a76bc34 --- /dev/null +++ b/61/assets/minecraft/items/gunpowder.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/gunpowder" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/gunpowder/button_simulator_tnt_new" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/heavy_weighted_pressure_plate.json b/61/assets/minecraft/items/heavy_weighted_pressure_plate.json new file mode 100644 index 0000000..c517b1e --- /dev/null +++ b/61/assets/minecraft/items/heavy_weighted_pressure_plate.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:block/heavy_weighted_pressure_plate" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/heavy_weighted_pressure_plate/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/lead.json b/61/assets/minecraft/items/lead.json new file mode 100644 index 0000000..f6bbf29 --- /dev/null +++ b/61/assets/minecraft/items/lead.json @@ -0,0 +1,26 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/lead" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/lead/button_simulator_join_group" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/arrow/button_back" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/leather_chestplate.json b/61/assets/minecraft/items/leather_chestplate.json new file mode 100644 index 0000000..4b72fca --- /dev/null +++ b/61/assets/minecraft/items/leather_chestplate.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/leather_chestplate" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/leather_chestplate/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/lime_dye.json b/61/assets/minecraft/items/lime_dye.json new file mode 100644 index 0000000..0d1f224 --- /dev/null +++ b/61/assets/minecraft/items/lime_dye.json @@ -0,0 +1,33 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/lime_dye" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/lime_dye/1" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/lime_dye/2" + } + }, + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/lime_dye/button_simulator_element_increase" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/name_tag.json b/61/assets/minecraft/items/name_tag.json new file mode 100644 index 0000000..9625b86 --- /dev/null +++ b/61/assets/minecraft/items/name_tag.json @@ -0,0 +1,33 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/name_tag" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/name_tag/1" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/name_tag/2" + } + }, + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/name_tag/schematic_filter" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/nether_star.json b/61/assets/minecraft/items/nether_star.json new file mode 100644 index 0000000..c318791 --- /dev/null +++ b/61/assets/minecraft/items/nether_star.json @@ -0,0 +1,26 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/nether_star" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/nether_star/1" + } + }, + { + "threshold": 2, + "model": { + "type": "model", + "model": "item/nether_star/2" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/observer.json b/61/assets/minecraft/items/observer.json new file mode 100644 index 0000000..fd54761 --- /dev/null +++ b/61/assets/minecraft/items/observer.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:block/observer" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/observer/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/obsidian.json b/61/assets/minecraft/items/obsidian.json new file mode 100644 index 0000000..20d4c66 --- /dev/null +++ b/61/assets/minecraft/items/obsidian.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/obsidian" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/obsidian/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/paper.json b/61/assets/minecraft/items/paper.json new file mode 100644 index 0000000..cea3b86 --- /dev/null +++ b/61/assets/minecraft/items/paper.json @@ -0,0 +1,33 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/paper" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/paper/1" + } + }, + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/paper/schematic_sort_name_ascending" + } + }, + { + "threshold": 4, + "model": { + "type": "model", + "model": "item/paper/schematic_sort_name_descending" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/quartz.json b/61/assets/minecraft/items/quartz.json new file mode 100644 index 0000000..6562363 --- /dev/null +++ b/61/assets/minecraft/items/quartz.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/quartz" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/quartz/button_simulator_observer_new" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/red_dye.json b/61/assets/minecraft/items/red_dye.json new file mode 100644 index 0000000..ad0c0f3 --- /dev/null +++ b/61/assets/minecraft/items/red_dye.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/red_dye" + }, + "entries": [ + { + "threshold": 3, + "model": { + "type": "model", + "model": "item/red_dye/button_simulator_element_decrease" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/redstone.json b/61/assets/minecraft/items/redstone.json new file mode 100644 index 0000000..ad65daf --- /dev/null +++ b/61/assets/minecraft/items/redstone.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/redstone" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/redstone/button_simulator_redstone_block_new" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/repeater.json b/61/assets/minecraft/items/repeater.json new file mode 100644 index 0000000..6970f1c --- /dev/null +++ b/61/assets/minecraft/items/repeater.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/repeater" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/repeater/button_settings" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/items/stick.json b/61/assets/minecraft/items/stick.json new file mode 100644 index 0000000..b20f642 --- /dev/null +++ b/61/assets/minecraft/items/stick.json @@ -0,0 +1,19 @@ +{ + "model": { + "type": "range_dispatch", + "property": "custom_model_data", + "fallback": { + "type": "model", + "model": "minecraft:item/stick" + }, + "entries": [ + { + "threshold": 1, + "model": { + "type": "model", + "model": "item/stick/1" + } + } + ] + } +} \ No newline at end of file diff --git a/61/assets/minecraft/models/item/anvil.json b/61/assets/minecraft/models/item/anvil.json deleted file mode 100644 index aff1972..0000000 --- a/61/assets/minecraft/models/item/anvil.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "model": { - "type": "", - "property": "custom_model_data", - "fallback": { - "type": "model", - "model": "minecraft:block/anvil" - } - }, - "entries": [ - { - "threshold": 1, - "model": { - "type": "model", - "model": "item/anvil/button_simulator_element_settings" - } - } - ] -} \ No newline at end of file diff --git a/61/build.py b/61/build.py new file mode 100644 index 0000000..fb9cefa --- /dev/null +++ b/61/build.py @@ -0,0 +1,9 @@ +import os + +current_dir = os.getcwd() + +# Removing all old item Model json files, since they are now located in 'assets/minecraft/items' and are a different format! +itemModelsDir = os.path.join(current_dir, "assets/minecraft/models/item") +jsonFiles = [name for name in os.listdir(itemModelsDir) if os.path.isfile(os.path.join(itemModelsDir, name))] +for jsonFile in jsonFiles: + os.remove(os.path.join(itemModelsDir, jsonFile)) diff --git a/build.py b/build.py index bb45d58..57cf741 100644 --- a/build.py +++ b/build.py @@ -4,6 +4,7 @@ import tempfile import hashlib import time import zipfile +import importlib.util current_dir = os.getcwd() @@ -23,6 +24,18 @@ def buildPack(dir, version): current_path = os.path.join(current_dir, str(version)) copyFiles(current_path, dir) + buildScript = os.path.join(dir, "build.py") + if (os.path.isfile(buildScript)): + old_cwd = os.getcwd() + os.chdir(dir) + + spec = importlib.util.spec_from_file_location('dynamic_module', buildScript) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + + os.chdir(old_cwd) + os.remove(buildScript) + zip_folder(dir, current_path + ".zip") # shutil.make_archive(current_path, "zip", dir) current_path = current_path + ".zip"