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.

mostafa mohy

Members
  • Joined

  • Last visited

Posts posted by mostafa mohy

  1. Posted

    hi i am new to minecraft modding and java programming but i have experience in c# and c++< so i tired to make a new ingot for my httyd mod but it textures and name doesnt show, btw i am following harry talks tutorials for forge 1.13 i will post screen shots for my code and workspace

     

     

    package httyd.mostafa;

    import httyd.mostafa.lists.itemlists;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemGroup;
    import net.minecraft.util.ResourceLocation;
    import net.minecraftforge.common.MinecraftForge;
    import net.minecraftforge.event.RegistryEvent;
    import net.minecraftforge.eventbus.api.SubscribeEvent;
    import net.minecraftforge.fml.common.Mod;
    import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
    import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
    import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
    @Mod("httyd")
    public class httyd {
        
        
            public static httyd instance;
            public static String modid="httyd";
                
            
            public httyd() {
                instance=this;
            MinecraftForge.EVENT_BUS.register(this);
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this :: setup);
        FMLJavaModLoadingContext.get().getModEventBus().addListener(this :: clientregistries);
            }

            private void setup(final FMLCommonSetupEvent event)
            {
                
            }
            private void clientregistries(final FMLClientSetupEvent event)
            {
                
            }
            @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD)
            public static class regsitryevents
            {   @SubscribeEvent
                public static void registeritems(final RegistryEvent.Register<Item>event )
                {          event.getRegistry().registerAll(
                itemlists.gronc_ingot = new Item(new Item.Properties().group(ItemGroup.MISC)).setRegistryName(location("gronc_ingot"))
                
                        
                        );
                }
            
            
        }
            public static ResourceLocation location(String name)
            {
                return  new ResourceLocation(modid, name);
            }
                
                
            }

     

    Untitled.png

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.