游戏版本:1.12.2
forge版本:14.23.5.2860
java版本:1.8.0_202
@Mod.EventBusSubscriber(modid = Reference.MODID)
public class ComfortBoxBlocks {
public static final Block ASPHALT_BLOCK = new Block(Material.ROCK)
.setRegistryName(Reference.MODID, "asphalt_block")
.setCreativeTab(CreativeTabs.MISC)
.setUnlocalizedName(Reference.MODID + ".asphalt_block");
@SubscribeEvent
public static void onBlockRegister(RegistryEvent.Register event) {
event.getRegistry().register(ASPHALT_BLOCK);
}
@SubscribeEvent
public static void onItemRegister(RegistryEvent.Register event) {
event.getRegistry().register(
new ItemBlock(ASPHALT_BLOCK).setRegistryName(Reference.MODID, "asphalt_block")
);
}
}复制代码@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class ComfortBox {
@Mod.Instance
public static ComfortBox instance;
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {}
@Mod.EventHandler
public void init(FMLInitializationEvent event) {}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {}
}复制代码blockstate
{
"variants": {
"normal": {
"model": "comfortbox:asphalt_block"
}
}
}复制代码en_us.lang
tile.comfortbox.asphalt_block.name=Asphalt复制代码block model
{
"parent": "block/cube",
"textures": {
"all": "comfortbox:blocks/asphalt_block"
}
}复制代码

游戏效果:


加载时的报错:
https://pastebin.com/kyx0sanK
同时,mcmod.info在游戏内也无法显示
[
{
"modid": "comfortbox",
"name": "ComfortBox",
"description": "test",
"version": "1.12.2-0.1.0",
"mcversion": "${mcversion}",
"authorList": ["test"],
"credits": "test",
"logoFile": "",
"screenshots": [],
"dependencies": []
}
]复制代码游戏效果:

加载时的报错:
https://pastebin.com/Fn681iFj
感谢帮助
forge版本:14.23.5.2860
java版本:1.8.0_202
@Mod.EventBusSubscriber(modid = Reference.MODID)
public class ComfortBoxBlocks {
public static final Block ASPHALT_BLOCK = new Block(Material.ROCK)
.setRegistryName(Reference.MODID, "asphalt_block")
.setCreativeTab(CreativeTabs.MISC)
.setUnlocalizedName(Reference.MODID + ".asphalt_block");
@SubscribeEvent
public static void onBlockRegister(RegistryEvent.Register event) {
event.getRegistry().register(ASPHALT_BLOCK);
}
@SubscribeEvent
public static void onItemRegister(RegistryEvent.Register event) {
event.getRegistry().register(
new ItemBlock(ASPHALT_BLOCK).setRegistryName(Reference.MODID, "asphalt_block")
);
}
}复制代码@Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION)
public class ComfortBox {
@Mod.Instance
public static ComfortBox instance;
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {}
@Mod.EventHandler
public void init(FMLInitializationEvent event) {}
@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {}
}复制代码blockstate
{
"variants": {
"normal": {
"model": "comfortbox:asphalt_block"
}
}
}复制代码en_us.lang
tile.comfortbox.asphalt_block.name=Asphalt复制代码block model
{
"parent": "block/cube",
"textures": {
"all": "comfortbox:blocks/asphalt_block"
}
}复制代码
游戏效果:
加载时的报错:
https://pastebin.com/kyx0sanK
同时,mcmod.info在游戏内也无法显示
[
{
"modid": "comfortbox",
"name": "ComfortBox",
"description": "test",
"version": "1.12.2-0.1.0",
"mcversion": "${mcversion}",
"authorList": ["test"],
"credits": "test",
"logoFile": "",
"screenshots": [],
"dependencies": []
}
]复制代码游戏效果:
加载时的报错:
https://pastebin.com/Fn681iFj
感谢帮助