here is my code, but it's not working. If i craft with this item there is a 0 on it and if i put it in my inventory it disappears.
Item Class:
public class wooden_pestle extends Item{
public wooden_pestle(){
super();
this.setMaxDamage(4);
this.setMaxStackSize(1);
}
@Override
public boolean hasContainerItem(ItemStack stack) {
return true;
}
@Override
public ItemStack getContainerItem(ItemStack itemStack) {
itemStack.setItemDamage(itemStack.getItemDamage() + 1);
return itemStack;
}
}
how i can register the recipe?
yes, "not that good at pixel art" he said, so you can use the minecraft textures on this way. This is the best way i think or the easiest. And if you do complicated models this will help too.
If you want a complicadet model form minecraft you can use copy and paste.
if you want to put your own texture on it, edit the model json:
{
"parent": "block/cube_all",
"textures": {
"all": "your folder name:blocks/texutrename" //use .png for the texture
}
}
use this for your model:
{
"parent": "block/cube_all",
"textures": {
"all": "blocks/stone"
}
}
and for your blockstates you have to use this:
{
"variants": {
"normal": { "model": "name of the model above" }
}
}