Posted September 29, 20205 yr I'm trying to create a quarry tile entity and I keep getting an error under ::new from this code public static final RegistryObject<TileEntityType<QuarryTileEntity>> QUARRY = TILE_ENTITY_TYPES.register("quarry", () -> TileEntityType.Builder.create(QuarryTileEntity::new, ModBlocks.QUARRY).build(null)); I get error on underlined new Edited September 29, 20205 yr by Sikalop
September 29, 20205 yr Show your tile entity class please...also, to get an object from a registry object you need to use get().. ModBlocks.QUARRY won't work because you are not getting the Block itself, you are getting a RegistryObject<Block> Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
September 29, 20205 yr Author Thank you, when I used .get() the error went away and it started working. Edited September 29, 20205 yr by Sikalop
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.