MyItems
This plugin allows you to create custom items, with custom names and lores, which can execute commands on different events.
Features:
- Create items with custom names and lores (color codes supported)
- These items can execute commands on different events
- They can execute commands as the player that used it or as the console (change from the config file)
- Use the name of the player that uses the item inside the command (with <user>)
- Use the name of the player or mob that got clicked on (only for rightclickentityevent or damageentityevent) inside the command (with <clicked>)
- Use multiple-lined lores using "&&" (without quotes) for a new line
- Create global items (see "What are global items?" below)
- Create single-use items
- Use data values for items
- Execute multiple commands on one event using " && " (without quotes) to split them
Please read the Features list, carefully, as it contains details about what the plugin can do, and how to use those. If you have a question, it's likely that the answer might be there (or somewhere else on this page).
Permissions:
By default, only OPs have these permissions.
- myitems.create
- myitems.setlore
- myitems.setcommand
- myitems.get
- myitems.use.<ItemName>
- myitems.list
- myitems.delete
Commands:
- /mi - Help page
- /mi get <name> [playername] - Get an item
- /mi list - List the items
- /mi create <name> <display name> <item ID> [-g] [-s] - Create a new item. If you use the -g flag, the item becomes global. If you use the -s flag, it becomes a single-use item
- /mi setlore <name> <lore> - Set the lore of an item
- /mi setcommand <name> <event> <command> - Set the command to be executed on certain events (see below) for an item
- /mi delete <name> - Delete an item
Events:
- leftclickevent (Event Group)
- damageentityevent - When you hit another player or a mob
- leftclickblockevent - When you left-click a block
- leftclickairevent - When you left-click in the air
- rightclickevent (Event Group)
- rightclickentityevent - When you right-click another player or a mob
- rightclickblockevent - When you right-click a block
- rightclickairevent - When you right-click in the air
- consumeevent - When you eat the item (only for food)
- blockplaceevent - When you place a block
- holdevent - When you first hold the item
- throwevent - When you throw the item (only for throwable items such as snowballs)
- bedenterevent - When you enter a bed
More events will be added later (give me some ideas).
What are global items?
Let's say you create an item (using "/mi create") that's not global, and set the commands for it. If this item has the ID of a dirt block, it won't change the behavior of a normal dirt block. Normal dirt blocks won't execute commands, but the dirt block you get with "/mi get" will.
Now, if that's how non-global items are, you can probably guess what global items are. You create an item (using "/mi create") which is global, and set the commands for it. It has the ID of a dirt block. The dirt block you get with "/mi get" will execute commands, however, every other dirt block in minecraft will also be able to execute the same commands.
Bugs/Problems:
If you find one, submit a ticket.
Upcoming Features:
- itembreakevent
- Enchanted items
- Craftable items
- Permissions override with items (execute as OP)
- Make a flag that allows to cancel the event
- Configurable no permission message
- Allow stopping the normal behavior of items in a MyItems event
If you want a feature added, submit a ticket.
Note: If you have a question, read everything again, very carefully, to make sure your question isn't something that was answered here. If you still can't figure it out, post it in the comments.
-
View User Profile
-
Send Message
Posted Mar 28, 2018Exactly what I needed!
Works good with Spigot 1.12.2 - hope there will not be any problems in the future.
It helps me give a lot of sense to Police Officer role in my server.
Easy to create jail sticks with different times, mute hammer, tasers (with effects).
-
View User Profile
-
Send Message
Posted Mar 27, 2018Could not pass event PlayerInteractEvent to RightClickCommands v1.0 27.03 14:36:00 [Server] INFO org.bukkit.event.EventException: null
i get this on spigot 1.12.2
-
View User Profile
-
Send Message
Posted Sep 24, 2017A good plugin how ever when i do this
/mi create Nether_star &f&lRANK: &b&lGod 399 -s
it just comes back saying An internal error occurred while attempting to perform this command
Please tell me what im doing wrong
-
View User Profile
-
Send Message
Posted Mar 8, 2018In reply to j4mes2020:
-
View User Profile
-
Send Message
Posted Mar 9, 2018In reply to Forge_User_60244648:
In reply to Forge_User_60244648:
-
View User Profile
-
Send Message
Posted Feb 26, 2017plis add
floortrowevent = trow item to floor "q"
unhoverevent = unhover desselect item slot
killevent = kill with that item in hand
pickupevent = on pick up this item
watching coordinates a mode to select the block or the entity you have wathed when you use it in the command
example: /mi setcommand rightclickblockevent /setblock "wcoordX" "wcoordY" "wcoordZ" air 0 destroy
to destroy clicked block or to summon entity in the position you have watched
watching direction /mi setcommand rightclickevent /summon arrow ~ ~1 ~ {Motion:[<watchingdirection>]}
trow an arrow on the direction than you are watching
use delay = the delay than needs the items command to be executed other time
damage bar animations with use delay (recharge damage bar), lore and name animations.
if the last command executed succesfully true / false in commands with multiple commands && || //
delete command feedback
it will be very helpfull.
thanks.
-
View User Profile
-
Send Message
Posted Apr 25, 2016I really like the customizability of this plugin (different click events, for example), but I do have one complaint: I'm executing an item-command via Console that will give players a designated server currency, but the max I can give them is 64 of said item. Why is 64 the maximum? I would much rather have increments of 100.
-
View User Profile
-
Send Message
Posted Feb 27, 2016Can you get these to implement cancellable? im trying to use denizen to stop players from activating the items during very specific times, and my output shows the click event gets cancelled but the MyItems still runs the commands.
-
View User Profile
-
Send Message
Posted Feb 3, 2016Pls add a config option to remove the message which enter if you typed the get command
-
View User Profile
-
Send Message
Posted Jan 1, 2016I'm planning to rewrite this plugin from scratch when I have time. I'll keep your feedback in mind.
Update: I started working on it today.
-
View User Profile
-
Send Message
Posted Dec 28, 2015I do enjoy this plugin, I use it on my server. Only things I would gladly request are:
Making it a YML file rather txt so i can use special codes (and add /mi reload so the yml will reload) Add seconds? switch <user> with %player% and the new line with | or something a bit less confusing
Everything else is nice. Thankyou for this plugin.
-
View User Profile
-
Send Message
Posted Dec 23, 2015This plugin would be so fking awesome if it worked! Spigot 1.8.7 here.
@BaranCODE
-
View User Profile
-
Send Message
Posted Nov 29, 2015Can you update this plugin to were, when you set a command via 'mi set command' you can add more that just one word. I have a problem with trying to give players kits with a custom global item because it only registers 'kit' i want it to register 'kit vip' both words. Please add this function, thanks
-
View User Profile
-
Send Message
Posted Nov 23, 2015Hi sir please update this plugin, this is very useful! please update it even just the execute as OP
-
View User Profile
-
Send Message
Posted Sep 28, 2015Please update it. For some reason its not working with ChestCommands
-
View User Profile
-
Send Message
Posted Jul 20, 2015Hi!
I have a idea for a event. Could you add a event that would trigger when the item is dragged and dropped onto a another item. For example a ecnhanting rune would be dragged and dropped onto a diamond sword, and then a command would execute. That would help a lot for my server! Thanks for listening.
-
View User Profile
-
Send Message
Posted May 18, 2015We can une accents like é à ?
-
View User Profile
-
Send Message
Posted Apr 24, 2015This is a really great plug. Have not found one that even compares and works as well. Even on 1.8.3 spig - loads with an error but still works very well. Thank you for your hard work. Looking forward to updates.
-
View User Profile
-
Send Message
Posted Apr 10, 2015Please, add the permission override feature :D
-
View User Profile
-
Send Message
Posted Mar 22, 2015I would really like to see the permissions override feature happen.