Jump to content

CasAl

Members
  • Posts

    1
  • Joined

  • Last visited

CasAl's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. The information from xndir worked for me. Alsp in my case, similar errors appear for fluid blocks in the new version, indicating that adjustments are also necessary. Without these changes, an error message stating “block id not set” will appear. The following code example demonstrates how to correctly configure the fluid block: public static final RegistryObject<LiquidBlock> EXAMPLE_FLUID_BLOCK = BlocksRegister.BLOCKS.register( "example_fluid_block", () -> new ExampleFluidBlock( EXAMPLE_FLUID, Block.Properties.ofFullCopy(Blocks.WATER) .noCollission() .strength(1000.0F) .noOcclusion() .setId( ResourceKey.create( ForgeRegistries.BLOCKS.getRegistryKey(), ResourceLocation.parse( String.format("%s:%s", ExampleMod.MOD_ID, "example_fluid_block") ) ) ) ) );
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.