Merge pull request #3 from stijnb1234/added-netherite-hoe
Added netherite hoe
This commit is contained in:
commit
3810cca9b2
2 changed files with 5 additions and 3 deletions
7
dist/js/calculator.js
vendored
7
dist/js/calculator.js
vendored
|
@ -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
|
||||||
|
@ -55,4 +56,4 @@ function toJSON(item, models) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return JSON.stringify(json, null, 2);
|
return JSON.stringify(json, null, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<select class="form-control" id="item" name="item" required>
|
<select class="form-control" id="item" name="item" required>
|
||||||
<option value="" selected>Select an item...</option>
|
<option value="" selected>Select an item...</option>
|
||||||
<option value="leather_boots">Leather Boots</option>
|
<option value="leather_boots">Leather Boots</option>
|
||||||
|
<option value="netherite_hoe">Netherite Hoe</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div id="formItems" style="display: none;">
|
<div id="formItems" style="display: none;">
|
||||||
|
|
Reference in a new issue