|
1 | 1 | package cursedbread.morefeatures.blocks; |
2 | 2 |
|
| 3 | +import cursedbread.morefeatures.blocks.colored.ladder.BlockLogicColoredLadder; |
| 4 | +import cursedbread.morefeatures.blocks.colored.ladder.ItemBlockPaintedLadder; |
3 | 5 | import cursedbread.morefeatures.blocks.colored.workbench.BlockLogicColoredWorkbench; |
4 | 6 | import cursedbread.morefeatures.blocks.flux.BlockLogicCropsFlux; |
5 | 7 | import cursedbread.morefeatures.blocks.colored.glass.BlockLogicColoredGlass; |
|
13 | 15 | import cursedbread.morefeatures.item.FeaturesItems; |
14 | 16 | import net.minecraft.core.block.*; |
15 | 17 | import net.minecraft.core.block.material.Material; |
| 18 | +import net.minecraft.core.block.material.MaterialColor; |
16 | 19 | import net.minecraft.core.block.tag.BlockTags; |
17 | 20 | import net.minecraft.core.data.tag.Tag; |
| 21 | +import net.minecraft.core.item.block.ItemBlockLadder; |
18 | 22 | import net.minecraft.core.item.block.ItemBlockPainted; |
19 | 23 | import net.minecraft.core.sound.BlockSound; |
20 | 24 | import net.minecraft.core.sound.BlockSounds; |
@@ -277,44 +281,44 @@ public void initilizeBlocks() { |
277 | 281 | super_Redstone_Stone_Ore = fullBlock |
278 | 282 | .setTags(BlockTags.MINEABLE_BY_PICKAXE) |
279 | 283 | .setHardness(3f) |
280 | | - .build("superore.redstone.stone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.STONE, Material.stone, false, FeaturesBlocks.super_Redstone_Stone_Ore, FeaturesBlocks.super_Redstone_Glowing_Stone_Ore)).withBlastResistance(2.0F); |
| 284 | + .build("superore.redstone.stone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.STONE, Material.stone, false, FeaturesBlocks.super_Redstone_Stone_Ore, FeaturesBlocks.super_Redstone_Glowing_Stone_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone); |
281 | 285 | super_Redstone_Basalt_Ore = fullBlock |
282 | 286 | .setTags(BlockTags.MINEABLE_BY_PICKAXE) |
283 | 287 | .setHardness(3f) |
284 | | - .build("superore.redstone.basalt", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.BASALT, Material.stone, false, FeaturesBlocks.super_Redstone_Basalt_Ore, FeaturesBlocks.super_Redstone_Glowing_Basalt_Ore)).withBlastResistance(2.0F); |
| 288 | + .build("superore.redstone.basalt", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.BASALT, Material.stone, false, FeaturesBlocks.super_Redstone_Basalt_Ore, FeaturesBlocks.super_Redstone_Glowing_Basalt_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone); |
285 | 289 | super_Redstone_Limestone_Ore = fullBlock |
286 | 290 | .setTags(BlockTags.MINEABLE_BY_PICKAXE) |
287 | 291 | .setHardness(3f) |
288 | | - .build("superore.redstone.limestone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.LIMESTONE, Material.stone, false, FeaturesBlocks.super_Redstone_Limestone_Ore, FeaturesBlocks.super_Redstone_Glowing_Limestone_Ore)).withBlastResistance(2.0F); |
| 292 | + .build("superore.redstone.limestone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.LIMESTONE, Material.stone, false, FeaturesBlocks.super_Redstone_Limestone_Ore, FeaturesBlocks.super_Redstone_Glowing_Limestone_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone); |
289 | 293 | super_Redstone_Granite_Ore = fullBlock |
290 | 294 | .setTags(BlockTags.MINEABLE_BY_PICKAXE) |
291 | 295 | .setHardness(3f) |
292 | | - .build("superore.redstone.granite", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.GRANITE, Material.stone, false, FeaturesBlocks.super_Redstone_Granite_Ore, FeaturesBlocks.super_Redstone_Glowing_Granite_Ore)).withBlastResistance(2.0F); |
| 296 | + .build("superore.redstone.granite", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.GRANITE, Material.stone, false, FeaturesBlocks.super_Redstone_Granite_Ore, FeaturesBlocks.super_Redstone_Glowing_Granite_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone); |
293 | 297 | super_Redstone_Permafrost_Ore = fullBlock |
294 | 298 | .setTags(BlockTags.MINEABLE_BY_PICKAXE) |
295 | 299 | .setHardness(3f) |
296 | | - .build("superore.redstone.permafrost", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.PERMAFROST, Material.stone, false, FeaturesBlocks.super_Redstone_Permafrost_Ore, FeaturesBlocks.super_Redstone_Glowing_Permafrost_Ore)).withBlastResistance(2.0F); |
| 300 | + .build("superore.redstone.permafrost", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.PERMAFROST, Material.stone, false, FeaturesBlocks.super_Redstone_Permafrost_Ore, FeaturesBlocks.super_Redstone_Glowing_Permafrost_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone); |
297 | 301 |
|
298 | 302 | super_Redstone_Glowing_Stone_Ore = fullBlock |
299 | 303 | .setTags(BlockTags.MINEABLE_BY_PICKAXE, BlockTags.NOT_IN_CREATIVE_MENU) |
300 | 304 | .setHardness(3f) |
301 | | - .build("superore.redstone.glowing.stone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.STONE, Material.stone, true, FeaturesBlocks.super_Redstone_Stone_Ore, FeaturesBlocks.super_Redstone_Glowing_Stone_Ore)).withBlastResistance(2.0F).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
| 305 | + .build("superore.redstone.glowing.stone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.STONE, Material.stone, true, FeaturesBlocks.super_Redstone_Stone_Ore, FeaturesBlocks.super_Redstone_Glowing_Stone_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
302 | 306 | super_Redstone_Glowing_Basalt_Ore = fullBlock |
303 | 307 | .setTags(BlockTags.MINEABLE_BY_PICKAXE, BlockTags.NOT_IN_CREATIVE_MENU) |
304 | 308 | .setHardness(3f) |
305 | | - .build("superore.redstone.glowing.basalt", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.BASALT, Material.stone, true, FeaturesBlocks.super_Redstone_Basalt_Ore, FeaturesBlocks.super_Redstone_Glowing_Basalt_Ore)).withBlastResistance(2.0F).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
| 309 | + .build("superore.redstone.glowing.basalt", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.BASALT, Material.stone, true, FeaturesBlocks.super_Redstone_Basalt_Ore, FeaturesBlocks.super_Redstone_Glowing_Basalt_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
306 | 310 | super_Redstone_Glowing_Limestone_Ore = fullBlock |
307 | 311 | .setTags(BlockTags.MINEABLE_BY_PICKAXE, BlockTags.NOT_IN_CREATIVE_MENU) |
308 | 312 | .setHardness(3f) |
309 | | - .build("superore.redstone.glowing.limestone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.LIMESTONE, Material.stone, true, FeaturesBlocks.super_Redstone_Limestone_Ore, FeaturesBlocks.super_Redstone_Glowing_Limestone_Ore)).withBlastResistance(2.0F).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
| 313 | + .build("superore.redstone.glowing.limestone", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.LIMESTONE, Material.stone, true, FeaturesBlocks.super_Redstone_Limestone_Ore, FeaturesBlocks.super_Redstone_Glowing_Limestone_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
310 | 314 | super_Redstone_Glowing_Granite_Ore = fullBlock |
311 | 315 | .setTags(BlockTags.MINEABLE_BY_PICKAXE, BlockTags.NOT_IN_CREATIVE_MENU) |
312 | 316 | .setHardness(3f) |
313 | | - .build("superore.redstone.glowing.granite", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.GRANITE, Material.stone, true, FeaturesBlocks.super_Redstone_Granite_Ore, FeaturesBlocks.super_Redstone_Glowing_Granite_Ore)).withBlastResistance(2.0F).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
| 317 | + .build("superore.redstone.glowing.granite", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.GRANITE, Material.stone, true, FeaturesBlocks.super_Redstone_Granite_Ore, FeaturesBlocks.super_Redstone_Glowing_Granite_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
314 | 318 | super_Redstone_Glowing_Permafrost_Ore = fullBlock |
315 | 319 | .setTags(BlockTags.MINEABLE_BY_PICKAXE, BlockTags.NOT_IN_CREATIVE_MENU) |
316 | 320 | .setHardness(3f) |
317 | | - .build("superore.redstone.glowing.permafrost", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.PERMAFROST, Material.stone, true, FeaturesBlocks.super_Redstone_Permafrost_Ore, FeaturesBlocks.super_Redstone_Glowing_Permafrost_Ore)).withBlastResistance(2.0F).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
| 321 | + .build("superore.redstone.glowing.permafrost", blockId++, b -> new BlockLogicSuperOreRedstone(b, Blocks.PERMAFROST, Material.stone, true, FeaturesBlocks.super_Redstone_Permafrost_Ore, FeaturesBlocks.super_Redstone_Glowing_Permafrost_Ore)).withBlastResistance(2.0F).withOverrideColor(MaterialColor.redstone).withLightEmission(0.4F).withDisabledNeighborNotifyOnMetadataChange(); |
318 | 322 |
|
319 | 323 | super_Diamond_Stone_Ore = fullBlock |
320 | 324 | .setTags(BlockTags.MINEABLE_BY_PICKAXE) |
@@ -372,23 +376,23 @@ public void initilizeBlocks() { |
372 | 376 | .withTags(BlockTags.MINEABLE_BY_SHOVEL); |
373 | 377 | } |
374 | 378 |
|
375 | | -// if (coloredLadderEnabled == 1){ |
376 | | -// vanilla_Colored_Ladder = new BlockBuilder(MOD_ID) |
377 | | -// .build("vanilla.colored.ladder", blockId++, b -> new BlockLogicColoredLadder(b)) |
378 | | -// .withSound(BlockSounds.WOOD) |
379 | | -// .withHardness(0.4F) |
380 | | -// .withDisabledNeighborNotifyOnMetadataChange() |
381 | | -// .setBlockItem(ItemBlockLadder::new) |
382 | | -// .withTags(new Tag[]{BlockTags.MINEABLE_BY_AXE}); |
383 | | -// } |
| 379 | + if (coloredLadderEnabled == 1){ |
| 380 | + vanilla_Colored_Ladder = new BlockBuilder(MOD_ID) |
| 381 | + .setBlockSound(BlockSounds.WOOD) |
| 382 | + .setHardness(0.4F) |
| 383 | + .setTags(BlockTags.MINEABLE_BY_AXE) |
| 384 | + .build("vanilla.colored.ladder", blockId++, b -> new BlockLogicColoredLadder(b)) |
| 385 | + .withDisabledNeighborNotifyOnMetadataChange() |
| 386 | + .setBlockItem(b -> new ItemBlockPaintedLadder<>(b, true)); |
| 387 | + } |
384 | 388 |
|
385 | 389 | if (coloredWorkbenchEnabled == 1){ |
386 | 390 | vanilla_Colored_Workbench = new BlockBuilder(MOD_ID) |
387 | 391 | .setBlockSound(BlockSounds.WOOD) |
388 | 392 | .setHardness(2.5F) |
389 | 393 | .setTags(BlockTags.FENCES_CONNECT, BlockTags.MINEABLE_BY_AXE) |
390 | 394 | .build("vanilla.colored.workbench", blockId++, b -> new BlockLogicColoredWorkbench(b)) |
391 | | - .setBlockItem((b) -> {return new ItemBlockPainted<>(b, false);}); |
| 395 | + .setBlockItem(b -> new ItemBlockPainted<>(b, false)); |
392 | 396 | } |
393 | 397 | initializeBlockDetails(); |
394 | 398 | } |
|
0 commit comments