Update calculator.js
This commit is contained in:
parent
24d0c46232
commit
dab9c42951
1 changed files with 4 additions and 3 deletions
7
dist/js/calculator.js
vendored
7
dist/js/calculator.js
vendored
|
@ -1,6 +1,7 @@
|
|||
//TODO Support more items
|
||||
const itemDamages = {
|
||||
'leather_boots': 64
|
||||
'leather_boots': 64,
|
||||
'netherite_hoe': 2030
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -26,7 +27,7 @@ function toJSON(item, models) {
|
|||
//Default values
|
||||
json['parent'] = 'item/handheld';
|
||||
json['textures'] = {
|
||||
'layer0': 'item/leather_boots'
|
||||
'layer0': 'item/' . item
|
||||
};
|
||||
|
||||
//Insert models
|
||||
|
@ -55,4 +56,4 @@ function toJSON(item, models) {
|
|||
};
|
||||
|
||||
return JSON.stringify(json, null, 2);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue