Files
IMoO/behavior_pack/blocks/graves_3.json
T
2022-02-06 07:56:47 +03:00

106 lines
1.7 KiB
JSON

{
"minecraft:block": {
"description": {
"properties": {
"bridge:block_rotation": [
2,
3,
4,
5
]
},
"identifier": "imoo:grave_3"
},
"permutations": [
{
"condition": "query.block_property('bridge:block_rotation') == 2",
"components": {
"minecraft:rotation": [
0,
180,
0
]
}
},
{
"condition": "query.block_property('bridge:block_rotation') == 3",
"components": {
"minecraft:rotation": [
0,
0,
0
]
}
},
{
"condition": "query.block_property('bridge:block_rotation') == 4",
"components": {
"minecraft:rotation": [
0,
270,
0
]
}
},
{
"condition": "query.block_property('bridge:block_rotation') == 5",
"components": {
"minecraft:rotation": [
0,
90,
0
]
}
}
],
"components": {
"minecraft:on_player_placing": {
"event": "bridge:update_rotation"
},
"minecraft:geometry": "geometry.imoo_grave_3",
"minecraft:material_instances": {
"*": {
"texture": "imoo_grave_3",
"render_method": "alpha_test"
}
},
"minecraft:entity_collision": {
"origin": [
-2,
0,
-1
],
"size": [
8,
2,
1
]
},
"minecraft:pick_collision": {
"origin": [
-2,
0,
-1
],
"size": [
8,
2,
1
]
},
"minecraft:creative_category": {
"group": "itemGroup.name.Construction",
"category": "Construction"
},
"minecraft:block_light_absorption": 0.9
},
"events": {
"bridge:update_rotation": {
"set_block_property": {
"bridge:block_rotation": "query.cardinal_facing_2d"
}
}
}
},
"format_version": "1.17.0"
}