Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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.

  • Author

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.