
Relocation issue bug fix
release3 ноября 2024 г.This update brings a minor fix with the relocation of the core library. This could cause issues if you were running multiple MT plugins and some of them are not updated!
Fixed missing materials for 1.21
release24 августа 2024 г.This update fixes an issue caused by 1.21 materials missing.
Implemented ClickType and CustomModelData
release22 августа 2024 г.The plugin now has support for specifying a click type to allow the item to execute, as well as introducing support for CustomModelData on items.
Here's what an item looks like now
[code] items: basic_item: consume: true # If the item should be consumed when used event-cancel: true # If the event should be cancelled when used (e.g. right-clicking a block)
# This is the list of allowed clicks. The allowed options are:
# RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK, SHIFT_RIGHT_CLICK_AIR, SHIFT_RIGHT_CLICK_BLOCK, SHIFT_LEFT_CLICK_AIR, SHIFT_LEFT_CLICK_BLOCK, ALL
allowed-clicks:
- RIGHT_CLICK_AIR
- RIGHT_CLICK_BLOCK
- LEFT_CLICK_AIR
- LEFT_CLICK_BLOCK
- SHIFT_RIGHT_CLICK_AIR
- SHIFT_RIGHT_CLICK_BLOCK
- SHIFT_LEFT_CLICK_AIR
- SHIFT_LEFT_CLICK_BLOCK
- ALL
# permission: "somepermission.for.item" # The permission required to use the item
item:
amount: 1 # The amount of the item
type: RED_BED
name: "&cSimple Test Item"
lore:
- ""
- "&7Click me to run"
enchanted: true
# custom-model-data: 1234 # The custom model data of the item
commands:
# forceOp: false # If the player should be opped when the command is executed
byplayer:
- "say Hello from CommandItems!"
byconsole:
- "give %player% diamond 1"
[/code]
1.20.6 and 1.21 Update
release18 августа 2024 г.A bit late to the party, however this update finally brings 1.20.6 and 1.21 support to the plugins!
As always, and especially now as 1.20.6 changed a lot of things, please join the discord and let us know if there are any issues!
This also fixes a small issue in the plugin with regards to how items were being built.
Removed a field inside of the core lib
release29 февраля 2024 г.With the previous updates, a lot of internal changes have been made.
This update removes a small field used for reflection which is no longer used by the API.
