{
    "format_version": "1.20.50",
    "minecraft:block": {
        "description": {
            "identifier": "rc:piston_extension_pole",
            "menu_category": {
                "category": "items",
                "group": "itemGroup.name.create",
                "is_hidden_in_commands": false
            },
            "traits": {
                "minecraft:placement_position": {
                    "enabled_states": ["minecraft:block_face"]
                  }
            }
        },
        "components": {
            "minecraft:material_instances": {
                "*": {
                    "render_method": "alpha_test",
                    "texture": "pole_end"
                },
                "piston_side": {
                    "render_method": "alpha_test",
                    "texture": "piston_side"
                },
                "pole_end": {
                    "render_method": "alpha_test",
                    "texture": "pole_end"
                }
            },
            "minecraft:geometry":{
                "identifier": "geometry.piston_extension_pole"
            },
            "minecraft:destructible_by_explosion": true,
            "minecraft:destructible_by_mining": true,
            "minecraft:collision_box": {
	          "origin": [-2, 0, -2],
	          "size": [4, 16, 4]
            },
            "minecraft:selection_box": {
	          "origin": [-2, 0, -2],
	          "size": [4, 16, 4]
            },
            "minecraft:map_color": "#FFFFFF"
        },
        "events": {
            "placed": {
                "set_block_state":{
                    "rc:placed": true
                }
            }
        },
        "permutations": [
            {
                "condition": "q.block_state('minecraft:block_face') == 'north'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [90, 0, 0]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'south'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [90, 0, 0]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'west'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [0, 0, 90]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'east'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [0, 0, 90]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'down'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [0, 0, 0]
                    }
                }
            },
            {
                "condition": "q.block_state('minecraft:block_face') == 'up'",
                "components": {
                    "minecraft:transformation": {
                        "rotation": [0, 0, 0]
                    }
                }
            }
        ]
    }
}