Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FaaatPotato

Members
  • Joined

  • Last visited

  1. Ye imma just stop waisting your time then. I obviously dont have enough knowledge and should start somewhere else. Have a good night or day you two and thanks for the help anyways!
  2. yes thats weird, isnt showing up or isnt available for /give just my item that i created (isnt an blockitem) sitting there
  3. here: @Mod.EventBusSubscriber(modid = Modlearning.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) @SubscribeEvent public static void onRegisterItems.... and thats in the public main() public Modlearning() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); BlockInit.BLOCKS.register(bus); ItemInit.ITEMS.register(bus); MinecraftForge.EVENT_BUS.register(this); }
  4. I dont know tbh, i assume that im wrong here then. Just startet and thought learning by doing...
  5. I'm pretty sure that it is getting called but imma go with that if im not successful with the old method
  6. Sorry, maybe i wasnt clear enough. I wanted to create an item for every block i created in a BlockInit or "ModBlocks", however you want to call it, and put it into the redstone tab for now. But that isnt working - the BlockItem isnt showing up in the Redstone Tab. Thats the problem im facing right now.
  7. 1. Yes, that is the error message i get when im looking at the debug tab while debugging. 2. I dont know, seemed like a clean and fast way to create an item for every block and put it in one tab. Also this is where the client starts loading and just stops as soon as this error appears with no response (only happens when debugging, when starting normally the item just isnt showing up.)
  8. FaaatPotato changed their profile photo
  9. Thats what ive done so far and i dont know why it isnt working at all... Should create an Item in the Redstone group for every block created in BlockInit with the RegistryName @SubscribeEvent public static void onRegisterItems(final RegistryEvent.Register<Item> event) { BlockInit.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> { event.getRegistry().register(new BlockItem(block, new Item.Properties().group(ItemGroup.REDSTONE)).setRegistryName(block.getRegistryName())); }); } That last part .setRegistryName(block.getRegistryName())); isnt working i guess. Throws: this = {RegistryEvent$Register@11809} Object is being initialized name = {ResourceLocation@11810} "minecraft:block" registry = {ForgeRegistry@11811} this.registry = null this.name = null when i debug and i get this warning when i hover over that part: any ideas?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.