Skip to content

Extensions to OptiFine properties - migration guide

OptiGUI 2.1.0-beta.1 removed support for all extensions from OptiFine properties. Here's a guide how to convert them to OptiGUI JSON resources.

container=_cartography_table

{
  "container": "cartography_table"
}

container=_chest_boat before Minecraft 1.21.2

Add a matcher for the Type NBT of the chest boat entity:

{
  "container": "chest_boat",
  "match": {
    "@entity": {
      "@Type": "<variant>"
    }
  }
}

If you have multiple variants:

{
  "container": "chest_boat",
  "match": {
    "@entity": { 
      "@Type": {
        "any_of": ["<variant1>", "<variant2>"]
      }
    }
  }
}

container=_chest_boat starting Minecraft 1.21.2

Add variants before chest_boat (without the angle brackets):

{
  "container": "<variant>_chest_boat"
}

If you have multiple variants, put them in a JSON array:

{
  "container": ["<variant1>_chest_boat", "<variant2>_chest_boat"]
}

container=_grindstone

{
  "container": "grindstone"
}

container=_loom

{
  "container": "loom"
}

container=_smithing_table

{
  "container": "smithing_table"
}

container=_stonecutter

{
  "container": "stonecutter"
}

_barrel=true

{
  "container": "barrel"
}

_minecart=true if container=chest

{
  "container": "chest_minecart"
}

_minecart=true if container=hopper

{
  "container": "hopper_minecart"
}

variants=_furnace

{
  "container": "furnace"
}

variants=_blast, variants=_blast_furnace

{
  "container": "blast_furnace"
}

variants=_smoker

{
  "container": "smoker"
}

_camel=true

{
  "container": "camel"
}

_zombie_horse=true

{
  "container": "zombie_horse"
}

_skeleton_horse=true

{
  "container": "skeleton_horse"
}

_wandering_trader=true

{
  "container": "wandering_trader"
}