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 Sep 27, 2011THey say the 1é2 is ready in one month :D
-
View User Profile
-
Send Message
Posted Sep 27, 2011@SharkWipf
Theere is no method in spout (planned for 1.2).
@Flenix1
The bug is probably caused by bukkit. I will temporarily disable consume for left click.
-
View User Profile
-
Send Message
Posted Sep 27, 2011Is there a chance this will support stuff like additional paintings soon? I have no idea how hard entities are to implement, or if Spout(craft) even allows for that yet, but it would be pretty neat.
-
View User Profile
-
Send Message
Posted Sep 27, 2011No worries, we all have lives outside of Minecraft.
And I found I had to relog in order for the graphics to update for some reason, so the other 3 had been working now - I hadn't noticed the extra H so thanks for pointing it out :)
YAY CAKE! Good luck with the bug, I'm subscribed so I'll know when its fixed.
-
View User Profile
-
Send Message
Posted Sep 27, 2011Sorry for long response time, i am really busy these days. @Flenix1 I think i could include heal option and maybe i can figure out eating animation. @Flenix1 Weird. Do you have them in cache (%APPDATA%/.spoutcraft/spout/UltraItems). I have tested your config but only texture i can't get is pbow because there is hhttp in url but it is working when changed to http.
That is weird, I will have to test consume value for sword.
TESTED: it seems that consume in left click action causes:
You found a bug, take a cake.
-
View User Profile
-
Send Message
Posted Sep 27, 2011Sorry for posting so much, but could you point out any flaws in config? The items show up fine when I put those URLS into my browser, but in game it shows the default textures. I'm using latest spoutcraft build (literally, downloaded a new one about an hour ago.. guess that might be the issue actually but checking anyway)
Also, I did have the Redstone sword to consume upon use, but it crashed me from the server. Just throwing that out there :)
-
View User Profile
-
Send Message
Posted Sep 27, 2011Just had a thought.. each item as a unique item ID (or data value) right? So in theory, we could use a plugin which edits crafting, and create our own crafting recipies for the items...
Testing now :)
(Also, food could work better I think, right now it just works the old way of right click and it vanishes, and you get health if you have permission to give yourself health anyway. What it would need is at least bypass permissions, so even if they don't have essentials.heal (for the example cracker) they'd still be healed, and also preferably have the hold right click and eating animation. Dunno how hard that would be though..
-
View User Profile
-
Send Message
Posted Sep 26, 2011Oh thats spoutCRAFT? I thought it meant normal spout! I was running version about 380 of normal spout. I'll go change to the dev of spoutcraft now, thanks!
-
View User Profile
-
Send Message
Posted Sep 26, 2011@Flenix1
It is spoutcraft's bug already fixed in dev version see the big red text above.
-
View User Profile
-
Send Message
Posted Sep 26, 2011Installed it and LOVE it. Although, is there any way to get it to show the item in the hotbar? For example, the obsidian sword just shows random pixels... kinda reminds me of MissingNo from the old pokemon games!
-
View User Profile
-
Send Message
Posted Sep 26, 2011@Flenix1
They would see the item that is modified (if you have item: 208 in config they will see that item as stick)
-
View User Profile
-
Send Message
Posted Sep 26, 2011What would happen if someone tried to connect to the server without Spoutcraft while this is running? Would they just not see the items or would they crash?
-
View User Profile
-
Send Message
Posted Sep 26, 2011@Lisured
Thanks :)
-
View User Profile
-
Send Message
Posted Sep 26, 2011@xaxaWOW
If you mean 0.6 it isn't approved by bukkitdev yet so it isn't in right panel, but it is here: http://dev.bukkit.org/server-mods/ultraitems/files/8-v0-6/
Read the known bugs section, it isn't something that can be solved easily, if it is possible. I will have to do more research. You can use stick instead of sword (it won't have durability but better something than nothing).
-
View User Profile
-
Send Message
Posted Sep 26, 2011Where is the download for 1.6 version ?
I love your plugin ! But when i create a sword with the property of a ironsword and when i attack a mob , the created sword become a ironsword .
Sorry for bad english :)
-
View User Profile
-
Send Message
Posted Sep 26, 2011@Percefane It's only client bug so check 'use latest dev build' in spoutcraft options.
BTW new version with custom damage multiplifier for sword items: http://dev.bukkit.org/server-mods/ultraitems/files/8-v0-6/
-
View User Profile
-
Send Message
Posted Sep 26, 2011Any time a send a bug, it's already fix! I go to dl the new spout so :) Thx!
-
View User Profile
-
Send Message
Posted Sep 26, 2011@Percefane
Yeah, this is Spoutcraft issue which i have reported yesterday and it is already fixed in dev version of spoutcraft.
If you don't know how to enable dev spoutcraft read the big red text above.
-
View User Profile
-
Send Message
Posted Sep 26, 2011Very nice! Just 1 thing: When i drop an "ultraitem" (so, when he's on the floor) his texture change, and we saw a weird texture (in fact, it's the "terrain.png" file. )
-
View User Profile
-
Send Message
Posted Sep 26, 2011@detcox
Changing damage is on todo list but i don't think, spout has api for this. Maybe bukkit has something but i have to do more research.
@Couga79
How would i do that? If you think adding custom item as drop you can ask MoneyDrop author to add item data values support.
EDIT: It looks MoneyDrop use data value 9001. Could you try to add gold ingot (or other item you have in your config) with that data value?