Skip to content

Trait Effect Types

SilentChaos512 edited this page Dec 27, 2024 · 1 revision

WIP, please have patience... I'm writing this on my phone while I have nothing else to do lol

List of Effect Types

silentgear:attach_data_components

Adds additional data components to an item via a data component patch. Takes a single JSON object, components, which maps component type names to the JSON objects representing the components.

silentgear:attribute

Adds attributes to the item (attack damage, mining bonuses, max health modifiers, etc.) Takes a single JSON object, attribute_modifiers, which maps a "part/gear type" key to a list of attribute modifiers.

silentgear:block_filler

When an item is used on certain blocks, it will replace the target block and possibly others nearby with a different block. This is similar to how shovels transform grass blocks into paths.

{
  "type": "silentgear:block_filler",
  "fill_properties": {
    "block": "minecraft:dirt_path",
    "facing_plane_only": false,
    "range_x": 1,
    "range_y": 0,
    "range_z": 1,
    "replace_block_entities": false
  },
  "sound": {
    "pitch": 1.0,
    "pitch_deviation": 0.1,
    "sound": "minecraft:block.grass.break",
    "volume": 1.0
  },
  "target": {
    "block": "minecraft:grass_block"
  },
  "use_properties": {
    "damage_per_block": 0.5,
    "sneak_mode": "pass"
  }
}