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.

dsat4200

Members
  • Joined

  • Last visited

  1. nevermind im stupid my modid is tb not tm
  2. Here is my code: package allernez.tomoko; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = "tb", name = "TomokoBlocks", version = "1.0") public class TomokoBlocks { public static Item itemTomoko1; @EventHandler public void preInit(FMLPreInitializationEvent event) { //Item/Block init and registering //Config handling itemTomoko1 = new ItemTomoko1().setUnlocalizedName("ItemTomoko1").setTextureName("tm:itemtomoko"); //returns item.ItemTomoko1; GameRegistry.registerItem(itemTomoko1, itemTomoko1.getUnlocalizedName().substring(5)); } @EventHandler public void init(FMLInitializationEvent event) { //Proxy, TitleEntity, GUI and Packet Registering } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } everything works, but loading the texture. I don't know if this is a problem with eclipse, as it shows my textures as text files, despite them being in .png format. The path of the textures is C:\Users\Joe\Desktop\Mod\src\main\resources\assets\tb\textures\items my textures are 16x16 transparent .png files. ItemTomoko1.java TomokoBlocks.java

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.