UltraItems
<font color="red" size="5">UltraItems is going to be merged with SpoutBlocks into SpoutMaterials.</font>
UltraItems creates custom items (with custom title and texture). You can also set crafting recipe and left / right mouse button click action. Action is something to post in chat (eg. command or some message), so you need another plugin to handle this. It is recommended to have commandhelper installed to do advanced commands (command chaining). This plugin requires Spout to be installed, otherwise items will have default texture. You can get item via command /ultraitems (alias /ui).
What you can do with this: wands, food, <s>tools</s>, <s>change stackability</s>
What you can't do (for now): armor, blocks, entities, change durability
<font color="red" size="5">Warning: This plugin requires development version of spoutcraft (check 'use latest dev build' in spoutcraft options) because of bug where items.png is in inventory instead of texture.</font>
Frequently Asked Questions
- Why ain't my permissionbypass working?
- You have to use some permission manger using SuperPerms (like PermissionsBukkit or PemissionsEx or bPermissions)
- How can i set healing staff?
- You can set negative damage.entity option to achieve that
- Will you add maxstacksize soon?
- I have asked Olloth (he's working on custom item api in spout) and he said that method for changing stackability isn't something that can be done easily.
- Will you add crafting with different data values soon?
- See IRC log
- What about furnace crafting from custom items?
- See Spout issue #800
- Will you add custom blocks soon? What will be possible to set?
- Yep. Luminescence, opacity, drop, friction, hardness, whether is powered, explosion resistance. I also like the idea it would act like tree block. And some events like place.
- Why i can't change id of base item?
- Not a preferred way of creating item with spout api anymore.
- How can i set mob drops?
- Use one of following plugins: CookieMonster, EcoCreature or MoneyDrop
- How do i convert old items (pre 0.8) to new spout compatible items?
- Follow this info.
- How can i find out id and data value of item?
- It is shown in console on start-up or after performing /ui reload.
- What does 'Config is unproperly formated?' mean?
- You either don't have UltraItems as root node or you have BOM signature in your config.
Example configuration
Following example should be working with dev version. If you can't use something, download dev version first.
UltraItems: # main container
flashwand: # item name (used when obtaining item via command)
title: Lightning wand # title shown when cursor moved on item in inventory
url: http://ogion.cz/files/items/flash.png # url of image to set to inventory item (it is currently only in inventory and in-hand)
lclick: # left click section
action: |
/zap # command sent when left clicking with item in-hand
let them burn! #you can specify more action as same as multiple permissions to bypass just add multi-line notation (pipe, vertical bar or whatever you call |)
#also you can use variables $player, $coords, $world
permissionbypass: flashplugin.zap # temporarily adds specified permission (removed after performing of action), not recommended to use (if you leave item in chest everybody can use it).
rclick: # right click section
action: /zap multi# command sent when right clicking with item in-hand
cracker:
title: Notch crackers
url: http://ogion.cz/files/items/notch.png
rclick:
health: 20 # 2 = 1 hearth, you can use negative values too
hunger: 20 # 2 = 1 hunger unit (chicken leg), you can use negative values too
consume: true # whether or not is item consumed after clicking
sound: http://ogion.cz/files/items/crunch.ogg
<s>maxstacksize: 6 # maximal size of stack</s>
recipes:
- type: shaped
amount: 2 # amount of items gained by crafting
ingredients: |
0 266
266 357 266
0 266
osword:
title: Obsidian sword
url: http://dl.dropbox.com/u/1189439/osword.png
instantbreak: true # instantly breaks the block being destroyed
damage:
entity: 80 # damage caused to entity (2 = 1 hearth)
recipes:
- type: furnace # you can use furnace, shaped or shapeless
ingredients: "49" # ingredient id:data
- type: shaped
ingredients: |
0 49
0 49
0 cracker
# note you can use item names in recipes (item has to be specified before used in recipe)
Permissions
- ultraitems.* - All UltraItems' commands
- ultraitems.reload - Reload config (default: op)
- ultraitems.list - Show list of items (default: true)
- ultraitems.give - Give item (default: true)
- ultraitems.give.* - Give all items (default: true)
- ultraitems.craft.* - Craft all items (default: true)
Commands
- /ultraitems <itemname> [amount] - gives player item itemname
- /ultraitems list - shows list of items
- /ultraitems reload - reloads configuration file (this works quite weird if you updated recipes so rather use /reload)
- /ultraitems replace - replaces items before new spout item api with new ones
Future releases
- Support for mana plugins
- Complex scripting language for more customisable items
- Block enemy attack (like right click with weapon in mc)
- Integration into give command (General plugin)
- More food properties (poison) and animation
- More events (blockplace, drop, pick, destroyed, walkedon, walkedoff)
- Explosions
- Custom blocks
- Config generator
- Delay option
- Advanced consumption (another items, replacing item)
- Entity shooting (arrows, fireballs)
Changelog
0.9
- Added crafting permissions
- Added amount for give command
- Some crafting fixes (you can use custom item names in recipes)
- Added basic api
- Added instantbreak option
0.8.1
- New bukkit config api
- /ui replace command for replacing old items with new ones
- Info about added items
0.8
- Compatible with new spout api
- Entity damage multiplier changed to absolute number
- Removed multiple spaces bug, data values can be now separated with :,;-
0.7.1
- Fixed data values in recipes
0.7
- Disabled consume for left click action
- Added crafting recipes
- Added health and hunger options
- Colored messages
- Prevented stacking of items with different data values
- Added maxstacksize option
- Added permissionbypass option
0.6
- Added entity damage multiplier
- Enabled data value 0 for click action
0.5
- Better error handling
- Enabled data value 0
- Blocking all right click actions
0.4
- Moved action, consume into l/rclick section
- Action not required for other settings
- Sound setting supported
0.3
- Added consume option
- Enhanced exception handling (incorrect spout)
- Fixed onPlayerInteract without item causing NPE
0.2
- Working reload command
- No errors in console mode
- Restructured returns
- Removed dev messages
0.1
- Initial release
- SuperPerms support
Known bugs
New features are tested before being released but it can miss some bug. If you find any, please report it to the comments or issues section.
- Sound sometimes isn't played (Spout's bug?)
- Reloading config doesn't reset item titles and textures if removed from config (you can use /reload command from bukkit)
- Consume on left click not working correctly (had to disable it because it caused internal server error - bukkit's issue?)
- Maxstacksize isn't working correctly
Download
You can find it in files section. Source is in repository
You can get latest dev version on DropBox.
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Astaen
Any progress? What have you changed since it worked?
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Lisured
I use Spout 469 and last UI downloaded from DropBox (oh, and I noticed just now I'm using Spoutcraft 588 ... ) Il'l try again later with last client, also I could have done something wrong, but I really dunno why.
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Percefane
Not sure i don't have my server anymore so i don't use it, i will ask narrowtux when he comes to irc.
BTW: It looks you can't craft from customitems using custom crafting. It accepts only data values from items with known data values. https://github.com/SpoutDev/Spout/issues/673#issuecomment-2460093
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Lisured
What the difference between data values 0 and 1,2,3,...?
And do you know a way to buy or sell items (like goldcoins, or something else) with Showcase?
Thx! :)
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Astaen
What exactly isn't working? I've got no console errors with latest dev build of spout (#469). Not tried to connect yet, it will take a while until i can run spoutcraft.
EDIT: Works like a charm for me. What version of UI do you use?
-
View User Profile
-
Send Message
Posted Oct 19, 2011Can't go back to Spout 450 because of many others plugins, i'll wait for update, don't give up :D Good luck.
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Percefane If you have item 36 with data value 0 in your inventory and you have following item in your config (note it is itemid not item):
When you perform command /ui replace item in your inventory will be replaced with for example 318:1040 (data value is assigned by spout).
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Lisured
Humm...
Sorry if I don't understand all that you said, but "/ui replace" should replace default item with item in your config (item "36" will be replaced by "Gold"), isn't it? When i write "/ui replaced", i've the message; but nothing seem to change.
I am really sorry if I don't understand that you said, I'm french and it's sometimes hard. :s Thx for your patience and your help.
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Percefane
No, that means if you use /ui replace items in inventory matching items in config will be replaced with new items (their ids will be shown on startup).
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Lisured
Yep, so i should see the new texture instead of the default texture, for the item 36, isn't it?
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Percefane
I already told you itemid and data nodes are only for replacing old item to new.
-
View User Profile
-
Send Message
Posted Oct 19, 2011"/ui <name>" or "/ui reload" works, i can see the texture of my item, but when I take the 36th items, i see the default texture. I really don't know why....
Config:
Spout: Last Dev (469) Spoutcraft: Last dev (627) Craftbukkit: 1337 UltraItems: Tested with 0.8.1 and dev version
Nothing on console...
Thx for your help (and sorry for my bad english )
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Astaen
Last tested on spout #450.
@rslink_
It will be glass or stone (depending on if you choose transparency) with automatically assigned data value.
@Cyberium59
They need to be capable to work with spout items. Ask their author to add support for spout's MaterialManager.
-
View User Profile
-
Send Message
Posted Oct 19, 2011@Astaen
Dev build of Spout & Spoutcraft
-
View User Profile
-
Send Message
Posted Oct 19, 2011Please, on what Spout build this works actually?
-
View User Profile
-
Send Message
Posted Oct 19, 2011The name of the custom object is not recognized by other plugins like Heroic Death :(
-
View User Profile
-
Send Message
Posted Oct 19, 2011@carlosjj
Yeah, crafting with data values works with Custom Crafting, please make your plugin works again and add other features :'(
-
View User Profile
-
Send Message
Posted Oct 18, 2011For when you add in custom blocks, how are you going to do it? With custom data values 3:1 or would it be some thing else? If you can do it with 1:2 that would probably be best for other plugins likes world edit, logblock, etc.
-
View User Profile
-
Send Message
Posted Oct 18, 2011@carlosjj
I can't seem to get it to work for me actually... No errors in the console or anything, it simply doesn't work. Think you can help me?
Config: http://pastebin.com/raw.php?i=1aWJ225k
-
View User Profile
-
Send Message
Posted Oct 18, 2011please focus on the other parts of this plugin than the crafting recipes, because there is already a plugin that does that really well: http://forums.bukkit.org/threads/misc-customcrafting-v0-6-add-custom-crafting-and-furnace-recipes-1060.15685/