#Why won't item modifier take data from a container

1 messages · Page 1 of 1 (latest)

patent dustBOT
#
[
  {
    "function": "minecraft:set_lore",
    "entity": "this",
    "lore": [
      [
        [
          {
            "nbt": "Items[{Slot:0b}].components.\"minecraft:custom_data\".aeternum-ability_data.type",
            "block": "~ ~ ~",
            "color": "green",
            "italic": false
          },
          {
            "text": " Ability",
            "color": "gold",
            "italic": false
          }
        ]
      ]
    ],
    "mode": "replace_all"
  }
]

This is the file and Items[{Slot:0b}].components."minecraft:custom_data".aeternum-ability_data.type is set to "Activated" but the output looks like this (see image)

umbral mangoBOT
#

<@&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:1733129770: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

frigid kelp
#

@buoyant kiln i can’t see the image, did the bot remove it?

buoyant kiln
#

oof

#

it did

#

this was the image

#

there's just a blank space before "ability"

frigid kelp
#

Can you read other nbt using item modifier?

buoyant kiln
#

nope

#

this is what the full thing looks like (the ??? is the item name)

frigid kelp
#

It should work

#

Could it be that it can’t find the block?

#

Id try hardcoded coordinates for now

buoyant kiln
#

ill try that

#

yes

#

thats it

#

it can't recognize the block

frigid kelp
#

Then maybe try and find out what "~ ~ ~" relates to

buoyant kiln
#

yea

frigid kelp
#

If it’s the player location, the command location or the world spawn or something

#

That’s what I could think of

buoyant kiln
#

ok this is really weird

#

i just used a tellraw command in my function to figure out the location

#

turns out the location is correct

#

but it still doesn't work for some reason?

frigid kelp
#

Maybe it uses the location of the executing entity

#

And not the one where the command is run

#

Or relative coordinates don’t work at all 🤷

#

You could move it to storage first and read it from storage in the item modifier

buoyant kiln
#

is there simply no other way?

frigid kelp
#

If this is not the case, there are probably ways

buoyant kiln
#

im stupid

#

welp

#

thanks for the help <3

umbral mangoBOT
#
Question Closed

Your question, #1313058617049616424 (Why won't item modifier take data from a container), was resolved!

Original Message

#1313058617049616424 message

Duration open

5h27m

#

Re-opened the channel. Make sure to close it again once you're done.

buoyant kiln
#

5 hours is crazy