Page 1 of 1

Help: More about custom recipes?

Posted: Thu Oct 11, 2012 2:37 pm
by uggardian
I have already made one working custom recipe (for potion of invisibility), but I have to ask one thing..
So here I have a recipe for poison arrows:

Code: Select all

defineRecipe{
item = "poison_arrow",
ingredients = {1, "arrow", 1, "potion_poison"}
}
But for making many poison arrows that wastes way too much poison bottles that seems even logical.
So for instance: is a recipe 5 arrows + 1 poison = 5 arrows possible to make?
It's easy to make the recipe take multiple items, but how to give many items for result? :|

Re: Help: More about custom recipes?

Posted: Thu Oct 11, 2012 5:32 pm
by Grimwold
I haven't done anything with recipes so this is just a stab in the dark, but can you use setStackSize() at all?

Discussed here:
viewtopic.php?f=14&t=3491

Re: Help: More about custom recipes?

Posted: Thu Oct 11, 2012 6:02 pm
by uggardian
I'm trying, but I'm afraid that's something far above my skill :(
That's why I'm asking you guys :)

Re: Help: More about custom recipes?

Posted: Thu Dec 20, 2012 11:27 am
by JohnWordsworth
There are a couple of solutions.

1. Instead of creating a poison arrow object, you could create a 'bundle of poisoned aroows' object. When you use the bundle from the inventory, you could replace it with 5 poison arrows in the onUseItem hook.

2. You could go to town with the custom GUI system and roll your own fletching system!