258
258
import com .simibubi .create .foundation .block .DyedBlockList ;
259
259
import com .simibubi .create .foundation .block .ItemUseOverrides ;
260
260
import com .simibubi .create .foundation .block .WrenchableDirectionalBlock ;
261
- import com .simibubi .create .foundation .block .render .ReducedDestroyEffects ;
262
261
import com .simibubi .create .foundation .data .AssetLookup ;
263
262
import com .simibubi .create .foundation .data .BlockStateGen ;
264
263
import com .simibubi .create .foundation .data .BuilderTransformers ;
317
316
318
317
import net .fabricmc .fabric .api .registry .FlammableBlockRegistry ;
319
318
import net .fabricmc .fabric .api .registry .FuelRegistry ;
319
+ import net .fabricmc .fabric .api .tag .convention .v2 .ConventionalItemTags ;
320
320
321
321
import io .github .fabricators_of_create .porting_lib .models .generators .ConfiguredModel ;
322
322
import io .github .fabricators_of_create .porting_lib .models .generators .ModelFile ;
@@ -537,7 +537,7 @@ public class AllBlocks {
537
537
.transform (CStress .setNoImpact ())
538
538
.transform (displaySource (AllDisplaySources .ITEM_NAMES ))
539
539
.onRegister (CreateRegistrate .blockModel (() -> BeltModel ::new ))
540
- .clientExtension (() -> () -> new BeltBlock . RenderProperties () )
540
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
541
541
.register ();
542
542
543
543
public static final BlockEntry <ChainConveyorBlock > CHAIN_CONVEYOR =
@@ -818,7 +818,7 @@ public class AllBlocks {
818
818
.isRedstoneConductor ((level , pos , state ) -> false ))
819
819
.transform (pickaxeOnly ())
820
820
.addLayer (() -> RenderType ::cutoutMipped )
821
- .clientExtension (() -> () -> new ReducedDestroyEffects () )
821
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
822
822
.blockstate (new ChuteGenerator ()::generate )
823
823
.item (ChuteItem ::new )
824
824
.transform (customItemModel ("_" , "block" ))
@@ -832,7 +832,7 @@ public class AllBlocks {
832
832
.isSuffocating ((level , pos , state ) -> false )
833
833
.isRedstoneConductor ((level , pos , state ) -> false ))
834
834
.addLayer (() -> RenderType ::cutoutMipped )
835
- .clientExtension (() -> () -> new ReducedDestroyEffects () )
835
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
836
836
.transform (pickaxeOnly ())
837
837
.blockstate ((c , p ) -> BlockStateGen .simpleBlock (c , p , AssetLookup .forPowered (c , p )))
838
838
.item ()
@@ -1621,7 +1621,7 @@ public class AllBlocks {
1621
1621
.forceSolidOn ())
1622
1622
.addLayer (() -> RenderType ::cutoutMipped )
1623
1623
.transform (pickaxeOnly ())
1624
- .clientExtension (() -> () -> new TrackBlock . RenderProperties () )
1624
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
1625
1625
.onRegister (CreateRegistrate .blockModel (() -> TrackModel ::new ))
1626
1626
.blockstate (new TrackBlockStateGenerator ()::generate )
1627
1627
.tag (AllBlockTags .RELOCATION_NOT_SUPPORTED .tag )
@@ -1730,7 +1730,7 @@ public class AllBlocks {
1730
1730
.properties (p -> p .mapColor (MapColor .STONE ))
1731
1731
.transform (pickaxeOnly ())
1732
1732
.tag (AllBlockTags .SAFE_NBT .tag )
1733
- .clientExtension (() -> () -> new ReducedDestroyEffects () )
1733
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
1734
1734
.onRegister (movementBehaviour (FunnelMovementBehaviour .andesite ()))
1735
1735
.blockstate (new FunnelGenerator ("andesite" , false )::generate )
1736
1736
.item (FunnelItem ::new )
@@ -1746,7 +1746,7 @@ public class AllBlocks {
1746
1746
.properties (p -> p .mapColor (MapColor .STONE ))
1747
1747
.transform (pickaxeOnly ())
1748
1748
.tag (AllBlockTags .SAFE_NBT .tag )
1749
- .clientExtension (() -> () -> new ReducedDestroyEffects () )
1749
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
1750
1750
.blockstate (new BeltFunnelGenerator ("andesite" )::generate )
1751
1751
.loot ((p , b ) -> p .dropOther (b , ANDESITE_FUNNEL .get ()))
1752
1752
.register ();
@@ -1758,7 +1758,7 @@ public class AllBlocks {
1758
1758
.properties (p -> p .mapColor (MapColor .TERRACOTTA_YELLOW ))
1759
1759
.transform (pickaxeOnly ())
1760
1760
.tag (AllBlockTags .SAFE_NBT .tag )
1761
- .clientExtension (() -> () -> new ReducedDestroyEffects () )
1761
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
1762
1762
.onRegister (movementBehaviour (FunnelMovementBehaviour .brass ()))
1763
1763
.blockstate (new FunnelGenerator ("brass" , true )::generate )
1764
1764
.item (FunnelItem ::new )
@@ -1774,7 +1774,7 @@ public class AllBlocks {
1774
1774
.properties (p -> p .mapColor (MapColor .TERRACOTTA_YELLOW ))
1775
1775
.transform (pickaxeOnly ())
1776
1776
.tag (AllBlockTags .SAFE_NBT .tag )
1777
- .clientExtension (() -> () -> new ReducedDestroyEffects () )
1777
+ .tag ( AllBlockTags . HAS_REDUCED_DESTROY_EFFECTS . tag )
1778
1778
.blockstate (new BeltFunnelGenerator ("brass" )::generate )
1779
1779
.loot ((p , b ) -> p .dropOther (b , BRASS_FUNNEL .get ()))
1780
1780
.register ();
@@ -2025,7 +2025,7 @@ public class AllBlocks {
2025
2025
REGISTRATE .block ("copper_table_cloth" , p -> new TableClothBlock (p , "copper" ))
2026
2026
.transform (BuilderTransformers .tableCloth ("copper" , SharedProperties ::copperMetal , false ))
2027
2027
.properties (p -> p .requiresCorrectToolForDrops ())
2028
- .recipe ((c , p ) -> p .stonecutting (DataIngredient .tag (net . neoforged . neoforge . common . Tags . Items . INGOTS_COPPER ),
2028
+ .recipe ((c , p ) -> p .stonecutting (DataIngredient .tag (ConventionalItemTags . COPPER_INGOTS ),
2029
2029
RecipeCategory .DECORATIONS , c ::get , 2 ))
2030
2030
.transform (pickaxeOnly ())
2031
2031
.lang ("Copper Table Cover" )
@@ -2300,15 +2300,15 @@ public class AllBlocks {
2300
2300
public static final BlockEntry <MetalLadderBlock > COPPER_LADDER =
2301
2301
REGISTRATE .block ("copper_ladder" , MetalLadderBlock ::new )
2302
2302
.transform (BuilderTransformers .ladder ("copper" ,
2303
- () -> DataIngredient .tag (net . neoforged . neoforge . common . Tags . Items . INGOTS_COPPER ), MapColor .COLOR_ORANGE ))
2303
+ () -> DataIngredient .tag (ConventionalItemTags . COPPER_INGOTS ), MapColor .COLOR_ORANGE ))
2304
2304
.register ();
2305
2305
2306
2306
public static final BlockEntry <IronBarsBlock > ANDESITE_BARS = MetalBarsGen .createBars ("andesite" , true ,
2307
2307
() -> DataIngredient .items (AllItems .ANDESITE_ALLOY .get ()), MapColor .STONE );
2308
2308
public static final BlockEntry <IronBarsBlock > BRASS_BARS = MetalBarsGen .createBars ("brass" , true ,
2309
2309
() -> DataIngredient .tag (AllTags .commonItemTag ("ingots/brass" )), MapColor .TERRACOTTA_YELLOW );
2310
2310
public static final BlockEntry <IronBarsBlock > COPPER_BARS = MetalBarsGen .createBars ("copper" , true ,
2311
- () -> DataIngredient .tag (net . neoforged . neoforge . common . Tags . Items . INGOTS_COPPER ), MapColor .COLOR_ORANGE );
2311
+ () -> DataIngredient .tag (ConventionalItemTags . COPPER_INGOTS ), MapColor .COLOR_ORANGE );
2312
2312
2313
2313
public static final BlockEntry <MetalScaffoldingBlock > ANDESITE_SCAFFOLD = REGISTRATE
2314
2314
.block ("andesite_scaffolding" , MetalScaffoldingBlock ::new )
@@ -2327,7 +2327,7 @@ public class AllBlocks {
2327
2327
public static final BlockEntry <MetalScaffoldingBlock > COPPER_SCAFFOLD =
2328
2328
REGISTRATE .block ("copper_scaffolding" , MetalScaffoldingBlock ::new )
2329
2329
.transform (BuilderTransformers .scaffold ("copper" ,
2330
- () -> DataIngredient .tag (net . neoforged . neoforge . common . Tags . Items . INGOTS_COPPER ), MapColor .COLOR_ORANGE ,
2330
+ () -> DataIngredient .tag (ConventionalItemTags . COPPER_INGOTS ), MapColor .COLOR_ORANGE ,
2331
2331
AllSpriteShifts .COPPER_SCAFFOLD , AllSpriteShifts .COPPER_SCAFFOLD_INSIDE , AllSpriteShifts .COPPER_CASING ))
2332
2332
.register ();
2333
2333
@@ -2695,14 +2695,14 @@ public class AllBlocks {
2695
2695
2696
2696
public static final CopperBlockSet COPPER_SHINGLES = new CopperBlockSet (REGISTRATE , "copper_shingles" ,
2697
2697
"copper_roof_top" , CopperBlockSet .DEFAULT_VARIANTS , (c , p ) -> {
2698
- p .stonecutting (DataIngredient .tag (net . neoforged . neoforge . common . Tags . Items . INGOTS_COPPER ), RecipeCategory .BUILDING_BLOCKS ,
2698
+ p .stonecutting (DataIngredient .tag (ConventionalItemTags . COPPER_INGOTS ), RecipeCategory .BUILDING_BLOCKS ,
2699
2699
c ::get , 2 );
2700
2700
}, (ws , block ) -> connectedTextures (() -> new RoofBlockCTBehaviour (AllSpriteShifts .COPPER_SHINGLES .get (ws )))
2701
2701
.accept (block ));
2702
2702
2703
2703
public static final CopperBlockSet COPPER_TILES =
2704
2704
new CopperBlockSet (REGISTRATE , "copper_tiles" , "copper_roof_top" , CopperBlockSet .DEFAULT_VARIANTS , (c , p ) -> {
2705
- p .stonecutting (DataIngredient .tag (net . neoforged . neoforge . common . Tags . Items . INGOTS_COPPER ), RecipeCategory .BUILDING_BLOCKS ,
2705
+ p .stonecutting (DataIngredient .tag (ConventionalItemTags . COPPER_INGOTS ), RecipeCategory .BUILDING_BLOCKS ,
2706
2706
c ::get , 2 );
2707
2707
}, (ws , block ) -> connectedTextures (() -> new RoofBlockCTBehaviour (AllSpriteShifts .COPPER_TILES .get (ws )))
2708
2708
.accept (block ));
0 commit comments