Skip to content

Commit 3a693ee

Browse files
authored
Merge pull request #105 from pumpkin1zz/main
更新贴图,金西瓜磨制石头
2 parents 01deea9 + c34109e commit 3a693ee

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

src/main/java/org/polaris2023/wild_wind/common/init/ModBlocks.java

+16
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,22 @@ public class ModBlocks {
172172
public static final DeferredItem<BlockItem> DEEPSLATE_SALT_ORE_ITEM =
173173
register("deepslate_salt_ore", DEEPSLATE_SALT_ORE);
174174

175+
@I18n(en_us = "Glistering Melon", zh_cn = "金西瓜", zh_tw = "金西瓜")
176+
public static final DeferredBlock<Block> GLISTERING_MELON =
177+
register("glistering_melon", Block::new, BlockBehaviour.Properties.of().mapColor(MapColor.GOLD));
178+
@BasicBlockItem
179+
public static final DeferredItem<BlockItem> GLISTERING_MELON_ITEM =
180+
register("glistering_melon", GLISTERING_MELON);
181+
182+
@I18n(en_us = "Polished Stone",zh_cn = "磨制石头",zh_tw = "磨製石頭")
183+
@CubeAll
184+
public static final DeferredBlock<Block> POLISHED_STONE =
185+
register("polished_stone", Block::new, BlockBehaviour.Properties.of().mapColor(MapColor.STONE).strength(2.5f));
186+
@BasicBlockItem
187+
public static final DeferredItem<BlockItem> POLISHED_STONE_ITEM =
188+
register("polished_stone", POLISHED_STONE);
189+
190+
175191
@AllWood
176192
@I18n(en_us = "Azalea Planks", zh_cn = "杜鹃木板", zh_tw = "杜鵑木材")
177193
public static final DeferredBlock<Block> AZALEA_PLANKS =

src/main/java/org/polaris2023/wild_wind/datagen/ModBlockStateProvider.java

+19
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ public ModBlockStateProvider(PackOutput output, ExistingFileHelper exFileHelper)
3333
Helpers.location("block/brittle_ice_2"),
3434
Helpers.location("block/brittle_ice_3")
3535
};
36+
public static final ResourceLocation[] WOOD = new ResourceLocation[] {
37+
Helpers.location("block/wood")
38+
};
39+
public static final ResourceLocation[] CONCRETE = new ResourceLocation[] {
40+
Helpers.location("block/concrete")
41+
};
42+
public static final ResourceLocation[] GLAZED_TERRACOTTA = new ResourceLocation[] {
43+
Helpers.location("block/glazed_terracotta")
44+
};
3645

3746
@Override
3847
protected void registerStatesAndModels() {
@@ -99,6 +108,16 @@ protected void registerStatesAndModels() {
99108
glazedTerracottaStates.partialState().with(BlockStateProperties.HORIZONTAL_FACING, facing)
100109
.addModels(new ConfiguredModel(models().cubeAll("glazed_terracotta", Helpers.location("block/glazed_terracotta")), 0, yRotation, false));
101110
}
111+
112+
//glistering_melon
113+
BlockModelBuilder glisteringMelonModel = models().cubeBottomTop(
114+
"glistering_melon",
115+
Helpers.location("block/glistering_melon_side"),
116+
Helpers.location("block/glistering_melon_side"),
117+
Helpers.location("block/glistering_melon_top")
118+
);
119+
simpleBlock(ModBlocks.GLISTERING_MELON.get(), glisteringMelonModel);
120+
102121
}
103122

104123
private void glowMucusModel(VariantBlockStateBuilder glowMucusStates, Direction facing, int layers, Function<Integer, ConfiguredModel> function) {
Loading
Loading
Loading

0 commit comments

Comments
 (0)