Builder's Delight (Forge)

Builder's Delight (Forge)

3M Downloads

[ QUESTION ] BlockGlassCT & BlockPaneCT and the ResourceLocation parameter

Xelbayria opened this issue ยท 0 comments

commented

Hello,
Is it possible to remove texture from this:

  • com.tynoxs.buildersdelight.content.block.connected.BlockGlassCT
  • com.tynoxs.buildersdelight.content.block.connected.BlockPaneCT

Basic Detail:

I was trying to create an module for BuildersDelight via a mod where it is using the class of BuildersDelight to create blocks. It also can add foreign woods as textures from other mods like Biomes O' Plenty, or mods that add new Wood Types.

More Detail:

here's a picture:
BuildersDelight

The above is done with Every Compat (the mod) and your mod along with TerraFirmaCraft (TFC) which has 19 wood types. That is the OAK Wood Type from TFC.

        PLANKS_1 = SimpleEntrySet.builder(WoodType.class, "planks_1",
                        BdBlocks.OAK_PLANKS_1, () -> WoodType.OAK_WOOD_TYPE,
                        w -> new BlockFlammable(WoodGood.copySafe(w.planks))
                )
                .addTag(BlockTags.MINEABLE_WITH_AXE, Registry.BLOCK_REGISTRY)
                .setTab(() -> TabBlock)
                .addTexture(modRes("block/oak_planks_1")) <- RIGHT HERE
                .createPaletteFromOak(this::neutralPalette)
                .defaultRecipe()
                .setRenderType(() -> RenderType::cutout)
                .build();

        this.addEntry(PLANKS_1);

I had no problem with planks and others except Glass and Glass_Pane.

however, the issue is this:

        GLASS_PANE_1 = SimpleEntrySet.builder(WoodType.class, "glass_pane_1",
                        BdBlocks.OAK_GLASS_PANE_1, () -> WoodType.OAK_WOOD_TYPE,
                        w -> new BlockPaneCT(BlockBehaviour.Properties.copy(Blocks.GLASS), "PATH/TO/TEXTURE")
                )
                .addTag(BlockTags.MINEABLE_WITH_AXE, Registry.BLOCK_REGISTRY)
                .addTag(Tags.Blocks.GLASS_PANES, Registry.ITEM_REGISTRY)
                .setTab(() -> TabBlock)
                .addTexture(modRes("block/glass/oak_glass/oak_glass_1")) <- RIGHT HERE
                .defaultRecipe()
                .setRenderType(() -> RenderType::cutout)
                .build();

you should notice .addTexture with <- RIGHT HERE that's where it generated the texture using Wood Type's texture (from your mod as the base) along with Foreign Wood_Type.

the PATH/TO/TEXTURE as String texture is not necessary? You can think EveryCompat as an addon for your mod.

Question

So is there a way to remove the texture and just use BlockGlassCT(BlockBehaviour.Properties properties)? Is it possible. I had trouble with trying to give it a texture but couldn't. Because the generated textures are stored in the memory, not locally stored.