#Block interaction

1 messages · Page 1 of 1 (latest)

blazing forge
#

i want to create a block where you can interact with an item and then a command is executed The Block:

{
    "format_version": "1.16.100",
    "minecraft:block": {
        "description": {
            "identifier": "cak:crate",
            "category": "nature",
            "is_experimental": false
        },
        "components": {
            "minecraft:destroy_time": 1.0,
            "minecraft:map_color": "#FFFFFF",
            "minecraft:block_light_absorption": 0,
            "minecraft:block_light_emission": 0,
            "minecraft:explosion_resistance": 0,
            "minecraft:friction": 0.6
        }
    }
}
``` The Item ```js
 {
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "cak:key",
            "menu_category": {
                "category": "nature"
            }
        },
        "components": {
            "minecraft:icon": "cak_key",
            "minecraft:glint": true,
            "minecraft:can_destroy_in_creative": false
        }
    }
}```
fossil folio
#

You'll need scripting for this