OBSIDREL / DOCS

Documentation

Guides, tutorials and technical references for the Obsidrel ecosystem.

DocumentationLoot Engine: rewards, weights and Actions

Loot Engine: rewards, weights and Actions

Tables live in plugins/Obsidrel/resources/loot/. ALL processes entries; WEIGHTED performs weighted selection. A weight is relative, not an independent percentage.

Basic drop chance

yaml
ruby_ore:
  enabled: true
  mode: ALL
  rolls: 1
  delivery: DROP
  entries:
    ruby:
      type: ITEM
      item: obsidrel:ruby
      amount: '1-3'
      chance: 75

Advanced rewards and Action

yaml
ruby_cache:
  enabled: true
  mode: WEIGHTED
  rolls: 2
  delivery: INVENTORY
  entries:
    ruby:
      item: obsidrel:ruby
      amount: '1-2'
      weight: 70
    diamond:
      item: minecraft:diamond
      amount: 1
      weight: 20
    pulse:
      type: ACTION
      action: ruby_pulse
      weight: 10

Prerequisites: obsidrel:ruby and ruby_pulse are official sample dependencies.

FieldMeaning
enabledOn/off
modeALL, WEIGHTED
rollsNumber of rolls
deliveryDROP, INVENTORY and supported context
entries.<id>.typeITEM, COMMAND, ACTION in official samples
item, amount, chance, weight, action, commandType-specific settings

Call this from a Trigger using loot: [ruby_cache]. ADDITIVE adds loot; REPLACE replaces compatible defaults. Test duplicate drops and Silk Touch.

Actions · Triggers.

Was this article helpful?Loading ratings…

Help us improve Obsidrel documentation. One vote per account and article. Discord AI feedback can also contribute when the answer cites this article.