Block Models
📝 BP/blocks/paper_bag.json
json
{
"format_version": "1.26.40",
"minecraft:block": {
"description": {
"identifier": "wiki:paper_bag",
"menu_category": {
"category": "items"
}
},
"components": {
"minecraft:collision_box": false,
"minecraft:selection_box": {
"origin": [-7, 0, -4],
"size": [14, 13, 8]
},
// Prevent blocks such as fences and glass panes from connecting
"minecraft:connection_rule": {
"accepts_connections_from": "none"
},
// Apply your model by referencing its identifier
"minecraft:geometry": "geometry.paper_bag",
// Apply textures and other rendering configuration
"minecraft:material_instances": {
"*": {
"texture": "wiki:paper_bag",
"render_method": "alpha_test" // Disable backface culling and allow transparency
},
"down": {
"texture": "wiki:paper_bag_bottom_fold",
"render_method": "alpha_test" // Must be the same in all instances
},
// Custom instance name used in model
"side_gusset": {
"texture": "wiki:paper_bag_side_gusset",
"render_method": "alpha_test" // Must be the same in all instances
}
}
}
}
}Code samples on this page are licensed under the MIT License