Posted November 14, 20204 yr I am trying to make a tile entity but it gives error. My code: public static final DeferredRegister<TileEntityType<?>> TILE_ENTITY_TYPES = new DeferredRegister<>(ForgeRegistries.TILE_ENTITIES,vinl.MOD_ID); public static final RegistryObject<TileEntityType<PowererTileEntity>> POWERER = TILE_ENTITY_TYPES.register("powerer",()->TileEntityType.Builder.create(PowererTileEntity::new, BlockInit.POWERER.get()).build(null));
November 14, 20204 yr Read the error and it should tell you what you need to do. A tiny bit of inspection is all that's needed.
November 15, 20204 yr Author It just says: Cannot resolve method 'create(<method reference>, net.minecraftforge.fml.RegistryObject<net.minecraft.block.Block>)'
November 16, 20204 yr On 11/15/2020 at 6:51 AM, Xed said: Cannot resolve method So you're using a nonexistent method reference. Your second parameter is passing in a RegistryObject instead of a Block.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.