diff --git a/1.18.x.html b/1.18.x.html index 33e5d59..40f4914 100644 --- a/1.18.x.html +++ b/1.18.x.html @@ -4,7 +4,7 @@ Overview | Illusive Soulworks - + diff --git a/1.18.x/category/champions.html b/1.18.x/category/champions.html index 20da210..3a95213 100644 --- a/1.18.x/category/champions.html +++ b/1.18.x/category/champions.html @@ -4,7 +4,7 @@ Champions | Illusive Soulworks - + diff --git a/1.18.x/category/mod-integrations.html b/1.18.x/category/mod-integrations.html index 13985b2..65cb1c4 100644 --- a/1.18.x/category/mod-integrations.html +++ b/1.18.x/category/mod-integrations.html @@ -4,7 +4,7 @@ Mod Integrations | Illusive Soulworks - + diff --git a/1.18.x/champions/commands.html b/1.18.x/champions/commands.html index 78951f8..840817e 100644 --- a/1.18.x/champions/commands.html +++ b/1.18.x/champions/commands.html @@ -4,7 +4,7 @@ Commands | Illusive Soulworks - + diff --git a/1.18.x/champions/integration/gamestages.html b/1.18.x/champions/integration/gamestages.html index fb6fa54..e95d834 100644 --- a/1.18.x/champions/integration/gamestages.html +++ b/1.18.x/champions/integration/gamestages.html @@ -4,7 +4,7 @@ Game Stages | Illusive Soulworks - + diff --git a/1.18.x/champions/integration/scalinghealth.html b/1.18.x/champions/integration/scalinghealth.html index 9ea1cc8..ad517a3 100644 --- a/1.18.x/champions/integration/scalinghealth.html +++ b/1.18.x/champions/integration/scalinghealth.html @@ -4,7 +4,7 @@ Scaling Health | Illusive Soulworks - + diff --git a/1.18.x/champions/loottable.html b/1.18.x/champions/loottable.html index 5bc01b4..9f6e1a7 100644 --- a/1.18.x/champions/loottable.html +++ b/1.18.x/champions/loottable.html @@ -4,7 +4,7 @@ Loot | Illusive Soulworks - + diff --git a/1.18.x/champions/nbt.html b/1.18.x/champions/nbt.html index 5fdaeec..6069fdf 100644 --- a/1.18.x/champions/nbt.html +++ b/1.18.x/champions/nbt.html @@ -4,7 +4,7 @@ NBT Tags | Illusive Soulworks - + diff --git a/404.html b/404.html index 19d0313..a575e5e 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@ Illusive Soulworks - + diff --git a/assets/js/141528fa.80fbeb89.js b/assets/js/141528fa.80fbeb89.js new file mode 100644 index 0000000..f469dce --- /dev/null +++ b/assets/js/141528fa.80fbeb89.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkillusivesoulworks_docs=self.webpackChunkillusivesoulworks_docs||[]).push([[596],{5216:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>n,default:()=>h,frontMatter:()=>r,metadata:()=>d,toc:()=>c});var o=i(5893),s=i(1151);const r={sidebar_position:12},n="Curios Attribute Modifiers (NBT)",d={id:"curios/items/curios-nbt",title:"Curios Attribute Modifiers (NBT)",description:"A tutorial on how to edit a curio item's NBT data to add attribute modifiers when the item is worn in a curio slot.",source:"@site/docs/curios/items/curios-nbt.md",sourceDirName:"curios/items",slug:"/curios/items/curios-nbt",permalink:"/curios/items/curios-nbt",draft:!1,unlisted:!1,editUrl:"https://github.com/illusivesoulworks/docs/edit/main/docs/curios/items/curios-nbt.md",tags:[],version:"current",sidebarPosition:12,frontMatter:{sidebar_position:12},sidebar:"tutorialSidebar",previous:{title:"Rendering a Curio",permalink:"/curios/items/rendering-registry"},next:{title:"Inventory",permalink:"/category/inventory"}},a={},c=[{value:"Overview",id:"overview",level:2},{value:"Syntax",id:"syntax",level:2},{value:"Slot Modifiers",id:"slot-modifiers",level:3}];function l(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{id:"curios-attribute-modifiers-nbt",children:"Curios Attribute Modifiers (NBT)"}),"\n",(0,o.jsx)(t.p,{children:"A tutorial on how to edit a curio item's NBT data to add attribute modifiers when the item is worn in a curio slot."}),"\n",(0,o.jsx)(t.h2,{id:"overview",children:"Overview"}),"\n",(0,o.jsx)(t.hr,{}),"\n",(0,o.jsx)(t.p,{children:"Attribute modifiers used in item NBT for regular equipment slots will not work with curio slots. This is because the\nattribute modifiers are coded to work only in specific slots, and it will not recognize the custom curio slots. In order\nto grant this functionality, Curios adds its own method of adding NBT attribute modifiers in items."}),"\n",(0,o.jsxs)(t.p,{children:["The format for Curios is almost exactly the same as Minecraft, so it is recommended to look through this ",(0,o.jsx)(t.a,{href:"https://minecraft.fandom.com/wiki/Attribute",children:"Attribute Guide"}),"\nfor extended information about attribute names, syntax, and possible fields. This guide will only go over the\ndifferences in Curios."]}),"\n",(0,o.jsx)(t.h2,{id:"syntax",children:"Syntax"}),"\n",(0,o.jsx)(t.hr,{}),"\n",(0,o.jsx)(t.p,{children:"This is the vanilla way of adding an attribute modifier to the chest slot in an item's NBT:"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:'/give @s netherite_chestplate{AttributeModifiers:[{Slot:"chest", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1\n'})}),"\n",(0,o.jsxs)(t.p,{children:["This is the Curios way of achieving the same in the ",(0,o.jsx)(t.code,{children:"body"})," slot:"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:'/give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0}]} 1\n'})}),"\n",(0,o.jsxs)(t.p,{children:["Note that the main differences are the change from ",(0,o.jsx)(t.code,{children:"AttributeModifiers"})," to ",(0,o.jsx)(t.code,{children:"CurioAttributeModifiers"})," and the change in\nthe slot name. The slot name should be the ",(0,o.jsx)(t.code,{children:"identifier"})," of a registered slot type."]}),"\n",(0,o.jsx)(t.h3,{id:"slot-modifiers",children:"Slot Modifiers"}),"\n",(0,o.jsxs)(t.p,{children:["This method can also be used to add slot modifiers, modifiers that can add or remove curio slots. The syntax is the\nsame, the only difference is that the ",(0,o.jsx)(t.code,{children:"AttributeName"})," should be of the format ",(0,o.jsx)(t.code,{children:"curios:identifier"})," with ",(0,o.jsx)(t.code,{children:"identifier"}),"\nbeing the slot identifier that is being added or removed."]}),"\n",(0,o.jsxs)(t.p,{children:["Going back to the previous example, this will make the item add 1 ",(0,o.jsx)(t.code,{children:"back"})," slot when worn in the ",(0,o.jsx)(t.code,{children:"body"})," slot:"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:'/give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"curios:back", Name:"back_modifier", Amount:1.0, Operation:0}]} 1\n'})}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsx)(t.p,{children:"It is recommended that the UUID be left out except for special circumstances. When absent, Curios will give the attribute\nmodifier a UUID based on the slot context which will prevent any stacking issues that could arise when multiple slots\nof the same type exist and the same attribute modifier is applied multiple times."})})]})}function h(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},1151:(e,t,i)=>{i.d(t,{Z:()=>d,a:()=>n});var o=i(7294);const s={},r=o.createContext(s);function n(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:n(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/141528fa.e38fb020.js b/assets/js/141528fa.e38fb020.js deleted file mode 100644 index c2fa983..0000000 --- a/assets/js/141528fa.e38fb020.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkillusivesoulworks_docs=self.webpackChunkillusivesoulworks_docs||[]).push([[596],{5216:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>r,default:()=>l,frontMatter:()=>n,metadata:()=>a,toc:()=>c});var o=i(5893),s=i(1151);const n={sidebar_position:12},r="Curios Attribute Modifiers (NBT)",a={id:"curios/items/curios-nbt",title:"Curios Attribute Modifiers (NBT)",description:"A tutorial on how to edit a curio item's NBT data to add attribute modifiers when the item is worn in a curio slot.",source:"@site/docs/curios/items/curios-nbt.md",sourceDirName:"curios/items",slug:"/curios/items/curios-nbt",permalink:"/curios/items/curios-nbt",draft:!1,unlisted:!1,editUrl:"https://github.com/illusivesoulworks/docs/edit/main/docs/curios/items/curios-nbt.md",tags:[],version:"current",sidebarPosition:12,frontMatter:{sidebar_position:12},sidebar:"tutorialSidebar",previous:{title:"Rendering a Curio",permalink:"/curios/items/rendering-registry"},next:{title:"Inventory",permalink:"/category/inventory"}},d={},c=[{value:"Overview",id:"overview",level:2},{value:"Syntax",id:"syntax",level:2}];function u(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",hr:"hr",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{id:"curios-attribute-modifiers-nbt",children:"Curios Attribute Modifiers (NBT)"}),"\n",(0,o.jsx)(t.p,{children:"A tutorial on how to edit a curio item's NBT data to add attribute modifiers when the item is worn in a curio slot."}),"\n",(0,o.jsx)(t.h2,{id:"overview",children:"Overview"}),"\n",(0,o.jsx)(t.hr,{}),"\n",(0,o.jsx)(t.p,{children:"Attribute modifiers used in item NBT for regular equipment slots will not work with curio slots. This is because the\nattribute modifiers are coded to work only in specific slots, and it will not recognize the custom curio slots. In order\nto grant this functionality, Curios adds its own method of adding NBT attribute modifiers in items."}),"\n",(0,o.jsxs)(t.p,{children:["The format for Curios is almost exactly the same as Minecraft, so it is recommended to look through this ",(0,o.jsx)(t.a,{href:"https://minecraft.fandom.com/wiki/Attribute",children:"Attribute Guide"}),"\nfor extended information about attribute names, syntax, and possible fields. This guide will only go over the\ndifferences in Curios."]}),"\n",(0,o.jsx)(t.h2,{id:"syntax",children:"Syntax"}),"\n",(0,o.jsx)(t.hr,{}),"\n",(0,o.jsx)(t.p,{children:"This is the vanilla way of adding an attribute modifier to the chest slot in an item's NBT:"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:'/give @s netherite_chestplate{AttributeModifiers:[{Slot:"chest", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1\n'})}),"\n",(0,o.jsx)(t.p,{children:"This is the Curios way of achieving the same in the body slot:"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:'/give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0}]} 1\n'})}),"\n",(0,o.jsxs)(t.p,{children:["Note that the main differences are the change from ",(0,o.jsx)(t.code,{children:"AttributeModifiers"})," to ",(0,o.jsx)(t.code,{children:"CurioAttributeModifiers"})," and the change in\nthe slot name. The slot name should be the ",(0,o.jsx)(t.code,{children:"identifier"})," of a registered slot type."]}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsx)(t.p,{children:"It is recommended that the UUID be left out except for special circumstances. When absent, Curios will give the attribute\nmodifier a UUID based on the slot context which will prevent any stacking issues that could arise when multiple slots\nof the same type exist and the same attribute modifier is applied multiple times."})})]})}function l(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},1151:(e,t,i)=>{i.d(t,{Z:()=>a,a:()=>r});var o=i(7294);const s={},n=o.createContext(s);function r(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.827624ad.js b/assets/js/runtime~main.634bc42f.js similarity index 97% rename from assets/js/runtime~main.827624ad.js rename to assets/js/runtime~main.634bc42f.js index 18c0122..01fec17 100644 --- a/assets/js/runtime~main.827624ad.js +++ b/assets/js/runtime~main.634bc42f.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,f,t,r,d={},o={};function c(e){var a=o[e];if(void 0!==a)return a.exports;var f=o[e]={exports:{}};return d[e].call(f.exports,f,f.exports,c),f.exports}c.m=d,e=[],c.O=(a,f,t,r)=>{if(!f){var d=1/0;for(i=0;i=r)&&Object.keys(c.O).every((e=>c.O[e](f[b])))?f.splice(b--,1):(o=!1,r0&&e[i-1][2]>r;i--)e[i]=e[i-1];e[i]=[f,t,r]},c.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return c.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);c.r(r);var d={};a=a||[null,f({}),f([]),f(f)];for(var o=2&t&&e;"object"==typeof o&&!~a.indexOf(o);o=f(o))Object.getOwnPropertyNames(o).forEach((a=>d[a]=()=>e[a]));return d.default=()=>e,c.d(r,d),r},c.d=(e,a)=>{for(var f in a)c.o(a,f)&&!c.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((a,f)=>(c.f[f](e,a),a)),[])),c.u=e=>"assets/js/"+({18:"d943a703",53:"935f2afb",58:"93c91ab0",82:"bfeab3de",83:"f1e13461",107:"a94703ab",131:"09965537",168:"a0145bdd",181:"fa17a3e5",214:"f078da08",270:"4c92833a",334:"247783bb",335:"e380917f",368:"99097929",408:"bd58d19a",420:"e0b249dc",455:"94fad746",456:"20ff6a6d",492:"3a36d978",495:"96cf4fb7",499:"6e5aa4fa",518:"a7bd4aaa",551:"7ffb7c5f",564:"ab811e82",577:"46c0d933",596:"141528fa",602:"f0f42f24",645:"a7434565",661:"5e95c892",664:"99b1d78b",671:"0e384e19",691:"18c10e97",750:"a4f7be8a",755:"85ac19f8",789:"93d27ab8",805:"2e6e5734",817:"14eb3368",821:"e7ff71d3",842:"a54b83c5",882:"036fc41e",904:"d8ef455a",918:"17896441",922:"a61686b6",933:"6c8344a3",977:"71c056c1"}[e]||e)+"."+{18:"e4f3409d",53:"78f3c854",58:"dca9feb8",82:"5bc9b32a",83:"2ea46632",107:"7d1258e4",131:"5f34f1c3",168:"7ddcf081",181:"45788fe5",214:"f2b13b03",270:"3e9f3bb6",334:"899a41db",335:"04410a4d",368:"2c00f282",408:"9c6138f1",420:"e7365bbb",455:"1e903928",456:"4144bac1",492:"8b966a18",495:"325d709e",499:"5ab8692f",518:"84b976bc",551:"a42c9b9a",564:"55384db2",577:"19808eaf",596:"e38fb020",602:"303e72e8",645:"82edb565",661:"477f59fb",664:"43c227b6",671:"1ec97c32",691:"c3608260",750:"8c4ddd02",755:"6d43aa8c",772:"4402a9bd",789:"789c181b",805:"8b970756",817:"0e3ce8ed",821:"61d863ad",842:"48ac735e",882:"f755e690",904:"44ce1a16",918:"c0174be7",922:"3b96c0df",933:"0f7b0e7b",977:"eb08e33a"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},r="illusivesoulworks-docs:",c.l=(e,a,f,d)=>{if(t[e])t[e].push(a);else{var o,b;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i{o.onerror=o.onload=null,clearTimeout(s);var r=t[e];if(delete t[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((e=>e(f))),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),b&&document.head.appendChild(o)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/",c.gca=function(e){return e={17896441:"918",99097929:"368",d943a703:"18","935f2afb":"53","93c91ab0":"58",bfeab3de:"82",f1e13461:"83",a94703ab:"107","09965537":"131",a0145bdd:"168",fa17a3e5:"181",f078da08:"214","4c92833a":"270","247783bb":"334",e380917f:"335",bd58d19a:"408",e0b249dc:"420","94fad746":"455","20ff6a6d":"456","3a36d978":"492","96cf4fb7":"495","6e5aa4fa":"499",a7bd4aaa:"518","7ffb7c5f":"551",ab811e82:"564","46c0d933":"577","141528fa":"596",f0f42f24:"602",a7434565:"645","5e95c892":"661","99b1d78b":"664","0e384e19":"671","18c10e97":"691",a4f7be8a:"750","85ac19f8":"755","93d27ab8":"789","2e6e5734":"805","14eb3368":"817",e7ff71d3:"821",a54b83c5:"842","036fc41e":"882",d8ef455a:"904",a61686b6:"922","6c8344a3":"933","71c056c1":"977"}[e]||e,c.p+c.u(e)},(()=>{var e={303:0,532:0};c.f.j=(a,f)=>{var t=c.o(e,a)?e[a]:void 0;if(0!==t)if(t)f.push(t[2]);else if(/^(303|532)$/.test(a))e[a]=0;else{var r=new Promise(((f,r)=>t=e[a]=[f,r]));f.push(t[2]=r);var d=c.p+c.u(a),o=new Error;c.l(d,(f=>{if(c.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var r=f&&("load"===f.type?"missing":f.type),d=f&&f.target&&f.target.src;o.message="Loading chunk "+a+" failed.\n("+r+": "+d+")",o.name="ChunkLoadError",o.type=r,o.request=d,t[1](o)}}),"chunk-"+a,a)}},c.O.j=a=>0===e[a];var a=(a,f)=>{var t,r,d=f[0],o=f[1],b=f[2],n=0;if(d.some((a=>0!==e[a]))){for(t in o)c.o(o,t)&&(c.m[t]=o[t]);if(b)var i=b(c)}for(a&&a(f);n{"use strict";var e,a,f,t,r,d={},o={};function c(e){var a=o[e];if(void 0!==a)return a.exports;var f=o[e]={exports:{}};return d[e].call(f.exports,f,f.exports,c),f.exports}c.m=d,e=[],c.O=(a,f,t,r)=>{if(!f){var d=1/0;for(i=0;i=r)&&Object.keys(c.O).every((e=>c.O[e](f[b])))?f.splice(b--,1):(o=!1,r0&&e[i-1][2]>r;i--)e[i]=e[i-1];e[i]=[f,t,r]},c.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return c.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);c.r(r);var d={};a=a||[null,f({}),f([]),f(f)];for(var o=2&t&&e;"object"==typeof o&&!~a.indexOf(o);o=f(o))Object.getOwnPropertyNames(o).forEach((a=>d[a]=()=>e[a]));return d.default=()=>e,c.d(r,d),r},c.d=(e,a)=>{for(var f in a)c.o(a,f)&&!c.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((a,f)=>(c.f[f](e,a),a)),[])),c.u=e=>"assets/js/"+({18:"d943a703",53:"935f2afb",58:"93c91ab0",82:"bfeab3de",83:"f1e13461",107:"a94703ab",131:"09965537",168:"a0145bdd",181:"fa17a3e5",214:"f078da08",270:"4c92833a",334:"247783bb",335:"e380917f",368:"99097929",408:"bd58d19a",420:"e0b249dc",455:"94fad746",456:"20ff6a6d",492:"3a36d978",495:"96cf4fb7",499:"6e5aa4fa",518:"a7bd4aaa",551:"7ffb7c5f",564:"ab811e82",577:"46c0d933",596:"141528fa",602:"f0f42f24",645:"a7434565",661:"5e95c892",664:"99b1d78b",671:"0e384e19",691:"18c10e97",750:"a4f7be8a",755:"85ac19f8",789:"93d27ab8",805:"2e6e5734",817:"14eb3368",821:"e7ff71d3",842:"a54b83c5",882:"036fc41e",904:"d8ef455a",918:"17896441",922:"a61686b6",933:"6c8344a3",977:"71c056c1"}[e]||e)+"."+{18:"e4f3409d",53:"78f3c854",58:"dca9feb8",82:"5bc9b32a",83:"2ea46632",107:"7d1258e4",131:"5f34f1c3",168:"7ddcf081",181:"45788fe5",214:"f2b13b03",270:"3e9f3bb6",334:"899a41db",335:"04410a4d",368:"2c00f282",408:"9c6138f1",420:"e7365bbb",455:"1e903928",456:"4144bac1",492:"8b966a18",495:"325d709e",499:"5ab8692f",518:"84b976bc",551:"a42c9b9a",564:"55384db2",577:"19808eaf",596:"80fbeb89",602:"303e72e8",645:"82edb565",661:"477f59fb",664:"43c227b6",671:"1ec97c32",691:"c3608260",750:"8c4ddd02",755:"6d43aa8c",772:"4402a9bd",789:"789c181b",805:"8b970756",817:"0e3ce8ed",821:"61d863ad",842:"48ac735e",882:"f755e690",904:"44ce1a16",918:"c0174be7",922:"3b96c0df",933:"0f7b0e7b",977:"eb08e33a"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),t={},r="illusivesoulworks-docs:",c.l=(e,a,f,d)=>{if(t[e])t[e].push(a);else{var o,b;if(void 0!==f)for(var n=document.getElementsByTagName("script"),i=0;i{o.onerror=o.onload=null,clearTimeout(s);var r=t[e];if(delete t[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((e=>e(f))),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),b&&document.head.appendChild(o)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/",c.gca=function(e){return e={17896441:"918",99097929:"368",d943a703:"18","935f2afb":"53","93c91ab0":"58",bfeab3de:"82",f1e13461:"83",a94703ab:"107","09965537":"131",a0145bdd:"168",fa17a3e5:"181",f078da08:"214","4c92833a":"270","247783bb":"334",e380917f:"335",bd58d19a:"408",e0b249dc:"420","94fad746":"455","20ff6a6d":"456","3a36d978":"492","96cf4fb7":"495","6e5aa4fa":"499",a7bd4aaa:"518","7ffb7c5f":"551",ab811e82:"564","46c0d933":"577","141528fa":"596",f0f42f24:"602",a7434565:"645","5e95c892":"661","99b1d78b":"664","0e384e19":"671","18c10e97":"691",a4f7be8a:"750","85ac19f8":"755","93d27ab8":"789","2e6e5734":"805","14eb3368":"817",e7ff71d3:"821",a54b83c5:"842","036fc41e":"882",d8ef455a:"904",a61686b6:"922","6c8344a3":"933","71c056c1":"977"}[e]||e,c.p+c.u(e)},(()=>{var e={303:0,532:0};c.f.j=(a,f)=>{var t=c.o(e,a)?e[a]:void 0;if(0!==t)if(t)f.push(t[2]);else if(/^(303|532)$/.test(a))e[a]=0;else{var r=new Promise(((f,r)=>t=e[a]=[f,r]));f.push(t[2]=r);var d=c.p+c.u(a),o=new Error;c.l(d,(f=>{if(c.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var r=f&&("load"===f.type?"missing":f.type),d=f&&f.target&&f.target.src;o.message="Loading chunk "+a+" failed.\n("+r+": "+d+")",o.name="ChunkLoadError",o.type=r,o.request=d,t[1](o)}}),"chunk-"+a,a)}},c.O.j=a=>0===e[a];var a=(a,f)=>{var t,r,d=f[0],o=f[1],b=f[2],n=0;if(d.some((a=>0!==e[a]))){for(t in o)c.o(o,t)&&(c.m[t]=o[t]);if(b)var i=b(c)}for(a&&a(f);n API | Illusive Soulworks - + diff --git a/category/curios.html b/category/curios.html index 5e951ca..8f955ba 100644 --- a/category/curios.html +++ b/category/curios.html @@ -4,7 +4,7 @@ Curios | Illusive Soulworks - + diff --git a/category/diet.html b/category/diet.html index 9c4b269..7a7e877 100644 --- a/category/diet.html +++ b/category/diet.html @@ -4,7 +4,7 @@ Diet | Illusive Soulworks - + diff --git a/category/inventory.html b/category/inventory.html index 884810b..f8716ec 100644 --- a/category/inventory.html +++ b/category/inventory.html @@ -4,7 +4,7 @@ Inventory | Illusive Soulworks - + diff --git a/category/items.html b/category/items.html index 7aed0c9..b30ed06 100644 --- a/category/items.html +++ b/category/items.html @@ -4,7 +4,7 @@ Items | Illusive Soulworks - + diff --git a/category/slots.html b/category/slots.html index 67c3218..544bc7b 100644 --- a/category/slots.html +++ b/category/slots.html @@ -4,7 +4,7 @@ Slots | Illusive Soulworks - + diff --git a/curios/api/renderer-interface.html b/curios/api/renderer-interface.html index b6f4702..017db4e 100644 --- a/curios/api/renderer-interface.html +++ b/curios/api/renderer-interface.html @@ -4,7 +4,7 @@ ICurioRenderer | Illusive Soulworks - + diff --git a/curios/commands.html b/curios/commands.html index b121b04..81d2946 100644 --- a/curios/commands.html +++ b/curios/commands.html @@ -4,7 +4,7 @@ Commands | Illusive Soulworks - + diff --git a/curios/configuration.html b/curios/configuration.html index c22ebf5..00ca974 100644 --- a/curios/configuration.html +++ b/curios/configuration.html @@ -4,7 +4,7 @@ Configuration | Illusive Soulworks - + diff --git a/curios/getting-started.html b/curios/getting-started.html index 4ac4739..53c02d0 100644 --- a/curios/getting-started.html +++ b/curios/getting-started.html @@ -4,7 +4,7 @@ Setting Up the Development Environment | Illusive Soulworks - + diff --git a/curios/inventory/basic-inventory.html b/curios/inventory/basic-inventory.html index 8847a04..b7f14b9 100644 --- a/curios/inventory/basic-inventory.html +++ b/curios/inventory/basic-inventory.html @@ -4,7 +4,7 @@ Basic Inventory Management | Illusive Soulworks - + diff --git a/curios/items/assign-slots.html b/curios/items/assign-slots.html index 8de1763..3b38002 100644 --- a/curios/items/assign-slots.html +++ b/curios/items/assign-slots.html @@ -4,7 +4,7 @@ Assigning Slots | Illusive Soulworks - + diff --git a/curios/items/curio-creation.html b/curios/items/curio-creation.html index dcfb489..4892597 100644 --- a/curios/items/curio-creation.html +++ b/curios/items/curio-creation.html @@ -4,7 +4,7 @@ Creating a Curio | Illusive Soulworks - + diff --git a/curios/items/curios-nbt.html b/curios/items/curios-nbt.html index 1f5755f..b48a772 100644 --- a/curios/items/curios-nbt.html +++ b/curios/items/curios-nbt.html @@ -4,7 +4,7 @@ Curios Attribute Modifiers (NBT) | Illusive Soulworks - + @@ -22,12 +22,18 @@

Syntax
/give @s netherite_chestplate{AttributeModifiers:[{Slot:"chest", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1
-

This is the Curios way of achieving the same in the body slot:

+

This is the Curios way of achieving the same in the body slot:

/give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0}]} 1

Note that the main differences are the change from AttributeModifiers to CurioAttributeModifiers and the change in the slot name. The slot name should be the identifier of a registered slot type.

+

Slot Modifiers

+

This method can also be used to add slot modifiers, modifiers that can add or remove curio slots. The syntax is the +same, the only difference is that the AttributeName should be of the format curios:identifier with identifier +being the slot identifier that is being added or removed.

+

Going back to the previous example, this will make the item add 1 back slot when worn in the body slot:

+
/give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"curios:back", Name:"back_modifier", Amount:1.0, Operation:0}]} 1
tip

It is recommended that the UUID be left out except for special circumstances. When absent, Curios will give the attribute modifier a UUID based on the slot context which will prevent any stacking issues that could arise when multiple slots -of the same type exist and the same attribute modifier is applied multiple times.

+of the same type exist and the same attribute modifier is applied multiple times.

\ No newline at end of file diff --git a/curios/items/rendering-registry.html b/curios/items/rendering-registry.html index d3a5fa5..f137f9a 100644 --- a/curios/items/rendering-registry.html +++ b/curios/items/rendering-registry.html @@ -4,7 +4,7 @@ Rendering a Curio | Illusive Soulworks - + diff --git a/curios/slots/data-generation.html b/curios/slots/data-generation.html index e3058ae..c58c42b 100644 --- a/curios/slots/data-generation.html +++ b/curios/slots/data-generation.html @@ -4,7 +4,7 @@ Data Generation | Illusive Soulworks - + diff --git a/curios/slots/datapack-example.html b/curios/slots/datapack-example.html index 7d89091..5a39b2a 100644 --- a/curios/slots/datapack-example.html +++ b/curios/slots/datapack-example.html @@ -4,7 +4,7 @@ Example Datapack | Illusive Soulworks - + diff --git a/curios/slots/entity-register.html b/curios/slots/entity-register.html index e7b9cdd..69689ab 100644 --- a/curios/slots/entity-register.html +++ b/curios/slots/entity-register.html @@ -4,7 +4,7 @@ Entity Slot Types | Illusive Soulworks - + diff --git a/curios/slots/preset-slots.html b/curios/slots/preset-slots.html index b0c0f30..398365b 100644 --- a/curios/slots/preset-slots.html +++ b/curios/slots/preset-slots.html @@ -4,7 +4,7 @@ Preset Slot Types | Illusive Soulworks - + diff --git a/curios/slots/slot-modifiers.html b/curios/slots/slot-modifiers.html index 3fbee5b..5615633 100644 --- a/curios/slots/slot-modifiers.html +++ b/curios/slots/slot-modifiers.html @@ -4,7 +4,7 @@ Slot Modifiers | Illusive Soulworks - + diff --git a/curios/slots/slot-register.html b/curios/slots/slot-register.html index 8ed5594..6c36a1f 100644 --- a/curios/slots/slot-register.html +++ b/curios/slots/slot-register.html @@ -4,7 +4,7 @@ Slot Types | Illusive Soulworks - + diff --git a/curios/slots/slot-textures.html b/curios/slots/slot-textures.html index da06ce2..1dab17c 100644 --- a/curios/slots/slot-textures.html +++ b/curios/slots/slot-textures.html @@ -4,7 +4,7 @@ Slot Icon Textures | Illusive Soulworks - + diff --git a/diet/datapack-example.html b/diet/datapack-example.html index 5a044e5..219761a 100644 --- a/diet/datapack-example.html +++ b/diet/datapack-example.html @@ -4,7 +4,7 @@ Example Datapack | Illusive Soulworks - + diff --git a/diet/diet-groups.html b/diet/diet-groups.html index ee6a85d..2eeba30 100644 --- a/diet/diet-groups.html +++ b/diet/diet-groups.html @@ -4,7 +4,7 @@ Customizing Food Groups | Illusive Soulworks - + diff --git a/diet/diet-suites.html b/diet/diet-suites.html index 8b55349..3d6a5e4 100644 --- a/diet/diet-suites.html +++ b/diet/diet-suites.html @@ -4,7 +4,7 @@ Customizing Diet Suites | Illusive Soulworks - + diff --git a/diet/food-classification.html b/diet/food-classification.html index fe72387..afe107e 100644 --- a/diet/food-classification.html +++ b/diet/food-classification.html @@ -4,7 +4,7 @@ Categorizing Food to Groups | Illusive Soulworks - + diff --git a/index.html b/index.html index 2b0db9c..359260f 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Overview | Illusive Soulworks - + diff --git a/versions.html b/versions.html index 9b85e1d..3e343a7 100644 --- a/versions.html +++ b/versions.html @@ -4,7 +4,7 @@ Versions | Illusive Soulworks - +