#Is it possible to modify an item in a loot-table using item modifiers?
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
your english isnt englishing
is it possible to use modify an item
what does that even mean
@wicked copper
Yes, loot tables can contain item modifiers. In fact, item modifiers originally stemmed from loot tables. That's what the functions field of items are
Sorry mb
Is it possible to modify an item in a loot-table using item modifiers?
How would I do it using misode ?
<@&1166082198152159386> <@&1202694677766348840>
Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)
Sorry If i'm bothering you guys
misode has a functions key
It's the functions thing
Yea
Which function allows me to add item modifiers tho ???
That's not what I'm talking about
can you clarify
I'm talking about item modifiers (the files that are in namespace/item_modifier
what do you want to do with them
I wanna modify the lore component using a custom data component
so you want to copy a custom data string into lore
is that custom data coming from the item itself or from storage
Ye
go to your loot table
and change your function for that item
instead of it being set_custom_data
make it set_lore
because putting it in custom data is an unecessary step
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:stone"
}
],
"functions": [
{
"function": "minecraft:set_lore",
"entity": "this",
"lore": [
{
"text": "I am stone.",
"color": "gray",
"italic": false
}
],
"mode": "replace_all"
}
]
}
]
}
This is an example of a loot table that inserts a stone with the lore "I am stone."
Okay, is there a way to easily set the custom data component and have it display in the lore without me having to change it ?
save yourself a headache
just copy your string, store it in notepad
I want to modify the custom data component because it is needed for other parts of my datapack
you can have multiple functions fyi
you can still save your old function
but i just tried to copy a string into lore
i dont think you can
I got it working
Ty for the help
/resolve
Uhhh
Can someone do /resolve ? My discord is bugging out lmao
resolve it here