Implement Copper variant of existing blocks (#6839)

This commit is contained in:
Asfadavy Aulia A.
2025-10-13 21:39:50 +07:00
committed by GitHub
parent 32db9f9136
commit 06a75759bb
10 changed files with 142 additions and 10 deletions

View File

@@ -106,6 +106,10 @@ final class StringToItemParser extends StringToTParser{
$register("copper_bulb", fn() => Blocks::COPPER_BULB()->setOxidation($oxidation)->setWaxed($waxed));
$register("copper_door", fn() => Blocks::COPPER_DOOR()->setOxidation($oxidation)->setWaxed($waxed));
$register("copper_trapdoor", fn() => Blocks::COPPER_TRAPDOOR()->setOxidation($oxidation)->setWaxed($waxed));
$register("copper_bars", fn() => Blocks::COPPER_BARS()->setOxidation($oxidation)->setWaxed($waxed));
$register("copper_chain", fn() => Blocks::COPPER_CHAIN()->setOxidation($oxidation)->setWaxed($waxed));
$register("copper_lantern", fn() => Blocks::COPPER_LANTERN()->setOxidation($oxidation)->setWaxed($waxed));
$register("lightning_rod", fn() => Blocks::LIGHTNING_ROD()->setOxidation($oxidation)->setWaxed($waxed));
}
}
@@ -279,6 +283,7 @@ final class StringToItemParser extends StringToTParser{
$result->registerBlock("concrete_powder", fn() => Blocks::CONCRETE_POWDER());
$result->registerBlock("concretepowder", fn() => Blocks::CONCRETE_POWDER());
$result->registerBlock("copper_ore", fn() => Blocks::COPPER_ORE());
$result->registerBlock("copper_torch", fn() => Blocks::COPPER_TORCH());
$result->registerBlock("coral", fn() => Blocks::CORAL());
$result->registerBlock("coral_block", fn() => Blocks::CORAL_BLOCK());
$result->registerBlock("coral_fan", fn() => Blocks::CORAL_FAN());
@@ -771,7 +776,6 @@ final class StringToItemParser extends StringToTParser{
$result->registerBlock("light", fn() => Blocks::LIGHT());
$result->registerBlock("light_block", fn() => Blocks::LIGHT());
$result->registerBlock("light_weighted_pressure_plate", fn() => Blocks::WEIGHTED_PRESSURE_PLATE_LIGHT());
$result->registerBlock("lightning_rod", fn() => Blocks::LIGHTNING_ROD());
$result->registerBlock("lilac", fn() => Blocks::LILAC());
$result->registerBlock("lily_of_the_valley", fn() => Blocks::LILY_OF_THE_VALLEY());
$result->registerBlock("lily_pad", fn() => Blocks::LILY_PAD());