ZidMC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Answered] Using Dyes In Recipes [1.5_01] [2.12]

4 posters

Go down

[Answered] Using Dyes In Recipes [1.5_01] [2.12] Empty [Answered] Using Dyes In Recipes [1.5_01] [2.12]

Post by Jambokid Thu Apr 28, 2011 8:33 pm

I would like to know how to use dyes in recipes Razz

Code:
ModLoader.AddRecipe(new ItemStack(lightdirtblue, 1), new Object[] {
    "XXX", "XYX", Character.valueOf('X'), Block.dirt, Character.valueOf('Y'), What goes here ?

I would like to use the blue dye, but of course the other colours will follow the same code with a little bit of tweaking Smile


Last edited by Jambokid on Fri Apr 29, 2011 3:40 pm; edited 1 time in total
Jambokid
Jambokid
Recruit

Posts : 7
Join date : 2011-04-28

Back to top Go down

[Answered] Using Dyes In Recipes [1.5_01] [2.12] Empty Re: [Answered] Using Dyes In Recipes [1.5_01] [2.12]

Post by _1Greg1_ Thu Apr 28, 2011 10:00 pm

Block.wool.blockID, 11
_1Greg1_
_1Greg1_
Gold Miner

Posts : 82
Join date : 2011-04-26
Age : 27

Back to top Go down

[Answered] Using Dyes In Recipes [1.5_01] [2.12] Empty Re: [Answered] Using Dyes In Recipes [1.5_01] [2.12]

Post by Meglazero Fri Apr 29, 2011 3:01 am

Code:
new ItemStack(Item.dyePowder, 2, 4)

the 2 has to be there, but the second number is the damage value...

the damage values for dyes are:

Black - 0
Red - 1
Green - 2
Brown - 3
Blue - 4
Purple - 5
Cyan - 6
Light Gray - 7
Gray - 8
Pink - 9
Lime Green - 10
Yellow - 11
Light Blue - 12
Magenta - 13
Orange - 14
White - 15

Meglazero
Iron Miner

Posts : 51
Join date : 2011-04-22

Back to top Go down

[Answered] Using Dyes In Recipes [1.5_01] [2.12] Empty Re: [Answered] Using Dyes In Recipes [1.5_01] [2.12]

Post by Byronyello Fri Apr 29, 2011 10:23 am

This should be it:

Code:
ModLoader.AddRecipe(new ItemStack(lightdirtblue, 1), new Object[] {
    "XXX", "XYX", Character.valueOf('X'), Block.dirt, Character.valueOf('Y'), new ItemStack(Item.dyePowder, 1, 4)
})

Easy!
Byronyello
Byronyello
Iron Miner

Posts : 28
Join date : 2011-04-27
Age : 27
Location : Keighley, West Yorkshire, England!

http://byronyello.newgrounds.com

Back to top Go down

[Answered] Using Dyes In Recipes [1.5_01] [2.12] Empty Re: [Answered] Using Dyes In Recipes [1.5_01] [2.12]

Post by Jambokid Fri Apr 29, 2011 3:39 pm

Thanks ! It Worked Very Happy
Jambokid
Jambokid
Recruit

Posts : 7
Join date : 2011-04-28

Back to top Go down

[Answered] Using Dyes In Recipes [1.5_01] [2.12] Empty Re: [Answered] Using Dyes In Recipes [1.5_01] [2.12]

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum