Skip to content

Commit

Permalink
补全注册
Browse files Browse the repository at this point in the history
  • Loading branch information
HaooooZhang committed Aug 20, 2024
1 parent 6219efb commit 09e35f4
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ protected void addTranslations() {
add("tooltip.whispergrove.sliced_long_dan_cao","");
add("item.whispergrove.mo_yu_gu","墨鱼骨");
add("tooltip.whispergrove.mo_yu_gu","");
add("item.whispergrove.shu_fu_pian","熟附片");
add("tooltip.whispergrove.shu_fu_pian","");
add("item.whispergrove.bone_fragment","骨头碎片");
add("tooltip.whispergrove.bone_fragment","");

add("item.whispergrove.roller","药碾");
add("tooltip.whispergrove.roller","");


add("block.whispergrove.rou_gui_log","肉桂原木");
add("tooltip.whispergrove.rou_gui_log","");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,25 @@ protected void addTranslations() {
add("tooltip.whispergrove.sliced_long_dan_cao","");
add("item.whispergrove.mo_yu_gu","Cuttleflsh Bone");
add("tooltip.whispergrove.mo_yu_gu","");
add("item.whispergrove.shu_fu_pian","Roasted Prepared Common Monkshood Daughter Root,");
add("tooltip.whispergrove.shu_fu_pian","");
add("item.whispergrove.bone_fragment","Bone Fragment");
add("tooltip.whispergrove.bone_fragment","");

add("item.whispergrove.roller","roller");
add("tooltip.whispergrove.roller","");

add("block.whispergrove.rou_gui_log","肉桂 Log");
add("block.whispergrove.rou_gui_log","Cinnamon Log");
add("tooltip.whispergrove.rou_gui_log","");
add("block.whispergrove.rou_gui_stripped_log","Stripped 肉桂 Log");
add("block.whispergrove.rou_gui_stripped_log","Stripped Cinnamon Log");
add("tooltip.whispergrove.rou_gui_stripped_log","");
add("block.whispergrove.rou_gui_leaves","肉桂 Leaves");
add("block.whispergrove.rou_gui_leaves","Cinnamon Leaves");
add("tooltip.whispergrove.rou_gui_leaves","");
add("block.whispergrove.rou_gui_planks","肉桂 Blank");
add("block.whispergrove.rou_gui_planks","Cinnamon Blank");
add("tooltip.whispergrove.rou_gui_planks","");
add("block.whispergrove.rou_gui_slab","肉桂 Slab");
add("block.whispergrove.rou_gui_slab","Cinnamon Slab");
add("tooltip.whispergrove.rou_gui_slab","");
add("block.whispergrove.rou_gui_stair","肉桂 Stair");
add("block.whispergrove.rou_gui_stair","Cinnamon Stair");
add("tooltip.whispergrove.rou_gui_stair","");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,28 @@ public ModelProvider(PackOutput gen, ExistingFileHelper helper) {
protected void registerModels() {
List.of(
"huang_qi",
// "yang_qi_shi",
// "gui_zhi",
// "zi_shi_ying",
"yang_qi_shi",
"gui_zhi",
"zi_shi_ying",
"gan_mei_gui",
"shu_di_huang",
"hai_piao_xiao",
"fu_zi",
"chao_ding_xiang",
"wu_wei_zi",
// "zhi_gan_cao",
"zhi_gan_cao",
"ren_shen",
"fu_ling",
"mai_ya",
"e_jiao",
// "duan_long_gu",
// "he_huan_pi",
// "zhu_ye",
"duan_long_gu",
"he_huan_pi",
"zhu_ye",
"long_dan_cao",
// "pu_gong_ying",
// "zhu_gu",
// "kun_bu",
// "han_shui_shi",
"zhu_gu",
"han_shui_shi",
"gui_ban_jiao",
// "sheng_di_huang",
"sheng_di_huang",
"sheng_gan_cao",
"sliced_huang_qi",
"sliced_gui_zhi",
Expand All @@ -49,7 +47,9 @@ protected void registerModels() {
"gan_cao",
"sliced_ren_shen",
"sliced_long_dan_cao"
// ,"mo_yu_gu"
,"mo_yu_gu",
//"shu_fu_pian",
"bone_fragment"
).forEach(s -> this.singleTexture(s,
ResourceLocation.withDefaultNamespace("item/generated"), "layer0",
ResourceLocation.fromNamespaceAndPath(WhisperGrove.MODID, "item/" + s)));
Expand Down
44 changes: 30 additions & 14 deletions src/main/java/org/hiedacamellia/whispergrove/registers/WGItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ public class WGItem {
).build()
);

//蒲公英 Dandelion
//pu gong ying
public static final DeferredItem<BaseItem> PU_GONG_YING = ITEMS.register("pu_gong_ying",
() -> new BaseItemBuilder().regname("pu_gong_ying").properties(
new Item.Properties().rarity(Rarity.COMMON)
).build()
);
// //蒲公英 Dandelion
// //pu gong ying
// public static final DeferredItem<BaseItem> PU_GONG_YING = ITEMS.register("pu_gong_ying",
// () -> new BaseItemBuilder().regname("pu_gong_ying").properties(
// new Item.Properties().rarity(Rarity.COMMON)
// ).build()
// );

//竹茹 Bamboo Shavings
//zhu gu
Expand All @@ -190,13 +190,13 @@ public class WGItem {
).build()
);

//昆布 kelp
//kun bu
public static final DeferredItem<BaseItem> KUN_BU = ITEMS.register("kun_bu",
() -> new BaseItemBuilder().regname("kun_bu").properties(
new Item.Properties().rarity(Rarity.COMMON)
).build()
);
// //昆布 kelp
// //kun bu
// public static final DeferredItem<BaseItem> KUN_BU = ITEMS.register("kun_bu",
// () -> new BaseItemBuilder().regname("kun_bu").properties(
// new Item.Properties().rarity(Rarity.COMMON)
// ).build()
// );

//寒水石 Gypsum
//han shui shi
Expand Down Expand Up @@ -297,4 +297,20 @@ public class WGItem {
new Item.Properties().rarity(Rarity.COMMON)
).build()
);

//熟附片 Roasted Prepared Common Monkshood Daughter Root
//shu fu pian
public static final DeferredItem<BaseItem> SHU_FU_PIAN = ITEMS.register("shu_fu_pian",
() -> new BaseItemBuilder().regname("shu_fu_pian").properties(
new Item.Properties().rarity(Rarity.COMMON)
).build()
);

//骨头碎片 bone fragment
//bone fragment
public static final DeferredItem<BaseItem> BONE_FRAGMENT = ITEMS.register("bone_fragment",
() -> new BaseItemBuilder().regname("bone_fragment").properties(
new Item.Properties().rarity(Rarity.COMMON)
).build()
);
}
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.
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.
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.
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.
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.
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.

0 comments on commit 09e35f4

Please sign in to comment.