Minecraft-bedrock-json-schemas icon indicating copy to clipboard operation
Minecraft-bedrock-json-schemas copied to clipboard

Support single values for item components

Open QuazChick opened this issue 10 months ago • 6 comments

Many item components also support a format similar to "minecraft:component": true rather than "minecraft:component": { "value": true }

QuazChick avatar Apr 01 '24 21:04 QuazChick

Could've sworn that resulted in an error in the newest format version for most of those components

Xterionix avatar Apr 02 '24 02:04 Xterionix

Going to have to test this 🤔

DaanV2 avatar Apr 02 '24 08:04 DaanV2

I've tested them all in game, display name is the only component that doesn't support it.

QuazChick avatar Apr 02 '24 13:04 QuazChick

Alr

Xterionix avatar Apr 02 '24 13:04 Xterionix

@QuazChick Could you share your file?

I might just want to do a quick verification :)

DaanV2 avatar Apr 02 '24 14:04 DaanV2

test.mcpack

{
  "format_version": "1.20.70",
  "minecraft:item": {
    "description": {
      "identifier": "test:staff",
      "menu_category": {
        "category": "equipment"
      }
    },
    "components": {
      "minecraft:can_destroy_in_creative": false,
      "minecraft:max_stack_size": 64,
      "minecraft:icon": "stick",
      "minecraft:glint": true,
      "minecraft:damage": 2,
      "minecraft:stacked_by_data": true,
      "minecraft:should_despawn": true,
      "minecraft:hover_text_color": "aqua",
      "minecraft:use_animation": "brush",
      "minecraft:use_modifiers": {
        "use_duration": 2
      }
    }
  }
}

QuazChick avatar Apr 02 '24 14:04 QuazChick

Confirmed that it still works

DaanV2 avatar May 11 '24 09:05 DaanV2

Guess it can be merged then

Xterionix avatar May 11 '24 09:05 Xterionix