#Error

1 messages · Page 1 of 1 (latest)

vital tusk
#

Why does it tell me that I would use a wrong version? I use the version 1.20 in every file I made. js { "format_version": "1.20", "minecraft:block": { "description": { "identifier": "sv:generator", "menu_category": { "category": "construction" } }, { "minecraft:material_instances": { "*": { "texture": "sv:generator" } } }, "components": { "minecraft:loot": "loot_tables/blocks/generator.json", "minecraft:destructible_by_mining": { "seconds_to_destroy": 3 }, "minecraft:destructible_by_explosion": { "explosion_resistance": 3 }, "minecraft:friction": 0.4, "minecraft:flammable": { "catch_chance_modifier": 0, "destroy_chance_modifier": 0 }, "minecraft:map_color": "#ffffff", "minecraft:light_dampening": 0, "minecraft:light_emission": 0 } } }

granite kite
#

1.20.10

vital tusk
granite kite
#

whats your manifest.json minimum engine version?

vital tusk
#

1, 20, 00

granite kite
#

set it to 1, 20, 10

vital tusk
#

Alright

granite kite
vital tusk
#

Now there are like 170+ errors and the block still doesn't work or exist @granite kite bao_foxxo_raisedeyebrow

granite kite
vital tusk
granite kite
#

1.20 is not valid 1.20.0 is valid

vital tusk
#

...

#

I thought it was 1.20.10?

vital tusk
granite kite
#

1.20.10 is also valid if you have min engine version set to 1, 20, 10

vital tusk
#

I have

granite kite
#

can you send the block file again?

vital tusk
#
{
    "format_version": "1.20.10",
    "minecraft:block": {
        "description": {
            "identifier": "sv:generator",
            "menu_category": {
                "category": "construction"
            }
        },
        "components": {
            {
                "minecraft:material_instances": {
                    "*": {
                        "texture": "sv:generator"
                    }
                }
            },
            "minecraft:loot": "loot_tables/blocks/generator.json",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 3
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 3
            },
            "minecraft:friction": 0.4,
            "minecraft:flammable": {
                "catch_chance_modifier": 0,
                "destroy_chance_modifier": 0
            },
            "minecraft:map_color": "#ffffff",
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0
        }
    }
}```
granite kite
#
{
    "format_version": "1.20.10",
    "minecraft:block": {
        "description": {
            "identifier": "sv:generator",
            "menu_category": {
                "category": "construction"
            }
        },
        "components": {
            "minecraft:material_instances": {
                "*": {
                    "texture": "sv:generator"
                }
            },
            "minecraft:loot": "loot_tables/blocks/generator.json",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 3
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 3
            },
            "minecraft:friction": 0.4,
            "minecraft:flammable": {
                "catch_chance_modifier": 0,
                "destroy_chance_modifier": 0
            },
            "minecraft:map_color": "#ffffff",
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0
        }
    }
}```
#

here fixed the material instance for you

vital tusk
#

Now there's something wrong in my terrain_texture.json file because it doesn't show the texture... js { "resource_pack_name": "vanilla", "texture_name": "atlas.terrain", "padding": 8, "num_mip_levels": 4, "texture_data": { "sv:generator": { "textures": "textures/otherblocks/generator" } } }

granite kite
#

I think that namespaces are not allowed so instead of using sv:generator use generator

vital tusk
#

Doesn't work :c

#

(I changed sv:generator in material_instances and texture_data)

vital tusk
#

Still doesn't work @granite kite

quick thicket
#

it should be purple if the terrain_texture.json is wrong

vital tusk
#

Yes

#

And it still shows the bug in the first picture

vital tusk
#

But the terrain_texture.json shouldn't be wrong

quick thicket
#

that error sometimes happens when component names are old

vital tusk
sturdy vale
#

were you avail to fix the error?

vital tusk
#

No

fast kelp
#

you need the minecraft:unit_cube or minecraft:geometry component, or you can define the texture in blocks.json

vital tusk
fast kelp
#

no, it should be like this

{
    "format_version": "1.20.10",
    "minecraft:block": {
        "description": {
            "identifier": "sv:generator",
            "menu_category": {
                "category": "construction"
            }
        },
        "components": {
            "minecraft:unit_cube": {},
            "minecraft:material_instances": {
                "*": {
                    "texture": "generator"
                }
            },
            "minecraft:loot": "loot_tables/blocks/generator.json",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 3
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 3
            },
            "minecraft:friction": 0.4,
            "minecraft:flammable": {
                "catch_chance_modifier": 0,
                "destroy_chance_modifier": 0
            },
            "minecraft:map_color": "#ffffff",
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0
        }
    }
}
vital tusk
#

Ok, thank you ❤️

vital tusk
#
{
    "format_version": "1.20.10",
    "minecraft:block": {
        "description": {
            "identifier": "sv:generator",
            "menu_category": {
                "category": "construction"
            }
        },
        "components": {
            "minecraft:unit_cube": {},
            "minecraft:material_instances": {
                "*": {
                    "texture": "generator"
                }
            },
            "minecraft:loot": "loot_tables/blocks/generator.json",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 3
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 3
            },
            "minecraft:friction": 0.4,
            "minecraft:flammable": {
                "catch_chance_modifier": 0,
                "destroy_chance_modifier": 0
            },
            "minecraft:map_color": "#ffffff",
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0
        }
    }
}```
#
    "rolls": {
        "min": 1,
        "max": 1
    },
    
    "entries": [
        {
            "type": "item",
            "name": "minecraft:cobblestone",
            "weight": 50
        },
        {
            "type": "item",
            "name": "minecraft:cobblestone",
            "weight": 40
        },
        {
            "type": "item",
            "name": "sv:infinity_diamond",
            "weight": 10
        }
    ]
}``` Why doesn't it drop the loot? (Behavior/loot_tables/blocks/generator.json
shut willow
vital tusk
#

No, that's the entite file

shut willow
#

ah

#

it's pools > rolls and entries

#

hold on i gotchu

vital tusk
#

Should I use { "pools": [ //code ] }

#

//code = the file before

#

Would that work?

shut willow
#

yeah

vital tusk
#

Ok

shut willow
#
{
    "pools": [
        {
            "rolls": {
            "min": 1,
            "max": 1
            },
            "entries": [
                {
                "type": "item",
                "name": "minecraft:cobblestone",
                "weight": 50
                },
                {
                "type": "item",
                "name": "minecraft:cobblestone",
                "weight": 40
                },
                {
                "type": "item",
                "name": "sv:infinity_diamond",
                "weight": 10
                }
            ]
        }
    ]
}