Advertisement
t0biwan

Untitled

Apr 20th, 2025 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.49 KB | None | 0 0
  1. Recipe:
  2.  
  3. {
  4.   "type": "minecraft:crafting_shaped",
  5.   "pattern": [
  6.     "c",
  7.     "r"
  8.   ],
  9.   "key": {
  10.     "c": "minecraft:heavy_core",
  11.     "r": "minecraft:lightning_rod"
  12.   },
  13.   "result": {
  14.     "id": "minecraft:mace",
  15.     "count": 1,
  16.     "components": {
  17.       "minecraft:item_name": "Copper Mace",
  18.       "minecraft:custom_model_data": { "floats": [10] },
  19.       "minecraft:custom_data": {
  20.         "copper_mace_charge": 0
  21.       }
  22.     }
  23.   }
  24. }
  25.  
  26.  
  27. Item Modifier:
  28.  
  29. [
  30.     {
  31.         "function": "minecraft:set_custom_model_data",
  32.         "value": 14
  33.     },
  34.     {
  35.         "function": "minecraft:set_custom_data",
  36.         "tag": "{\"copper_mace_charge\":4}"
  37.     }
  38. ]
  39.  
  40.  
  41. Item:
  42.  
  43. {
  44.     "model": {
  45.       "type": "minecraft:range_dispatch",
  46.       "property": "minecraft:custom_model_data",
  47.       "entries": [
  48.         {
  49.           "threshold": 10,
  50.           "model": {
  51.             "type": "minecraft:model",
  52.             "model": "copper_mace:item/copper_mace"
  53.           }
  54.         },
  55.         {
  56.             "threshold": 11,
  57.             "model": {
  58.               "type": "minecraft:model",
  59.               "model": "copper_mace:item/copper_mace_charged_1"
  60.             }
  61.         },
  62.         {
  63.             "threshold": 12,
  64.             "model": {
  65.               "type": "minecraft:model",
  66.               "model": "copper_mace:item/copper_mace_charged_2"
  67.             }
  68.         },
  69.         {
  70.         "threshold": 13,
  71.         "model": {
  72.             "type": "minecraft:model",
  73.             "model": "copper_mace:item/copper_mace_charged_3"
  74.         }
  75.         },
  76.         {
  77.         "threshold": 14,
  78.         "model": {
  79.             "type": "minecraft:model",
  80.             "model": "copper_mace:item/copper_mace_charged_4"
  81.         }
  82.         }
  83.       ],
  84.       "fallback": {
  85.         "type": "minecraft:model",
  86.         "model": "minecraft:item/mace"
  87.       }
  88.     }
  89. }
  90.  
  91. Item previously:
  92.  
  93. {
  94.   "parent": "minecraft:item/handheld_mace",
  95.   "textures": {
  96.     "layer0": "minecraft:item/mace"
  97.   },
  98.   "overrides": [
  99.     { "predicate": { "custom_model_data": 10 }, "model": "copper_mace:item/copper_mace" },
  100.     { "predicate": { "custom_model_data": 11 }, "model": "copper_mace:item/copper_mace_charged_1" },
  101.     { "predicate": { "custom_model_data": 12 }, "model": "copper_mace:item/copper_mace_charged_2" },
  102.     { "predicate": { "custom_model_data": 13 }, "model": "copper_mace:item/copper_mace_charged_3" },
  103.     { "predicate": { "custom_model_data": 14 }, "model": "copper_mace:item/copper_mace_charged_4" }
  104.   ]
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement