摘要: 首发于Enaium的个人博客 创建一个盔甲类 public class EndArmorMaterials implements ArmorMaterial { [...] } 复制一下内容 private static final int[] BASE_DURABILITY = {13, 15, 阅读全文
posted @ 2020-02-21 16:23 Enaium 阅读(495) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 创建一个附魔书类 public class FireBoomEnchantment extends Enchantment { [...] } 在类中添一下 @Override public int getMinimumPower(int level) { return 阅读全文
posted @ 2020-02-21 16:16 Enaium 阅读(399) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 添加工具提示 在EndHeart类中添加 @Override public void appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) { to 阅读全文
posted @ 2020-02-21 16:14 Enaium 阅读(262) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 位置 src\main\resources\data\endarmor\recipes\end_heart_block.json { "type": "minecraft:crafting_shaped", "pattern": [ "WWW", "WWW", "WWW 阅读全文
posted @ 2020-02-21 16:12 Enaium 阅读(390) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 创建语言文件 lang也就是你模组的翻译比如 中文简体 zh_cn 中文正體 zh_tw 英文 en_us resources/assets/endarmor/lang/zh_cn.json { "item.endarmor.end_heart": "End心", "b 阅读全文
posted @ 2020-02-21 16:10 Enaium 阅读(394) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 在 ItemGroup 显示 使用 FabricItemGroupBuilder public static final ItemGroup END_ITEM_GROUP = FabricItemGroupBuilder.create( new Identifier(" 阅读全文
posted @ 2020-02-21 16:09 Enaium 阅读(328) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 创建方块 public class ExampleMod implements ModInitializer { // an instance of our new block public static final Block END_HEART_BLOCK = ne 阅读全文
posted @ 2020-02-21 16:05 Enaium 阅读(443) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 创建物品 public class ExampleMod implements ModInitializer { private static final Item END_HEART = new Item(new Item.Settings().group(ItemG 阅读全文
posted @ 2020-02-21 16:01 Enaium 阅读(669) 评论(0) 推荐(0)
摘要: 首发于Enaium的个人博客 需要 JAVA8+ 和 IDE 首先下载github 上的项目 fabric-example-mod 有以下方法: 用IDE 克隆 库 直接导入IDE 运行bat ./gradlew idea然后导入IDE 推荐使用IDEA 阅读全文
posted @ 2020-02-21 15:57 Enaium 阅读(890) 评论(0) 推荐(0)