HomeBedrockAddonsAgaCore Only Tool Destructible
AgaCore Only Tool Destructible
AddonsBedrock

AgaCore Only Tool Destructible

by AgaDev_07 · on CurseForge

A Bedrock script component that enforces tool-based block breaking rules with tier checks, Silk Touch logic, custom loot, and durability handling.

⬇ Download on CurseForge
AgaCore Only Tool Destructible — screenshot 1

🇺🇸 English

Need blocks that can only be broken using the correct tool?   This script adds a custom aga:only_tool_destructible component that checks tool type, tool tier, block tier, Silk Touch conditions, and optional loot definitions before allowing the block to break.

Features:


🧩 Component Structure

Your block can provide the following configuration:

{
    silk_touch?: {
        ignore_tool?: boolean; // Allows Silk Touch to bypass tool checks
        loot?: string;         // Loot table used when Silk Touch applies
    };
    loot?: string;             // Loot table used when the tool is valid
}

📦 Example: JSON block definition using this component

{
  "format_version": "1.21.40",
  "minecraft:block": {
    "description": {
      "identifier": "example:steel_ore"
    },

    "components": {
      "minecraft:destructible_by_explosion": { "explosion_resistance": 10 },
      "minecraft:destructible_by_mining": { "seconds_to_destroy": 4 },
      "minecraft:is_pickaxe_item_destructible": {},
      "minecraft:iron_tier_destructible": {},

      // 👇 Your custom component
      "aga:only_tool_destructible": {
        "silk_touch": {
          "ignore_tool": true,
          "loot": "loot_tables/blocks/steel_ore_silk_touch.json"
        },
        "loot": "loot_tables/blocks/steel_ore.json"
      }
    }
  }
}

If:


🇲🇽 Español

¿Quieres que algunos bloques solo puedan romperse con la herramienta correcta? Este script añade un componente personalizado aga:only_tool_destructible que valida el tipo de herramienta, el nivel del tier, Silk Touch y loot personalizado antes de permitir que el bloque se rompa.

Características:


🧩 Estructura del componente

Tu bloque debe seguir la siguiente configuración:

{
    silk_touch?: {
        ignore_tool?: boolean; // Permite que Toque de seda ignore otras herramientas
        loot?: string;         // Loot con toque de seda
    };
    loot?: string;             // Loot con herramienta valida
}

📦 Ejemplo: JSON del bloque usando este componente

{
  "format_version": "1.21.40",
  "minecraft:block": {
    "description": {
      "identifier": "example:steel_ore"
    },

    "components": {
      "minecraft:destructible_by_explosion": { "explosion_resistance": 10 },
      "minecraft:destructible_by_mining": { "seconds_to_destroy": 4 },
      "minecraft:is_pickaxe_item_destructible": {},
      "minecraft:iron_tier_destructible": {},

      // 👇 Componente personalizado
      "aga:only_tool_destructible": {
        "silk_touch": {
          "ignore_tool": true,
          "loot": "loot_tables/blocks/steel_ore_silk_touch.json"
        },
        "loot": "loot_tables/blocks/steel_ore.json"
      }
    }
  }
}

📌

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Bedrock addons & mods walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more