I have two questions regarding crafting recipes, in this case of the 1.12 json variety.
1. what is the registry name of skull blocks?
2. Is it possible to, within one json, to define a recipe that can take multiple different ingredients in the same slots, as in you can use sticks or blaze rods as a handle for a pickaxe. Is there a way to do it without using the ore dictionary?
Look at the Block.registerBlocks method for the registry names of vanilla Blocks (and their ItemBlocks) and look at the Item.registerItems method to see the registry names of vanilla Items (including block items that don't extend ItemBlock, like ItemSkull).
2. Is it possible to, within one json, to define a recipe that can take multiple different ingredients in the same slots, as in you can use sticks or blaze rods as a handle for a pickaxe. Is there a way to do it without using the ore dictionary?
You can use an array of ingredient objects anywhere a single ingredient is expected to create a compound ingredient that matches any of the items matched by the component ingredients.
Vanilla uses this for recipes accept multiple possible items per slot (e.g. minecraft:crafting_table accepts any plank).
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
according to Item.registerItems the name is minecraft:skull (unless you dont need the minecraft prefix), but thats not working. Maybe I'm missing something related to the head type?
according to Item.registerItems the name is minecraft:skull (unless you dont need the minecraft prefix), but thats not working. Maybe I'm missing something related to the head type?
That's the correct registry name.
One possible error you're encountering is that you haven't specified the metadata value using the data JSON property. Since the skull has subtypes (i.e. it returns true from Item#getHasSubtypes), this is required.
Otherwise there should be an error in the log telling you what went wrong. If you don't understand it, post the FML log using Gist or Pastebin.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
As it turns out, that was the problem, but in a different place. I was defining bonemeal as minecraft:bonemeal instead of minecraft:dye with a data value of 15.
I have two questions regarding crafting recipes, in this case of the 1.12 json variety.
1. what is the registry name of skull blocks?
2. Is it possible to, within one json, to define a recipe that can take multiple different ingredients in the same slots, as in you can use sticks or blaze rods as a handle for a pickaxe. Is there a way to do it without using the ore dictionary?
My first mod =D
Look at the Block.registerBlocks method for the registry names of vanilla Blocks (and their ItemBlocks) and look at the Item.registerItems method to see the registry names of vanilla Items (including block items that don't extend ItemBlock, like ItemSkull).
You can use an array of ingredient objects anywhere a single ingredient is expected to create a compound ingredient that matches any of the items matched by the component ingredients.
Vanilla uses this for recipes accept multiple possible items per slot (e.g. minecraft:crafting_table accepts any plank).
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
according to Item.registerItems the name is minecraft:skull (unless you dont need the minecraft prefix), but thats not working. Maybe I'm missing something related to the head type?
My first mod =D
That's the correct registry name.
One possible error you're encountering is that you haven't specified the metadata value using the data JSON property. Since the skull has subtypes (i.e. it returns true from Item#getHasSubtypes), this is required.
Otherwise there should be an error in the log telling you what went wrong. If you don't understand it, post the FML log using Gist or Pastebin.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
As it turns out, that was the problem, but in a different place. I was defining bonemeal as minecraft:bonemeal instead of minecraft:dye with a data value of 15.
My first mod =D