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 //TODO Support more items
const itemDamages = { const itemDamages = {
'leather_boots': 64 'leather_boots': 64,
'netherite_hoe': 2030
}; };
/** /**
@ -26,7 +27,7 @@ function toJSON(item, models) {
//Default values //Default values
json['parent'] = 'item/handheld'; json['parent'] = 'item/handheld';
json['textures'] = { json['textures'] = {
'layer0': 'item/leather_boots' 'layer0': 'item/' . item
}; };
//Insert models //Insert models