diff --git a/dist/css/beautify.min.css b/dist/css/beautify.min.css index 6d09dc7..f80d9a0 100644 --- a/dist/css/beautify.min.css +++ b/dist/css/beautify.min.css @@ -1 +1 @@ -pre{outline:1px solid #ccc;padding:5px;margin:5px;}.string{color:green;}.number{color:darkorange;}.boolean{color:blue;}.null{color:magenta;}.key{color:red;} \ No newline at end of file +pre{outline:1px solid #ccc;padding:5px;margin:5px}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}.key{color:red} \ No newline at end of file diff --git a/dist/css/styles.min.css b/dist/css/styles.min.css index 329e4a0..6f0e6d3 100644 --- a/dist/css/styles.min.css +++ b/dist/css/styles.min.css @@ -1 +1 @@ -.form-check-input{clear:left;}.form-switch.form-switch-sm{margin-bottom:.5rem}.form-switch.form-switch-sm .form-check-input{height:1rem;width:calc(1rem + .75rem);border-radius:2rem;}.form-switch.form-switch-md{margin-bottom:1rem}.form-switch.form-switch-md .form-check-input{height:1.5rem;width:calc(2rem + .75rem);border-radius:3rem;}.form-switch.form-switch-lg{margin-bottom:1.5rem}.form-switch.form-switch-lg .form-check-input{height:2rem;width:calc(3rem + .75rem);border-radius:4rem;}.form-switch.form-switch-xl{margin-bottom:2rem}.form-switch.form-switch-xl .form-check-input{height:2.5rem;width:calc(4rem + .75rem);border-radius:5rem;} \ No newline at end of file +.form-check-input{clear:left}.form-switch.form-switch-sm{margin-bottom:.5rem}.form-switch.form-switch-sm .form-check-input{height:1rem;width:calc(1rem + .75rem);border-radius:2rem}.form-switch.form-switch-md{margin-bottom:1rem}.form-switch.form-switch-md .form-check-input{height:1.5rem;width:calc(2rem + .75rem);border-radius:3rem}.form-switch.form-switch-lg{margin-bottom:1.5rem}.form-switch.form-switch-lg .form-check-input{height:2rem;width:calc(3rem + .75rem);border-radius:4rem}.form-switch.form-switch-xl{margin-bottom:2rem}.form-switch.form-switch-xl .form-check-input{height:2.5rem;width:calc(4rem + .75rem);border-radius:5rem} \ No newline at end of file diff --git a/dist/js/beautify.min.js b/dist/js/beautify.min.js index e6882d7..0044f39 100644 --- a/dist/js/beautify.min.js +++ b/dist/js/beautify.min.js @@ -1 +1 @@ -function syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,4)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(e){let t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),''+e+""}))} \ No newline at end of file +function syntaxHighlight(json){if(typeof json!="string"){json=JSON.stringify(json,undefined,4)}json=json.replace(/&/g,"&").replace(//g,">");return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,function(match){let cls="number";if(/^"/.test(match)){if(/:$/.test(match)){cls="key"}else{cls="string"}}else if(/true|false/.test(match)){cls="boolean"}else if(/null/.test(match)){cls="null"}return''+match+""})} \ No newline at end of file diff --git a/dist/js/calculator.js b/dist/js/calculator.js index 0b58127..65fa151 100644 --- a/dist/js/calculator.js +++ b/dist/js/calculator.js @@ -52,7 +52,7 @@ function buildJSON(supportsCMD, item, namespace, models) { 'damaged': 0, 'damage': 0 }, - 'model': namespace + 'item/' + item + 'model': 'item/' + item }; //Insert damaged models @@ -65,7 +65,7 @@ function buildJSON(supportsCMD, item, namespace, models) { 'damaged': 0, 'damage': damage }, - 'model': model + 'model': namespace + model }; } diff --git a/dist/js/calculator.min.js b/dist/js/calculator.min.js index cfc29b4..a523c76 100644 --- a/dist/js/calculator.min.js +++ b/dist/js/calculator.min.js @@ -1 +1 @@ -const itemDamages={leather_helmet:55,leather_chestplate:80,leather_leggings:75,leather_boots:65,netherite_hoe:2031,diamond_axe:1561,diamond_hoe:1561,shears:238};function buildJSON(supportsCMD,item,namespace,models){namespace=namespace==="minecraft"?"":namespace+":";const json={};json["parent"]="item/handheld";json["textures"]={layer0:"item/"+item,layer1:"item/"+item+"_overlay"};json["overrides"]=[];if(supportsCMD){for(let i=0;i