⚡ Command Items ⚡ TeamMT ⚡ icon

⚡ Command Items ⚡ TeamMT ⚡ -----

The simplest way to bind commands to items



Implemented ClickType and CustomModelData
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 (Text):

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"
 
----------, Aug 22, 2024
Resource Information
Author:
----------
Total Downloads: 3,152
First Release: Dec 20, 2022
Last Update: Nov 2, 2024
Category: ---------------
All-Time Rating:
16 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings