CommandHelper

CommandHelper

46.5k Downloads

Function to modify crafting, or items in workbench inventories

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2682 - Reported by Hekta

Is it possible to add functions like get/set_crafting() or set_craftin_result() and get_craftin_matrix() ? That will allow to add or modify recipes.

http://jd.bukkit.org/dev/apidocs/org/bukkit/inventory/CraftingInventory.html

Otherwise there is the CraftItem event.

http://jd.bukkit.org/dev/apidocs/org/bukkit/event/inventory/CraftItemEvent.html

I don't know if a similar thing is possible with anvils.

commented

Comment by PseudoKnight

Looked into making a custom recipe package, but ran into this issue. Based on what's available, probably should add 'result' data to inventory_click and make it mutable (null if not applicable / empty).

commented

Comment by kookster

This should be closed.