Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

[Feature Request] hasitem parameter and extend the consumetool parameter #219

Open Wolfieboh opened 11 years ago

Wolfieboh commented 11 years ago

Requesting a sort of "player has item in inventory" parameter that would make it so they have to have a specific item(possibly a specific quantity too) in their inventory for the drop to trigger. This could be used as a more versatile way than relying on named items and enchantments for triggering special drops and would also server as a failsafe for the next request.

Ex: hasitem: stick~&6Lucky Stick

Allow the consumetool parameter to be able to affect items other than the one being held. So consumetool: bone would search the inventory for a bone and take it instead of the held item(also possibly allow a quantity to be specified - consumetool: bone!5)

charlie1990 commented 11 years ago

I like the consumetool thing a lot but I feel that it might be difficult to do(I'm no coder though so I'm not sure) in what way could the hasitem thing be more versatile than combining named tools with enchantments? I guess I could see its use if combined with consumetool(with or without the addition) but thats about it.

CelticMinstrel commented 11 years ago

It would be as difficult as searching the entire inventory for the desired item.

charlie1990 commented 11 years ago

Again, no coder so no idea how easy/hard that is. One plugin comes to mind that does that though - MagicSpells does that for its reagent costs.

Zarius commented 11 years ago

Finding the item wouldn't be hard - the tricky part is working out the best/most-intuitive format for the config file/parameters names.

ecianice commented 11 years ago

Going to bump this request for support on a consume tool thing. Maybe the idea of a cost to perform a drop is another way of looking at consume tool.