// CommandItem | [1.8-1.12] | [Multiple Commands Per Item] \
1.3.1Perfect for rewards and/or trading!
CommandItem is a plugin that gives the ability to give players items with commands tied to them. Commands will be run upon right clicking with the item. The item can be traded among players or even sold if your auctions plugin supports custom items!
Requirements :
Java 8
⟿ Configurable command item :
You can custom make the item that will represent a command item in config.yml. Each command item's name is also set by the command creating it.
⟿ Droppable :
Each command item is droppable and storable. This means it can be traded among players and/or sold on markets that support custom items!
⟿ Multiple commands per item :
Each command item can hold multiple commands inside of it. If you can physically keep typing in the chat box, you can keep the commands coming.
Permission : "commanditem.admin"
⟿ config.yml :
In the config you will see a value 'Item'. Formatting here is very simple. You have the options 'id', 'amount', 'name', 'lore', 'enchantments', 'tags', and 'flags'. All of these are optional to include other than 'id'. THE ID FORMAT MUST BE "#:#". EVEN IF THE INTERNET SAYS THE ID IS JUST 57. THE ID WOULD BE "57:0". Also, 'enchantments', 'tags', and 'flags' are explained at the bottom of this tutorial.
Enchantments: Enchantments can be placed on ANY item. However, their effect may change depending on which item they are placed on and/or may just not do anything at all. For this reason I can't really describe what they do, you just have to use common sense.
- arrowdamage
- arrowfire
- arrowinfinite
- arrowknockback
- damage
- digspeed
- durability
- fireaspect
- knockback
- lootbonusblock
- lootbonusmob
- luck
- protectionfall
- protectionfire
- silktouch
Tags: Tags can not be placed on any item and can potentially break your recipe if used incorrectly.
- "skullskin:<PLAYERNAME>" : Changes the skin of a skull to a player's
- "durability:#" : Changes the durability of an item with durability. 0 is perfect condition and the higher you go, the more work the item gets. Different items have different breaking durabilities.
- "unbreakable" : Makes a tool unbreakable.
- "damage:#" : Useful for custom textured items. Default damage is 1.
Flags: Flags can be placed on any item and do what they say basically
- HIDE_ATTRIBUTES
- HIDE_DESTROYS
- HIDE_ENCHANTS
- HIDE_PLACED_ON
- HIDE_POTION_EFFECTS
- HIDE_UNBREAKABLE
⟿ Command :
To give a command item, you must first refer to the command format:
/citem <player> <#> -n <item_name> -t <commands>
-n represents where the item name begins. You must include this and at least one word after it. Color codes are allowed.
-t represents where the item commands begin. Commands are to be typed without '/'. Multiple commands can be utilized by using the ';' character. An example of a command item with multiple commands would be:
/citem TheTealViper 1 -n Broadcast Shit -t say Here is command 1;say Here is command 2;time set day;weather clear
As I said, I'm just a college student. This is just a hobby. You have no need to give me money. However, if you wish to help pay for my overpriced books and classes, that would be extremely appreciated.
-_- https://paypal.me/AaronSkeels -_-
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta