Перейти к содержимому
Mineforgian

Command Items

A very simple way to bind commands to items on your server!

Загрузки
8K
Подписчики
27
Обновлён
2 ноября 2024 г.
Лицензия
MIT

Опубликован 2 января 2023 г.


Full Transcript

Command Items

Bind commands to items. This time, done right.

COMMAND BINDING Simple command binding using commands and snappy configuration!

The plugin allows you to define commands which are run when a player right clicks an item! Absolutely zero fuss.

Simple configuration comes straight from the box! After all, we're just binding commands to items. No complex config needed!

CUSTOMIZABLE

This plugin is customizable to the max. We mean it.

This plugin integrates the fully customizable messages protocol. Send clickable components, make chat menus, send URL's and more!

Ченджлог

1.18.2Релиз1.19.4, 1.20, 1.20.1 · 2 ноября 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!

1.18.1Релиз1.19.4, 1.20, 1.20.1 · 24 августа 2024 г.

This update fixes an issue caused by 1.21 materials missing.

1.18.0Релиз1.19.4, 1.20, 1.20.1 · 22 августа 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.17.0Релиз1.19.4, 1.20, 1.20.1 · 18 августа 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.

1.14.8Релиз1.19.4, 1.20, 1.20.1 · 29 февраля 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.

1.14.7Релиз1.19.4, 1.20, 1.20.1 · 26 февраля 2024 г.

This update fixes a bug with custom packets being sent in 1.20

1.14.6Релиз1.19.4, 1.20, 1.20.1 · 25 февраля 2024 г.

This update brings about two important bugfixes in the internal core library:

  • Fixed titlebars not being properly translated in lower versions
  • Fixed particles not working in 1.9
1.14.5Релиз1.19.4, 1.20, 1.20.1 · 25 февраля 2024 г.

This update brings a small bugfix which patches out the title bar not working properly in 1.8.x versions.

Комментарии

Загружаем…