Effects
About 432 wordsAbout 1 min
Effects are only evaluated while the node is unlocked and enabled. Each node rolls its own chance, so several nodes can apply to the same kill.
mob_drops_add
Adds to, or multiplies, the amount of an existing drop.
effect:
mob_drops_add:
ZOMBIE:
- 'ROTTEN_FLESH,+1,30'
ALL:
- 'ALL,+1,10'The first level is the mob: an entity type or ALL. The list contains entries in the format '<item>,<amount>,<chance>':
| Part | Meaning |
|---|---|
| Item | A Bukkit material, or ALL for every drop |
| Amount | +N to add, *N to multiply the current amount; N must be a whole number |
| Chance | Probability from 0 to 100, with up to two decimals |
Details:
- The chance is rolled separately for every drop stack of the kill.
- The effect only modifies drops that already exist. If the mob drops nothing, the node cannot create an item.
- It is applied when a company member is the killer. The shooter of an arrow is also counted, so ranged kills work.
- Locked and disabled nodes are skipped.
- ADD and MULTIPLY apply to the current amount, so multiple nodes combine; the order between nodes is not guaranteed.
mob_damage_multiply
Multiplies the damage of a direct hit on a mob.
effect:
mob_damage_multiply:
ALL:
- '2.0,10'The first level is the mob: an entity type or ALL. Each entry is '<multiplier>,<chance>', where the multiplier is a decimal number (2.0, 1.5) and the chance is from 0 to 100.
Details:
- Each node rolls independently; if two nodes trigger, the damage is multiplied twice.
- Damage against players never triggers it.
block_drops_add
Adds to, or multiplies, the amount of an existing block drop.
effect:
block_drops_add:
DIAMOND_ORE:
- 'DIAMOND,+1,10'
ALL:
- 'ALL,+1,5'ore_smelt
Smelts the ore when mined.
effect:
ore_smelt:
IRON_ORE: [15]Players have a 15% chance of getting an iron ingot instead of iron ore when mining iron ore.
mining_haste
Increases the speed of mining after breaking a block.
effect:
mining_haste:
ALL:
- '0,100,25'Players have a 25% chance of getting haste 1 for 5 seconds after breaking a block. The format is '<level>,<duration>,<chance>', where level is the potion level (0 = level 1), duration is in seconds, and chance is from 0 to 100.
item_durability_save
Decreases the durability loss of a tool when used.
effect:
item_durability_save:
pickaxe:
- '1.0,20'Players have a 20% chance of not losing durability when using a pickaxe. The format is '<multiplier>,<chance>', where multiplier is a decimal number and chance is from 0 to 100.pickaxe is a tool type, which can be found in config.yml