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
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
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.
| Field | Meaning |
|---|---|
enabled | On/off |
mode | ALL, WEIGHTED |
rolls | Number of rolls |
delivery | DROP, INVENTORY and supported context |
entries.<id>.type | ITEM, COMMAND, ACTION in official samples |
item, amount, chance, weight, action, command | Type-specific settings |
Call this from a Trigger using loot: [ruby_cache]. ADDITIVE adds loot; REPLACE replaces compatible defaults. Test duplicate drops and Silk Touch.