Jump to content

[1.18.1] Couldn't parse loot table minecraft:blocks/yellow_shulker_box Missing type, expected to find a string


Recommended Posts

Posted

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.

Posted

Crap. I know I'm making a datapack for the Origins mod. If this post isn't allowed here, feel free to delete it or tell me too and I shall. I'm technically.. coding in a mod I think? Do you know of any better servers for... custom minecraft datapack coding? (I'm new to this scene and really have no idea where to get the proper info/help I need)

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.