Skip to content

Presets

Starman edited this page Jul 16, 2026 · 2 revisions

You can specify presets instead of specific parameters.
Presets are located in potato_projectile/presets.

Examples:

{
  "break_steps": 3,
  "tag": "cdb:wood_block"
}
{
  "break_steps": 7,
  "block": "minecraft:stone"
}

To use a preset for a projectile, you need to create a `presets` array within the `on_block_hit` object.
  "on_block_hit": {
    "type": "cdb:break_block",
    "presets": [
      "cdb:stone",
      "cdb:wood"
    ]
  }

When should presets be used?
They should be used when you want to specify a different number of break steps for different blocks.

Clone this wiki locally