Skip to content

Customizing Resonance Drops

DaFuqs edited this page Aug 10, 2023 · 13 revisions

Resonance is an enchantment valid for mining tools, which unlocks in the late game tree. When destroying a block with a resonance enchanted tool, all drops of one item type will be converted to a whole other item type.

You can specify additional resonance drops, or edit existing ones, by placing json files in the directory <data_pack_or_mod_name>/resonance_drops/.

Properties:

  • (Ingredient) input: The item that will be converted
  • (Identifier) output: The item that will be dropped instead. Defaults to the original item, if not set.
  • (String[]) state_tags_to_copy: Block State to preserve
  • (String[]) nbt_to_copy: Block Entity NBT to preserve

Example: Dropping pure coal instead of coal

{
  "input": {
    "item": "minecraft:coal"
  },
  "output": "spectrum:pure_coal"
}

Example 2: Preserving Block State

When a Respawn Anchor is broken, it retains it's charges.

{
  "input": {
    "item": "minecraft:respawn_anchor"
  },
  "state_tags_to_copy": [
    "charges"
  ]
}

Example 3: Preserving Block Entity Data

When a block in the minecraft:signs tag is broken with Resonance, various kinds of block entity data is preserved.

{
  "input": {
    "tag": "minecraft:signs"
  },
  "nbt_to_copy": [
    "GlowingText",
    "Color",
    "Text1",
    "Text2",
    "Text3",
    "Text4"
  ]
}

Clone this wiki locally