-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
517c053
commit ff3ba70
Showing
131 changed files
with
625 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 食物工艺 文档 | ||
|
||
[~~_没有人会喜欢的 Purpose_~~](PURPOSE.md) | ||
|
||
食物工艺增加了很多中外菜品, 以及他们 _略微科学_ 的制作方法. 从分类来看, 本 Mod 添加了水果, 蔬菜, 调味料, 各种饮料, 小吃与大餐. | ||
|
||
## 主要内容 | ||
|
||
- [播种与收获](Planting.md) | ||
- [热量系统](Heating.md) | ||
|
||
## 旧版食物工艺与新版食物工艺的异同 | ||
|
||
同: 材质, 机制, 基础设定 | ||
|
||
异: | ||
|
||
- 跨 Mod 兼容性新版更好, 兼容了了基本所有的矿物辞典(基于**潘马斯农场**), 增加了大量 JEI 支持, Patchouli 手册以及 TOP 支持. | ||
- 可配置的机器, JSON 合成 | ||
- 旧版一些未实现的内容(如酸奶,蛋糕)正在考虑以一种全新的方法添加回来. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/projecturanus/foodcraft/common/init/LootTableInjectionHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.projecturanus.foodcraft.common.init | ||
|
||
import com.projecturanus.foodcraft.MODID | ||
import net.minecraft.util.ResourceLocation | ||
import net.minecraftforge.event.LootTableLoadEvent | ||
import net.minecraftforge.fml.common.Mod | ||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent | ||
|
||
@Mod.EventBusSubscriber(modid = MODID) | ||
object LootTableInjectionHandler { | ||
@JvmStatic | ||
@SubscribeEvent | ||
fun injectSnacks(event: LootTableLoadEvent) { | ||
if (event.name.namespace == "minecraft" && (event.name.path.startsWith("chests"))) | ||
event.table.addPool(event.lootTableManager.getLootTableFromLocation(ResourceLocation(MODID, "snacks")).getPool("snacks_pool")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.