定制块不易闻到? Java,Minecraft Forge 1.12.2

时间:2018-04-16 02:13:56

标签: java json minecraft minecraft-forge

我正试图让我的铜矿石块熔炼成铜锭,但是当我把它放进去时炉子什么都不做。

Copper Ore的.java文件:

package com.leinad.essentialsmod.blocks;

import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;

public class CopperOre extends BlockBase 
{
    public CopperOre(String name, Material material) 
    {
        super(name, material);

        setSoundType(SoundType.STONE);
        setHardness(2.5F);
        setResistance(12.5F);
        setHarvestLevel("pickaxe", 1);
    }
}

铜锭的JSON配方文件:

{
    "type": "minecraft:crafting_shapeless",
    "group": "ores",
    "ingredients": [
        { "item": "em:copper_block" }
    ],
    "result": {
        "item": "em:copper_ingot",
        "count": 9
    }
}
{
    "type": "minecraft:smelting",
    "group": "ores",
    "ingredient": [
        {"item": "em:copper_ore" }
    ],
    "result": "em:copper_ingot",
    "count": 2
    "experience": 0.6,
    "cookingtime": 200  
}

我在这里缺少什么?其他地方我看起来暗示这应该工作得很好。

1 个答案:

答案 0 :(得分:3)

没关系,我已经弄明白了。 JSON冶炼只在1.13中得到支持,在此之前它仍然必须用Java完成。