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 5, 2011@Ewop
check use dev version in spoutcraft config
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Qismyname
It won't change text because armor data is how much is armor damaged (data 0 = completly destroyed).
Bow makes specified damage only if you hit mob with it (you can't set damage caused by arrow).
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Qismyname
Do this bow deal more damage ?
@Ewop
http://spout.in/clientdev/
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Astaen
I've checked and reinstall the latest versions of Spout and SpoutCraft, and the same problem is still here...
-
View User Profile
-
Send Message
Posted Oct 5, 2011oke so armour dos not work not even if you changed the entire item.
Sword will reset skin + item name if you hit a pig/destroy a block
Bow is working with i littel bug in its skin:
http://img21.imageshack.us/img21/4078/20111005170644.png http://img690.imageshack.us/img690/7452/20111005170702.png http://img267.imageshack.us/img267/49/20111005170707.png
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Ewop
Update Spout & SpoutCraft launcher.
-
View User Profile
-
Send Message
Posted Oct 5, 2011Hi, really good plugin !
But I have a little problem with the skin of the item. When I spawn an item of ultraitems, that's what i got : http://img74.xooimage.com/files/0/0/e/2011-10-05_16.54.52-2d74d83.png
When i got it in my hand, the skin is correct, but in the inventory and when i drop it, it looks like the terrain.png. Please help me !
-
View User Profile
-
Send Message
Posted Oct 5, 2011Please, what's wrong with this:
My players don't have permission :'(
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Astaen
nice
Also will this work?
With the Elite Tank body overtide the name for chain body
-
View User Profile
-
Send Message
Posted Oct 5, 2011I already made Zelda Potions: Red, Green and Blue for 3 hearts, 6 hearts, and 10 hearts :D
-
View User Profile
-
Send Message
Posted Oct 5, 2011yea i like that, that way we can also use on other items :)
Also new image for you :D With a fail in the name: XD Unboiling http://img209.imageshack.us/img209/4740/20111005155237.png
If enyone want to make the potions to here is the config file:
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Astaen
It will be possible with scripting, i will add delay for actions.
@Qismyname
Just replace dash before amount with space. I have to add it to example.
-
View User Profile
-
Send Message
Posted Oct 5, 2011Thanks for answers. I want to put heal option on an item, not on food, and this item is inconsumable so player can heal himself, again, again, again ...
An example for the delay: - Right Click, Player Healed - Right Click Again, "You have to wait %s seconds before using this again"
(configurable sentence if possible xD)
-
View User Profile
-
Send Message
Posted Oct 5, 2011How dos the Amount work, somting like this:?
Also thanks the recipe works now i used 2 spaces there.
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Lisured
Thanks for the replys.
-
View User Profile
-
Send Message
Posted Oct 5, 2011@Qismyname
You have bad syntax in your rawhealth recipe. You have two spaces after 0s. I will fix it.
@havena2
Use stick, it's known bug that i don't know it can be fixed.
@havena2
You can't create custom id because it would crash vanilla (spout limitation).
Eating animation is on todo list but i am not sure if it is possible. @Qismyname
It would be independent option.
That's problem of showcase, I think it is getting name from file, maybe you can add custom names into file but i don't use it anymore so i am not sure.
@Astaen
How exactly would delay work? @Astaen
Armors and block will be possible when there will be api in spout. There is already an interface for custom blocks but i haven't tested it yet. I will do it during week.
@maxi1134
I wasn't not sure how it will work so i limited it to 64, i will test it with bigger number. @Qismyname
Great idea. @Qismyname
I answered earlier in this post.
-
View User Profile
-
Send Message
Posted Oct 5, 2011also still cant get the creation on potion working: http://img849.imageshack.us/img849/3131/naamloosph.png
-
View User Profile
-
Send Message
Posted Oct 5, 2011Can you make it like this that you can set a sound to cooking and crafting like this:
-
View User Profile
-
Send Message
Posted Oct 5, 2011How can we make a stack who is more than 64
-
View User Profile
-
Send Message
Posted Oct 5, 2011nieuw armour makes it great for mobarena armours and weapons :D