#Anybody know what is wrong with this code?

1 messages · Page 1 of 1 (latest)

chilly creekBOT
#
Please, no screenshots or photos!

Screenshots are hard to read, and photos even more so. This is especially true if you are using bridge or another tree editor, as this format obscures the JSON format.

We can help you best if you copy and paste your code here, or send it directly as a file.

lament timber
# chilly creek

{
"resource_pack_name": "FalloutBlocks",
"texture_name": "atlas.terrain",
"padding": 8,
"num_mip_levels": 4,
"texture_data": {
"brown_sand": {
"textures": {
"variations": [
{ "path": "textures/blocks/brown_sand" },
{ "path": "textures/blocks/brown_sand1" },
{ "path": "textures/blocks/brown_sand2" }
},
"largelimestone_coral2": {
"textures": "textures/blocks/largelimestone_coral2.png"
},

sage wolf
#

Show the full code?

lament timber
# sage wolf Show the full code?

{
"resource_pack_name": "FalloutBlocks",
"texture_name": "atlas.terrain",
"padding": 8,
"num_mip_levels": 4,
"texture_data": {
"brown_sand": {
"textures": {
"variations": [
{ "path": "textures/blocks/brown_sand" },
{ "path": "textures/blocks/brown_sand1" },
{ "path": "textures/blocks/brown_sand2" }
},
"largelimestone_coral2": {
"textures": "textures/blocks/largelimestone_coral2.png"
},
"beam_diagonal_nsse4": {
"textures": "textures/blocks/logs/oaklogs/beam_diagonal_nsse4.png"
},
"diagonal_oak_branch_67_branches_tip2": {
"textures": "textures/blocks/logs/oaklogs/diagonal_oak_branch_67_branches_tip2.png"
}
}
}

#

the problem is something at the top thats all I could make of it

sage wolf
#

Looks like is missing lots of things to make it a valid JSON

#
{
    "resource_pack_name": "FalloutBlocks",
    "texture_name": "atlas.terrain",
    "padding": 8,
    "num_mip_levels": 4,
    "texture_data": {
        "brown_sand": {
            "textures": {
                "variations": [
                    {
                        "path": "textures/blocks/brown_sand"
                    },
                    {
                        "path": "textures/blocks/brown_sand1"
                    },
                    {
                        "path": "textures/blocks/brown_sand2"
                    }
                ],
                "largelimestone_coral2": {
                    "textures": "textures/blocks/largelimestone_coral2.png"
                },
                "beam_diagonal_nsse4": {
                    "textures": "textures/blocks/logs/oaklogs/beam_diagonal_nsse4.png"
                },
                "diagonal_oak_branch_67_branches_tip2": {
                    "textures": "textures/blocks/logs/oaklogs/diagonal_oak_branch_67_branches_tip2.png"
                }
            }
        }
    }
}
lament timber
#

Do I have to change something in its behavior?

#

Do I have to change anything here?

#

},
"minecraft:geometry": "geometry.brown_sand",
"minecraft:material_instances": {
"*": {
"texture": "brown_sand",
"render_method": "opaque"

pseudo hawk
#

For a simple block, I use "formact_version" 1.19.10 and don't add geometry, just texture. In "resource_packs/blocks.json you add the texture.
An example from my files:
block.json↓
{
"format_version": "1.19.10",
"minecraft:block": {
"description": {
"identifier": "t3:araucoplanks"
},
"components": {
"tag:wood": {},
"minecraft:display_name": "araucoplanks",
"minecraft:flammable": {
"burn_odds": 20,
"flame_odds": 5
},
"minecraft:creative_category": {
"category": "construction",
"group": "itemGroup.name.planks"
},
"minecraft:loot": "loot_tables/blocks/arauco/araucoplanks.json",
"minecraft:destroy_time": 1,
"minecraft:light_dampening": 0,
"minecraft:material_instances": {
"*": {
"render_method": "opaque",
"texture": "araucoplanks",
"ambient_occlusion": false,
"face_dimming": true
}
}
},
"events": {}
}
}

resource_packs/blocks.json↓
"t3:araucoplanks": {
"sound": "wood",
"textures": "araucoplanks"
},

resource_packs/textures/terrain_texture↓
"araucoplanks": {
"textures": {
"variations": [
{ "path": "textures/blocks/araucoplanks" },
{ "path": "textures/blocks/araucoplanks2" },
{ "path": "textures/blocks/araucoplanks3" },
{ "path": "textures/blocks/araucoplanks4"}
]}},

Hope I helped.
T3

lament timber