Auto-Rename
Description
What it is
This plugin will rename configurable items to a configurable name when they are created, enchanted, or combined.
commands
- AR-Reload: Reloads the config
Permissions
Auto-Rename.ReloadConfig: permission to reload the config
- If anyone wants any for whatever reason just ask.
How it works
When someone creates, enchants, or combines items the name is reset if it is in the config.
when crafting or combining the name only shows up correctly after it is taken out of the result slot.
Config
The items use material names from the bukkit api so that means that it is all in caps without spaces, for instance a diamond sword is DIAMOND_SWORD
Under the item there can be a section called default. This is what it defaults to on creation and if the enchantments don't match any other category. This section is optional. If it isn't there then the normal name will be used.
For items with a different data value than 0 you just add a separate section under the item number called data then have the data value there. This would be used for something like wool or dyes or wood.
For items to have enchantments and have a different name you put a number with apostrophes around it (eg. '1') starting with 1 and going to how ever many different enchantment combos you want. Under the number you have to have a section called enchantments. This uses the name of enchantments in the bukkit api then a colon and the level of the enchantment. For instance fo a power 1 enchantment it would be ARROW_DAMAGE:1, for the name of the item with those enchantments you have to put another category under the number called name then the name goes after it.
For potions you have to put the potion type from the bukkit api then under it you put the level of the potion. For instance, for a speed 1 potion you would have to put SPEED: then under it would go '1': "name you want".
All of the names that I keep referring to in the bukkit api are under static public attributes.
Also if you want the name to be more than one word you have to put either quotes or apostrophes around it and color codes work for the names. You have to put &# to identify it as a certain color that you want.
I have examples of all of this in the default config.
To Do
- Anyone have any suggestions?
Known Bugs
- When you take something out of the result slot of the furnace inventory the smelting slot turns into whatever you took out if the name was changed until the inventory updates.
- If anyone finds any please create a ticket for it
@Byamarro
Level 1 and 2 of POTION_TYPE will be called Gross Potion
Hope that helps
@Jogy34
I'm afraid that I can't understeand u correctly because of my lacks of eng skills. Can u give me just an example?
BTW I want to give another name for: Gross Potion
How to do it? It don't have any effects.
@Byamarro
That's because you have to start at 1. if you are looking to add the data value you have to add data: # under it.
I tried:
And nothing work.
@RustyDagger
The problem with setting up a shop that gives un-named items is that when they do anything with it, it get's renamed. Your best bet would be to exchange all of the shops to take named items.
Howdy will this activate for existing items?
My issue is that I use a plugin called shopkeeper and I played around with renaming items before the issue was that as it uses the villager trading GUI as a shop it would not accept an Item even if it was the right items only renamed.
The shop only holds 8 trades and they are all full so providing a way to convert existing un named items to named items for my players is a bit of a pain.
Im really not sure how to go about it I guess i could just set up another Item exchange shop that exchanges unnamed for named.
@liversnaprocks
What would be the point in a video. You it would just be config changing and then looking at the items.
@wahok
I might at some future date add data value compatibility but that was giving me some problems when I tried to add it a while ago. If I get that working then I'll add lore (the stuff on extra lines) to it also but as for right now I'm working on getting my TARDIS plugin working. I might come back to this one to add those after I get that working properly but I don't know when that would be.
Someone make a video already <<:)))
I think its great but can you make when I'm type &n (or something) in front of the item name the text letters will be displayed in the next line (like color codes).
Ex.: &1Diamondsword &n&4Be carefull...
turn into
Diamonsword
Be carefull...
Can you add the ability to add lore to an item? like when it says 'diamond sword' 'The best sword ever'
It would be really good to add that because NO ONE else has made one that does it yet :( anyway thanks for the plugin!
@Byamarro
It's giving me some trouble when I try to add data values so they haven't been added yet
Ok I pushed it to work. Another question. How to rename Cocoa beans? How to select damage value of INK_SAC?
@Byamarro
If it is still giving you the correct name then it should be fine without the ''. I don't really get what you mean by the strange letter though. The only thing that I can think that might cause a problem even though it shouldn't is the '§' so you could try replacing it with '&' but, again, I doubt it would actually make any difference.
"
WOOD_PICKAXE: default: §rFlint Pickaxe
" I put that but: There is strange letter <sub>A" before Flint Pickaxe. And BTW I can put Flint Pickaxe in ' ' - when I reload server ' ' disappears.</sub>
@VergilPrime
I just realized that I never actually implemented data values. I'll do that now.
@Jogy34
Could you be a little more specific as to how to use damage values?
@Thegh0st2
I have it set up so that items get renamed when they are picked up. This was updated in the V.0.2 patch so make sure that is the one you are using.
@VergilPrime
If you are talking about data values then it should as long as they are stored correctly by bukkit/minecraft. And no, at least not right now.
This is epic, but I have a couple of suggestions. Make the drops from monsters change the name too, and mining ores or whatever have the option to change name. I have made part of a runescape server, and I want the drops to be like it too :D
Does this support unique damage values? For instance if an item is crafted with a damage value of :1 (an item that doesnt normally do that) it should have a different value than an item with a value of :2
Also could you make it work with numerical item-codes?