#Item modify item_model with macros

1 messages · Page 1 of 1 (latest)

raw bough
#

I want to modify the item model of the item the player is holding in weapon.mainhand with /item modify but I can't figure it out, also i need to set the model to a macro like $(model) or something because i have multiple item models. I can do this with /give item[item_model="$(macro)"] but idk how to do this with item modify

gray hedgeBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1745504517:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

autumn smelt
#

and pretty sure you don't need macros for this

#

if you want to just change the item model field of your item a normal item modifier should be enough

#

lemme know if you need help further

quasi topaz
#
  1. you create a item modifier that sets the item_model component (https://misode.github.io/item-modifier/)
    if you only want a modifier, that’s it, just use it.
    If you want to macroify it
  2. change the output to inline
  3. copy it into a command $item modify …
  4. replace the model string with a macro
autumn smelt
#
{
    "function": "set_components",
    "components": {
        "item_model": "namespace:path"
    }
}``` this is what I was referring to btw
#

nevermind pucki said it above

raw bough
#

but how would the item modify command line be

#

cause im not sure

#

okay so i have this

#

and this

#

so if I macro knife with $(type) and colt with $(id) it should get the model I want

#

okay works, thx