Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ object Teatopia : ModInitializer {
override fun onInitialize() {
TeatopiaItems.freshTeaLeaf
TeatopiaItems.teaSapling
TeatopiaItems.driedTeaLeaves
TeatopiaItems.usedTeaLeaves
TeatopiaItems.lightShieldingSheet
TeatopiaBlocks.teaTree
TeatopiaBlocks.teaTreeSheet
TeatopiaBlocks.millStone

RESOURCE_PACK.addLang(id("en_us"), localeEn_Us)
RRPCallback.BEFORE_VANILLA.register { it.add(RESOURCE_PACK) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ object TeatopiaBlocks {
addBlock(TeaTreeBlock(), "tea_tree", "Tea Tree")
}

val teaTreeSheet by lazy {
addBlock(TeaTreeBlock(), "tea_tree_sheet", "Tea Tree (Sheet)")
}

val millStone by lazy {
addBlock(TeaTreeBlock(), "millstone", "millstone")
}
val blockItems: Map<Block, Item>
get() = mutableBlockItems
private val mutableBlockItems: MutableMap<Block, Item> = mutableMapOf()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ object TeatopiaItems {
addSimpleItem("tea_sapling", "Tea Sapling")
}

val driedTeaLeaves by lazy {
addSimpleItem("dried_tea_leaves", "Dried tea leaves ")
}

val usedTeaLeaves by lazy {
addSimpleItem("used_tea_leaves", "Used tea leaves")
}

val lightShieldingSheet by lazy {
addSimpleItem("light_shielding_sheet", "Light shielding sheet")
}


private fun addSimpleItem(name: String, localizationEn: String): Item =
addItem(Item(Item.Settings().group(Teatopia.itemGroup)), name, localizationEn)

Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/assets/teatopia/lang/ja_jp.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"block.teatopia.tea_tree": "茶の木",
"block.teatopia.tea_tree_sheet": "シートを被せた茶の木",
"item.teatopia.tea_tree": "茶の木",
"item.teatopia.fresh_tea_leaf": "新鮮な茶葉",
"item.teatopia.tea_sapling": "茶の苗木"
"item.teatopia.tea_sapling": "茶の苗木",
"item.teatopia.dried_tea_leaves": "茶葉",
"item.teatopia.used_tea_leaves": "茶殻",
"item.teatopia.light_shielding_sheet": "遮光シート",

}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.