[Feature Request] hasitem parameter and extend the consumetool parameter
Wolfieboh opened this issue ยท 5 comments
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)
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.
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.
Finding the item wouldn't be hard - the tricky part is working out the best/most-intuitive format for the config file/parameters names.
It would be as difficult as searching the entire inventory for the desired item.