bellcraft.recipe.FurnaceRecipe 에 다음과같이 코딩해줍니다.
package bellcraft.recipes;
import bellcraft.blocks.Blocks;
import bellcraft.core.BellCraft;
import bellcraft.items.Items;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.registry.GameRegistry;
public class FurnaceRecipe {
public static void registerRecipe()
{
// (블럭, new ItemStack(아이템, 개수, 메타태그), 필요한 열)
GameRegistry.addSmelting(Blocks.oreRandom, new ItemStack(Items.ingotRandom, 1), 0.1F);
}
}
네 그렇습니다.
고로 이번강좌끝(?)
이 아니구나.
메인함수 초기화메소드(bellcraft.core.BellCraft.Initialize)에 FurnaceRecipe.registerRecipe(); 추가해주세요.
그럼 끝!
구워진당!
'Game Dev > MineCraft - Mod' 카테고리의 다른 글
| 모드를 입맛대로 설정가능하게하기! (Config) (0) | 2014.12.03 |
|---|---|
| Bell Craft 모드 Github 오픈소스 (0) | 2014.12.02 |
| 블럭 밝기설정, 불투명도 설정, 강도설정, 소리설정 등 블럭설정과 조합법 추가하기 (0) | 2014.12.02 |
| 빌드 최적화 / 빌드시 한글주석 때문에 별 외계어가 뜰때 (2) | 2014.12.01 |
| 플레이어 로그인 이벤트 발생시 채팅띄우기 및 채팅 번역 (0) | 2014.12.01 |
댓글