Update calculator.js

This commit is contained in:
Stijn Bannink 2021-09-01 22:07:16 +02:00 committed by GitHub
parent 24d0c46232
commit dab9c42951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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