Added more items

This commit is contained in:
Stijn Bannink 2024-04-14 19:23:52 +02:00
parent 56c3374b31
commit 6038cb1778
Signed by: SBDeveloper
GPG key ID: B730712F2C3A9D7A
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,9 @@ const itemDamages = {
'leather_chestplate': 80,
'leather_leggings': 75,
'leather_boots': 65,
'netherite_hoe': 2031
'netherite_hoe': 2031,
'diamond_axe': 1561,
'diamond_hoe': 1561,
};
/**

View file

@ -1 +1 @@
const itemDamages={leather_helmet:55,leather_chestplate:80,leather_leggings:75,leather_boots:65,netherite_hoe:2031};function buildJSON(e,t,a,r){a="minecraft"==a?"":a+":";const d={parent:"item/handheld"};if(d.textures={layer0:"item/"+t,layer1:"item/"+t+"_overlay"},d.overrides=[],e)for(let e=0;e<r.length;e++)d.overrides[e+1]={predicate:{custom_model_data:e+1},model:a+"item/"+r[e]};else{d.overrides[0]={predicate:{damaged:0,damage:0},model:a+"item/"+t};for(let e=0;e<r.length;e++){const a=r[e],i=(e+1)/(itemDamages[t]-1);d.overrides[e+1]={predicate:{damaged:0,damage:i},model:a}}d.overrides[r.length+1]={predicate:{damaged:1,damage:0},model:"item/"+t}}return JSON.stringify(d,null,2)}
const itemDamages={leather_helmet:55,leather_chestplate:80,leather_leggings:75,leather_boots:65,netherite_hoe:2031,diamond_axe:1561,diamond_hoe:1561};function buildJSON(e,t,a,d){a="minecraft"==a?"":a+":";const r={parent:"item/handheld"};if(r.textures={layer0:"item/"+t,layer1:"item/"+t+"_overlay"},r.overrides=[],e)for(let e=0;e<d.length;e++)r.overrides[e+1]={predicate:{custom_model_data:e+1},model:a+"item/"+d[e]};else{r.overrides[0]={predicate:{damaged:0,damage:0},model:a+"item/"+t};for(let e=0;e<d.length;e++){const a=d[e],i=(e+1)/(itemDamages[t]-1);r.overrides[e+1]={predicate:{damaged:0,damage:i},model:a}}r.overrides[d.length+1]={predicate:{damaged:1,damage:0},model:"item/"+t}}return JSON.stringify(r,null,2)}