Customize Your Coin Economy - VillagerUnknown/VillagerCoin GitHub Wiki
Including Emerald and Netherite Coins in Loot Tables and Mob Drops
By default, Villager Coin includes Copper, Iron, and Gold coins in the loot tables and mob drops with lower value coins being more common.
Unless configured otherwise, Emerald and Netherite coins are only available through currency conversion crafting due to their high values. This includes any Emerald or Netherite coins included by addon mods.
Once configured to be included, Emerald and Netherite coins will only drop from their assigned mobs and loot tables. Add-ons can change where these coins drop but Emerald coins are typically only found in End Cities and Netherite coins are typically only found from Boss mobs (Ender Dragon, Wither, Warden).
Loot Tables
To include Emerald and Netherite coins in Loot Tables you will need to configure these options:
- emeraldLootTableWeight - Weight for Emerald coins. (Set this above 0, 1 for lowest)
- netheriteLootTableWeight - Weight for Netherite coins. (Set this above 0, 1 for lowest)
Mob Drops
To include Emerald and Netherite coins in Mob Drops you will need to configure these options:
- emeraldDropMinimum - Minimum amount to drop for Emerald coins, if the chance is successful. (Set this above 0, 1 for lowest)
- netheriteDropMinimum - Minimum amount to drop for Netherite coins, if the chance is successful. (Set this above 0, 1 for lowest)
- emeraldDropMaximum - Maximum amount to drop for Emerald coins, if the chance is successful. (Set this above 0, 1 for lowest)
- netheriteDropMaximum - Maximum amount to drop for Netherite coins, if the chance is successful. (Set this above 0, 1 for lowest)
- emeraldDropChance - Chance that Emerald coins will drop on mob death. (Set this above 0, 1 for guaranteed drop)
- netheriteDropChance - Chance that Netherite coins will drop on mob death. (Set this above 0, 1 for guaranteed drop)
- emeraldDropMultiplier - Amount multiplier for Emerald coins, if dropped. (Set this above 0, 1 for lowest)
- netheriteDropMultiplier - Amount multiplier for Netherite coins, if dropped. (Set this above 0, 1 for lowest)
Collectable Coins
Collectable coins work differently when included in Loot Tables. They first have to pass their drop chance to be included in the loot table and then they have to pass the loot table rolls with their fixed weight. Collectable coins receive 1 roll with their minimum and maximum Loot Table Weight's set to the same value. E.g. If you set a Loot Table Weight to 10 for a collectable coin it will have a minimum and maximum weight of 10. I recommend a value of 1 to reduce the chances.
Regardless of configuration options, collectable coins won't drop after they've reached their maximum allowed number in circulation.
To include collectable Emerald and Netherite coins in Mob Drops you will need to configure these options:
- emeraldCollectableDropChance - Drop chance of collectable Emerald coins will drop on mob death. (Set this above 0, 1 for guaranteed drop)
- netheriteCollectableDropChance - Drop chance of collectable Netherite coins will drop on mob death. (Set this above 0, 1 for guaranteed drop)
To include collectable Emerald and Netherite coins in Loot Tables you will need to configure these options:
- emeraldCollectableDropChance - Drop chance of collectable Emerald coins are included in the loot table. (Set this above 0, 1 for guaranteed drop)
- netheriteCollectableDropChance - Drop chance of collectable Netherite coins are included in the loot table. (Set this above 0, 1 for guaranteed drop)
- emeraldLootTableWeight - Weight for Emerald coins. (Set this above 0, 1 for lowest)
- netheriteLootTableWeight - Weight for Netherite coins. (Set this above 0, 1 for lowest)