Jump to content

Recommended Posts

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

Posted

Sadly most tutorials you find on YouTube are absolute garbage filled with cargo-cult programming ("Do this because it works but I'm not going to tell you WHY it works") and often made by people who have just barely learned the system themselves.

In Harry's case I have seen threads from him asking how to do things, learning as he makes the tutorial. (Blind leading the blind).

The better tutorials you'll find are text based on GitHub.

  • Like 2

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 5/18/2019 at 10:17 PM, DaemonUmbra said:

text based on GitHub

Expand  

https://cadiboo.github.io/tutorials/1.13.2/forge/

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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