!English is not my native language. This page may contain translation errors.
This is a plugin that adds a fully customizable drop in your caves and mines: when you mine a stone, you may get one of the items that represent new ore.
You can't know for sure if an ore will fall out of a stone, because the stones don't hint at it in any way, so it's always a surprise to you.
The ore in this plugin is not just trinkets. Put two pieces of ore of the same type in 2 anvil slots to turn them into useful items. For example, 2 Rearden Metal will turn into 2 artificial ender pearls. They are essentially normal ender pearls, but with a different name and description. All of this you can customize, and even the commands that will be executed when mining the ore.
Code (YAML):
8: #Ore index. Indexes must not be repeated! In order for an ore to drop out, its index must be less than the active_index in the config ore_name: "&9 EXAMPLE NAME"#Ore name ore_lore: "&7 DESCRIPTION HERE"#A description of your ore. Use "\n" to separate lines ore_extra: "\n&8Rarity: &4Extremely rare"#Additional description field ore_item: "SKULL_ITEM"#What item will be ore? For example APPLE head_name: "Tecno_"#If the subject of your ore is a head, then write the player's nickname here to change the skin damage: 3
#Item damage. Good for colored wool loot_chance: 50
#Drop chance from 0 to 100 enchanted: true
#Will the ore have an enchantment effect? true or false unbreakable: false
#If it's a tool or a weapon it won't break if true hide_unbreakable: false
#Hide indestructible inscription turns_into: "ENDER_PEARL"#Item to transform turns_into_name: "Faux ender pearl"#Item name when transforming turns_into_damage: 0
#Damage to an item during transformation cmd_player: #The command executed by the player when mining ore - /say hello! My name
{PLAYER
} - /time set day
cmd_console: #The command executed by the console when mining ore - /time set day
/unexp /unexp reload - Reload plugin config
/unexp list - View list of ore (If the name of the
ITEM is red and underlined, then there is no such item.)
Small example of ore
To turn an ore into useful items, put 2 ores of the same type in both anvil slots, and then they will automatically be converted into new items. In the screenshot, these 2 ores in both slots will be replaced with "artificial ender pearls".
(Not all ores are converted by default. An exception is, for example, a piece of gold. But you can customize this).
I assume that most likely this mechanic will be improved in the near future.
chance_multiplication is the percentage value. If you set it to 0, then you will receive absolutely all ores every time you break a stone. 100 is the default value. If you make, for example, 1000, then the ore will fall less often
active_ore is the maximum index. If you have a maximum index of 10, but there is an ore with an index of 11, then this ore will not fall. Do not make this value greater than your maximum ore index.