CommandToItem [1.8-1.19] | Custom consumable command items icon

CommandToItem [1.8-1.19] | Custom consumable command items -----

Create items that when consumed, commands will be executed!



Bug fix, messages, cooldowns
[​IMG]
  • New | Cooldowns can now be added to items
    • Code (YAML):
      items :
        ...
        infinite-cookie
      :
          name
      : "&a&lMagic Cookie &7(Example Item)"
          item
      : COOKIE
          # You can prevent items from being taken away when clicked
          consume
      : false
          # You can also add a short cooldown to prevent it from being spammed
          cooldown
      : 60
          lore
      :
           - "&7Does not get consumed"
          commands
      :
           - "heal %player%"

      ...

      messages
      :
        ...
        cooldown
      : "&cYou must wait &4%cooldown% &cseconds before using this item again."
  • New | Consumption messages can now be added to items
    • These will be sent to the player when an item is used
    • Code (YAML):
       strength-sword:
          name
      : "&e&lInstant Strength &7(Example Item)"
          item
      : GOLD_SWORD
          # You can add messages which will be sent to the player upon consumption
          # You can use:
          #   %item% for the name of the item
          #   %player% for the players name
          #   %cooldown% for players new cooldown after use
          messages
      :
           - "&7&oYou feel a sudden rush of blood..."
          lore
      :
           - "&7Gives you Strength 4"
          commands
      :
           - "effect %player% 5 15 3"
  • Fix | A bug where an item would be used twice when looking at the ground has been fixed
[​IMG]
----------, Aug 24, 2019
Resource Information
Author:
----------
Total Downloads: 15,424
First Release: Mar 12, 2016
Last Update: Aug 9, 2021
Category: ---------------
All-Time Rating:
34 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings