This release fixes a bug where the block break event wasn't being checked for whether it was cancelled or not, so the minecarts would summon even if the player's block break event was cancelled.
This release introduces a new feature and fixes a major bug that 1.0.0 & 1.0.1 had.
Features introduced:
- You can now set the slot for an item and the item will appear in the slot you set in the configuration. Fixes:
- You can now define the same item twice, previously, you couldn't.
⚠️ This update includes breaking changes to the configuration file and you will have to manually update your configuration, the changes are listed below:
Here is an example of what the configuration looks like now:
miner-cart: # Identifier used internally by the plugin.
name: "&9Miner's Cart" # Displayed in the Minecart's Chest GUI as the title.
# List of items that will be included in this preset.
items:
0: # Slot the item should be added in. Slots begin from 0.
material: "IRON_PICKAXE" # The Item Name.
display-name: "&fMiner's Pickaxe" # The Name of the item displayed to players.
# Lore of the Item displayed to players.
lore:
- "&7From the deepest depths of the caves."
# Item Enchantments
enchantments:
EFFICIENCY: # Enchantment Name.
level: 4 # Enchantment Level.
1:
material: "STONE"
display-name: "&dSpecial Stone"
lore:
- "&7I don't know why!"
amount: 64
2:
material: "STONE_BRICKS"
amount: 64
3:
material: "COOKED_PORKCHOP"
amount: 16
4:
material: "COBBLESTONE"
As you may notice from looking at the configuration, here's what's changed:
- Item Names are now defined under the
material
key. - Where once item names were defined, now the slot is defined.
Please make sure to update your configuration, else, it will not work!
This release fixes an issue with the configuration file and how the configuration is read.