Command Items 2.2.1

Create consumable items that trigger commands

  1. Yamakaja
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    Source Code:
    https://github.com/Yamakaja/commanditems
    If you need support for Minecraft versions 1.8-1.12, download version 2.0.5 here!

    This plugin aims to allow creation of special items that trigger certain actions like commands, including more complex and timed chains of events.

    See the README.md over at GitHub for detailed information. To get you started, you can just take a look at the example items in the default config:

    Code (YAML):

    #########################################
    #                                       #
    #       Command Items by Yamakaja       #
    #                                       #
    #########################################

    # Note, item use requires the cmdi.item.<name> permission. I.e. to use the fly items you'll have to give the player cmdi.item.fly

    items
    :
      fly
    :
        item
    :
          type
    : FEATHER
          name
    : "&a&lFlight token"
          lore
    : ["&1Click for 10 seconds of flight!", "&kRandom second line"]
          glow
    : true
        consumed
    : true
        cooldown
    : 20
        sneaking
    : true
        actions
    :
          - { action
    : COMMAND, by: CONSOLE, command: "fly {player} on" }
          - { action
    : MESSAGE, to: PLAYER, message: "&aFlight has been enabled!" }
          - { action
    : REPEAT, from: 9, to: 1, increment: -1, delay: 20, period: 20, actions: [{ action: MESSAGE, to: PLAYER, message: "&a{i}s to go" }]}
          - { action
    : WAIT, duration: 200, actions: [
              { action
    : COMMAND, by: CONSOLE, command: "fly {player} off" },
              { action
    : MESSAGE, to: PLAYER, message: "&cFlight has been disabled!" }
            ]}
      helpstick
    :
        item
    :
          type
    : STICK
          name
    : "&a&lHelp Stick"
          lore
    : ["&1Click to send a help request to moderators!"]
          glow
    : true
        consumed
    : false
        cooldown
    : 60
        actions
    :
          - { action
    : MESSAGE, to: PERMISSION, perm: group.moderator, message: "&6{player} &arequested help!" }
          - { action
    : MESSAGE, to: PLAYER, message: "&aModerators have been notified!" }
      xpparty
    :
        item
    :
          type
    : EXP_BOTTLE
          name
    : "&a&lEXP PARTY"
        consumed
    : true
        actions
    :
          - { action
    : REPEAT, period: 1, delay: 0, from: 0, to: 99, actions: [
              { action
    : ITER, what: ONLINE_PLAYERS, actions: [
                { action
    : CALC, a: "{iter_locY}", b: "4", op: ADD, target: "y", actions: [
                  { action
    : COMMAND, by: CONSOLE, command: "minecraft:summon minecraft:xp_bottle {iter_locX} {y} {iter_locZ}" }]}]}]}
          - { action
    : MESSAGE, to: EVERYBODY, message: "&a&l{player} has started an XP party!" }
    You can then give out the item using the /cmdi give <target> <item> command.

    Permissions overview:
    Code (Text):
    /cmdi reload        cmdi.reload
    /cmdi help          cmdi.help
    /cmdi give          cmdi.give
    Item use            cmdi.item.<name>

Recent Updates

  1. Add unbreakable attribute
  2. Support for 1.15.2
  3. Minor fixes

Recent Reviews

  1. IPenguinI
    IPenguinI
    1/5,
    Version: 2.2.1
    doesnt work.









    .
  2. Mr_iDreaZz_
    Mr_iDreaZz_
    1/5,
    Version: 2.2.1
    Aucune des commandes ne fonctionne, veuillez résoudre ce problème et
    j'évaluerai 5 étoiles si vous pouvez m'aider merci
  3. peddyyy2323
    peddyyy2323
    5/5,
    Version: 2.2.1
    Very nice plugin I like it very much Good job =)

    Update to 1.16.5
    Update to 1.16.5
    Update to 1.16.5
    Update to 1.16.5
    Update to 1.16.5
  4. sadasdasda412332
    sadasdasda412332
    5/5,
    Version: 2.2.1
    error spigot 1.14.4 .
  5. boyscontentclub
    boyscontentclub
    4/5,
    Version: 2.2.1
    This is great, works exactly like how I want it to, except for one issue. This plugin does not seem to support NBT tag data in commands. Not a big deal, usually I can use this in conjunction with other plugins to work around this issue, but it would be great if support for this was added!
  6. Legendarybob13
    Legendarybob13
    5/5,
    Version: 2.2.1
    tysm :) .
  7. TheHytapZEngine
    TheHytapZEngine
    5/5,
    Version: 2.1.1
    I very love this plugin,i can create custom item,but please update to 1.15.2
    *******************************************
  8. Rollol
    Rollol
    5/5,
    Version: 2.1.1
    How do iI set variable to target player, or the player that is pointed at.

    - { action: COMMAND, by: PLAYER, command: "duel {target-player}" }
  9. PhantomXCraft
    PhantomXCraft
    5/5,
    Version: 2.1.1
    *****************************************************

    Nice plugin, Please update 1.15.2 :'(

    *****************************************************
  10. Staraptor0
    Staraptor0
    5/5,
    Version: 2.1.1
    I need help making an item that requires a permission to be used. please help! pm here if you know how to do this.