Command Items

Command Items

Plugin

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

Server Game MechanicsManagement

3,188 downloads
24 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...
Filter versions...

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!

This update fixes an issue caused by 1.21 materials missing.

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]

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.

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.

Bug fixes

by masecla22 on Feb 26, 2024
Download

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

Bugfixes

by masecla22 on Feb 25, 2024
Download

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

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

This update brings a small bugfix which caused skulls to not work properly in 1.20.4 in certain cases.

This fixes an issue caused by a missing NBT tag setter in non 1.18 versions.

With that, full 1.20.4 support should be here!

1.20.4 support has been added!

The long awaited 1.20.2 support has finally arrived!

As always, if anything goes wrong, let us know through the Discord server!

Fixed a small bug in the core library which sometimes caused cache misses on the class names, and it should bring far more consistent tick times to the plugin.

This update brings full hex color support using the standard &#123456 format in the messages file!

For more information check out the wiki

https://panel.masecla.dev/wiki/General Options/Messages File

This update brings a small adjustment to how messages are handled in the plugins.

Specifically, this brings a performance increase in all versions between 1.12 and 1.16

This update brings a patch for 1.20.1.

This has been thoroughly tested, however if any issue show up, please let us know!

This brings XMaterial Bukkit feedback in order to allow hybrid servers to add functionality with items not present on Bukkit.

We've also updated the definitions for items to 1.20 so it should now be 100% supported

After countless hours spent by the development team to ensure everything is up to date, we happily present you Spigot 1.20 support.

This update brings full compatibility with all the features that this brings.

Please join our discord at https://discord.gg/FdMjWSP to report any issues you might have with any of the plugins in 1.20


Project members

masecla22

Owner

Details

Licensed MIT
Published 2 years ago
Updated 12 days ago