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.

Therealdavid0_

Members
  • Joined

  • Last visited

Everything posted by Therealdavid0_

  1. This happens after i try running the client Test_Mod-1.19.4\src\main\java\net\davax\testmod\item\ModItems.java:18: error: cannot find symbol () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_MISC))); ^ symbol: variable TAB_MISC location: class CreativeModeTab
  2. So i just started making a mimecraft mod, and i've run into this problem while trying to make an item, Item.Properties().tab is missing. All the other properties are there except for .tab. ".tab" and "TAB_MISC" are marked as errors. public static final RegistryObject<Item> ASTRUM = ITEMS.register("astrum", () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_MISC))); This is the whole Item script package net.davax.testmod.item; import com.google.common.util.concurrent.ClosingFuture; import net.davax.testmod.TestMod; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.Item; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; import org.apache.commons.io.output.DeferredFileOutputStream; public class ModItems { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, TestMod.MOD_ID); public static final RegistryObject<Item> ASTRUM = ITEMS.register("astrum", () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_MISC))); public static void register(IEventBus eventBus) { ITEMS.register(eventBus); } } I dont know what im missing or i've missed. Hope you can help me

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.