March 4, 20214 yr 11 minutes ago, samjviana said: I think that those "Item" Registry Entries aren't even necessary, you could subscribe the RegistryEvent.Register<Item> and them register an BlockItem for those Blocks, unlesse you need something specific. Almost certainly true. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
March 4, 20214 yr 3 minutes ago, Draco18s said: Almost certainly true. Maybe he could do something like this, if i'm not mistaken: @SubscribeEvent public static void onRegisterItem(final RegistryEvent.Register<Item> event) { final IForgeRegistry<Item> registry = event.getRegistry(); ModBlocks.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> { if (!isInFilter(block)) { return; } else { final BlockItem blockItem = new BlockItem(block, properties); blockItem.setRegistryName(block.getRegistryName()); registry.register(blockItem); } }); }
March 4, 20214 yr 2 minutes ago, diesieben07 said: They are already doing that. oh, my bad ... didn't see that XD them he could just delete those entries, no?
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.