I am wondering how to make a crafting recipe including grey dye. I just don't know how to make it grey. Here is my code:
GameRegistry.addRecipe(new ItemStack(greyLamp, 16), new Object []
{
"xxx",
"xyx".
"xxx",
'x', whiteLamp,
'y', Items.dye,
}
I also want to make a path block like from open blocks. I have all the code for the regular block but I need to make it 1/16th of a block, like snow. I would appreciate any help. Thanks in advance.
You have to supply an integer for the quantity of dye and then you can supply one for the metadata. To change the height of a block use setBlockBounds, put this in the constructor or with setBlockTextureName etc.
Rollback Post to RevisionRollBack
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
I've never done what you are trying to accomplish, but I'm pretty sure it is the ItemStack that contains the Items.dye and the metadata of what color the dye is. This page has a little information on that: http://minecraft.gamepedia.com/Cactus_Green
So if you can put the itemStack for the dye of the color you want into the crafting recipe, that is the first step.
Your greyLamp, I assume is a custom item you have created. You could do something similar to dyes (look in the Minecraft code). You create a Lamp item, that has 16 possible metadata values that correspond to the 16 dye colors. Your 16 recipes just create 16 versions of the same Lamp, each with a different color. You will need 16 different textures for the lamp if you want to support all of the possible colors.
Sorry I don't have any source code available at the moment, but you should be able to do a search on all the different parts of this puzzle and find the code.
I've never done what you are trying to accomplish, but I'm pretty sure it is the ItemStack that contains the Items.dye and the metadata of what color the dye is. This page has a little information on that: http://minecraft.gamepedia.com/Cactus_Green
So if you can put the itemStack for the dye of the color you want into the crafting recipe, that is the first step.
Your greyLamp, I assume is a custom item you have created. You could do something similar to dyes (look in the Minecraft code). You create a Lamp item, that has 16 possible metadata values that correspond to the 16 dye colors. Your 16 recipes just create 16 versions of the same Lamp, each with a different color. You will need 16 different textures for the lamp if you want to support all of the possible colors.
Sorry I don't have any source code available at the moment, but you should be able to do a search on all the different parts of this puzzle and find the code.
Thanks. I figured out the dye problem. If you have suggestions for the other part that would be beneficial though.
for the path you would need a custom model for the block for how you want it to look and then just set the block bounds and collision box to the height of that object
I am wondering how to make a crafting recipe including grey dye. I just don't know how to make it grey. Here is my code:
GameRegistry.addRecipe(new ItemStack(greyLamp, 16), new Object []
{
"xxx",
"xyx".
"xxx",
'x', whiteLamp,
'y', Items.dye,
}
I also want to make a path block like from open blocks. I have all the code for the regular block but I need to make it 1/16th of a block, like snow. I would appreciate any help. Thanks in advance.
You have to supply an integer for the quantity of dye and then you can supply one for the metadata. To change the height of a block use setBlockBounds, put this in the constructor or with setBlockTextureName etc.
Please don't PM me asking for help, I will just redirect you to the appropriate forum, where there are others who are far more skilled than me.
This is not the signature you are looking for.
Banners and such things
I've never done what you are trying to accomplish, but I'm pretty sure it is the ItemStack that contains the Items.dye and the metadata of what color the dye is. This page has a little information on that: http://minecraft.gamepedia.com/Cactus_Green
So if you can put the itemStack for the dye of the color you want into the crafting recipe, that is the first step.
Your greyLamp, I assume is a custom item you have created. You could do something similar to dyes (look in the Minecraft code). You create a Lamp item, that has 16 possible metadata values that correspond to the 16 dye colors. Your 16 recipes just create 16 versions of the same Lamp, each with a different color. You will need 16 different textures for the lamp if you want to support all of the possible colors.
Sorry I don't have any source code available at the moment, but you should be able to do a search on all the different parts of this puzzle and find the code.
[url=2482915-wip-arkcraft-survival-evolved-dinos-taming]
Thanks. I figured out the dye problem. If you have suggestions for the other part that would be beneficial though.
for the path you would need a custom model for the block for how you want it to look and then just set the block bounds and collision box to the height of that object