Skip to content

Loot Conditions and Functions

Ruben Taelman edited this page May 18, 2020 · 3 revisions

As of Minecraft 1.15, this mod introduces a couple of loot conditions and functions that can be reused.

Examples can be found here: https://github.com/CyclopsMC/IntegratedDynamics/tree/master-1.15/src/main/resources/data/integrateddynamics/loot_tables/blocks

Loot Conditions

Wrench

The integrateddynamics:match_wrench condition enables checking whether or not a block was broken by a tool with the forge:wrench tag. This will therefore not only match with the Integrated Dynamics Wrench, but also wrenches from other mods (that implement have this tag).

Example:

{
  "type": "minecraft:block",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "integrateddynamics:proxy"
        }
      ],
      "conditions": [
        { "condition": "integrateddynamics:match_wrench" }
      ]
    }
  ]
}

Loot Functions

  • integrateddynamics:copy_proxy_id: Copy the proxy id to NBT.
  • integrateddynamics:copy_mechanical_drying_basin_tanks: Copy the mechanical drying basin tanks to NBT.
  • integrateddynamics:copy_mechanical_squeezer_tank: Copy the mechanical squeezer tank to NBT.
  • integrateddynamics:copy_mechanical_machine_energy: Copy the mechanical machine energy to NBT.