#[Json][error]-block_definitions | wrong version | Json error

1 messages · Page 1 of 1 (latest)

thorn mica
#

Hello, I am having trouble creating a custom block for my first Minecraft add-on. I want to create a block with custom geometry, but I keep encountering the following error:

[Json][error]-block_definitions | /com.mojang/behavior_packs/blocktest | blocks/up-slap.json | upgrade blocks/up-slap.json | failed to parse file into a json document: Invalid value.

[Blocks][error]-block_definitions | /com.mojang/behavior_packs/blocktest | blocks/up-slap.json | Unexpected version for the loaded data.

Here is my up-slap.json file:

{
  "format_version": "1.19.40",
  "minecraft:block": {
    "description": {
      "identifier": "tt:up-slap"
    },
    "components": {
      "minecraft:geometry": "geometry.up-slap",
      "minecraft:material_instances": {
        "*": {
          "texture": "up-slap"
        }
      }
    }
  }
}

I followed the official Microsoft developer tutorial, but I can't figure out what I'm doing wrong. Could you please help me? Thank you!

gusty berry
#

you should be using underscores (_) instead of hyphens (-)

thorn mica
#

Thanks but it doesn't work, the error is still there.


[Blocks][error]-block_definitions | C:/Users/kiker/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/behavior_packs/blocktest | blocks/up_slap.json | Unexpected version for the loaded data

i cange the name to up_slap now.

gusty berry
#

you need to have the pack in the development_*_packs folder, otherwise the game will not recognise updates to files

#

in com.mojang

thorn mica
#

no it still dount work

gusty berry
#

try creating a new world

thorn mica
#

nop 😦

#

[Blocks][error]-block_definitions | C:/Users/kiker/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/blocktest | blocks/up_slap.json | Unexpected version for the loaded data
gusty berry
#

that format version is a bit old
try updating it to 1.21.60

thorn mica
#

also in the models?

gusty berry
#

if you want, but the errors are about the block file

thorn mica
#

no same error

#

do you have an example for a custom block with costum geo

gusty berry