I'm currently updating a custom origins datapack from 1.16 to 1.18 and I keep getting this error message back. I don't think it has to do with the yellow_shulker_box .json itself, because that is supposedly up to date (here's the code below and I'll continue beneath it)
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"item": "minecraft:air",
"nbt": "{drop_contents: 1b}"
}
}
]
},
{
"functions": [
{
"function": "minecraft:copy_name",
"source": "block_entity"
},
{
"function": "minecraft:copy_nbt",
"source": "block_entity",
"ops": [
{
"source": "Lock",
"target": "BlockEntityTag.Lock",
"op": "replace"
},
{
"source": "LootTable",
"target": "BlockEntityTag.LootTable",
"op": "replace"
},
{
"source": "LootTableSeed",
"target": "BlockEntityTag.LootTableSeed",
"op": "replace"
}
]
},
{
"function": "minecraft:set_contents",
"entries": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents"
}
]
}
],
"type": "minecraft:item",
"name": "minecraft:yellow_shulker_box"
}
]
}
]
}
]
}
the files go minecraft -> loot tables -> blocks -> yellow_shulker_box.json
I may need to add a "tags" folder within the minecraft folder? If so, I'm not sure what to put in it, if that even is the problem.
I don't think anything else in the mod references a yellow shulker box, save for the notes file in the pack's functions folder:
# repair.mcfunction (by me :), RaidTheWeb)
# create temporary shulker box
setblock ~ 255 ~ minecraft:yellow_shulker_box
# add the current item to shulker
data modify block ~ 255 ~ Items[] set from entity @s SelectedItem
# fully repair item
execute store result block ~ 255 ~ Items[0].tag.Damage short 1 run scoreboard players get @s itemDamage
# give the contents of the shulker
loot replace entity @s weapon.mainhand 1 mine ~ 255 ~ minecraft:air{drop_contents:1b}
# clean up afterwards
setblock ~ 255 ~ air replace
Any help would be appreciated, please, I just straight up cannot locate where the problem even is at this point in order to fix it.