Started by
darkgallade
on
Topic category: Help with MCreator software
I know that there is a button in making a crafting recipe but the interface just blocks it out. I tried setting up the legacy GUI and also the resolution fix but it still doesn't seem to work. Is there any way to fix this?
I would also love to know rthe answer to this!!
Create a new mod element (recipe) then press "Is recipe shaeless?" and then your recipe
@#2 Спасибо :)
Сейчас чуть в коде нового рецепта полазил, части копировал, вставлял, проверял и в итоге нашел часть, который обратный крафт делает. Ибо делать новый элемент для каждого блока, все таки не особо хочется делать.
Если что, часть выделена жирным шрифтом | If you want to make reverse craft without make new element of your mod, you can add part of code(Allocated bold) and put in code of block/item and the others.
[spoiler]
public void load(FMLInitializationEvent event) {
if (event.getSide() == Side.CLIENT) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
.register(Item.getItemFromBlock(block), 0, new ModelResourceLocation("testenvironmentmod:copperblock", "inventory")); }
GameRegistry.addRecipe(new ItemStack(block, 1), new Object[]{"012", "345", "678", Character.valueOf('0'), mcreator_copperIngot.block, Character.valueOf('1'), mcreator_copperIngot.block, Character.valueOf('2'), mcreator_copperIngot.block, Character.valueOf('3'), mcreator_copperIngot.block, Character.valueOf('4'), mcreator_copperIngot.block, Character.valueOf('5'), mcreator_copperIngot.block, Character.valueOf('6'), mcreator_copperIngot.block, Character.valueOf('7'), mcreator_copperIngot.block, Character.valueOf('8'), mcreator_copperIngot.block,});
ItemStack recStack = new ItemStack(mcreator_copperIngot.block, 9); GameRegistry.addShapelessRecipe(recStack, new Object[]{mcreator_copperBlock.block,}); }[/spoiler]
@#2.1 I forgot about one thing... Delete the second } in the end of code.