Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • User Submitted Tutorials
  • [1.16.1] The Book of Minecraft Modding - complete guide for beginners
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 4
tcode2k16

[1.16.1] The Book of Minecraft Modding - complete guide for beginners

By tcode2k16, July 3, 2020 in User Submitted Tutorials

  • Reply to this topic
  • Start new topic
  • Prev
  • 1
  • 2
  • Next
  • Page 2 of 2  

Recommended Posts

ChampionAsh5357    158

ChampionAsh5357

ChampionAsh5357    158

  • Dragon Slayer
  • ChampionAsh5357
  • Members
  • 158
  • 995 posts
Posted July 16, 2020
10 hours ago, diesieben07 said:

Unfortunately most modding tutorials are written by amateurs, who don't even come here to ask for feedback before posting it as just "the way to do it" on Youtube, etc.

As prior amateur, I can attest to this. Currently, I am trying to improve my skills and knowledge by being active on these forms and verifying all of what I want to say. I believe the only tutorials currently recommended are those by McJty. If you need help on a problem that you cannot deconstruct by yourself, you should always turn to the forms or the forge discord.

  • Quote

Share this post


Link to post
Share on other sites

Marconium2    0

Marconium2

Marconium2    0

  • Tree Puncher
  • Marconium2
  • Members
  • 0
  • 1 post
Posted August 2, 2020

when you create your RegistryHandler class, it would have been helpful if you showed what you put in the import ...;   section. It took me quite a while to figure out what to import.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7586

diesieben07

diesieben07    7586

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7586
  • 54922 posts
Posted August 2, 2020
5 hours ago, Marconium2 said:

when you create your RegistryHandler class, it would have been helpful if you showed what you put in the import ...;   section. It took me quite a while to figure out what to import.

Do you not have an IDE that does this for you? You should never have to manually worry about imports except in very special corner cases.

  • Like 1
  • Quote

Share this post


Link to post
Share on other sites

FrostDracony    1

FrostDracony

FrostDracony    1

  • Tree Puncher
  • FrostDracony
  • Members
  • 1
  • 19 posts
Posted August 4, 2020 (edited)

You just give me the inspiration to do the same (of course as soon as I know more about forge and complex stuff😅).

https://thebookofmodding.ml/adding-custom-items/
 

package com.example.examplemod;

import ...;

public class RegistryHandler {
    // create DeferredRegister object
    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, ExampleMod.MODID);

    public static void init() {
        // attach DeferredRegister to the event bus
        ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
    }

    // register item
    public static final RegistryObject<Item> COPPER = ITEMS.register("copper", () ->
            new Item(
                    new Item.Properties().group(ItemGroup.MATERIALS)
            )
    );
}

 

    public static void init() {
        // attach DeferredRegister to the event bus
        ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
    }

 

Personally I register this here in the constructor of my main class, just confirm. And to keep everything organized, I create a class for every DeferredRegister (e.g. the Item DeferredRegister is in a class called "ModItems" and there are all my items), I do this for every DeferredRegister I use, but this is just a small detail and everybody has the freedom to do what he wants. (I register the bus in my mainclass constructor and separate the items from the blocks, the blocks from the potions etc.)

https://thebookofmodding.ml/
I also wanted to ask (I know that 99.99% doesn't respect this anyway, but you should always do it) that you tell the readers on the start page that they should know Java first. As I said before, 99.99% of people don't read it and start right away, they get an error and ask you directly:

 

- some guy: "Some kind of generic error", hey you! Can you please solve it for me directly? I don't understand anything about generics…

- You: Have you at least learned Java?

(The answer is already: NO)
 

So you could also just the recommend readers java tutorials in the same way as cadiboo it did (bad english, srry):
https://cadiboo.github.io/tutorials/Pre-requisites/
 

Last question:

How did you create such a website? And do you pay to host it?

I am interested in it myself (as I said before) and don't know if I should program my own website or rather use a website generator like: Github Beautiful Jekyll.  Just asking (and I think it's one of the few website tutorials, though not the only one that supports DarkTheme. Sorry, but this is something to celebrate).

 

Hope these tips will help you (sorry if it's a bit long)

P.S.: 
https://thebookofmodding.ml/loot-tables/
https://thebookofmodding.ml/crafting-and-smeliting-recipes/
I would use a DataGenerator instead of doing this manually. If you want a tutorial about the DataGenerator:
https://mcforge.readthedocs.io/en/latest/datagen/intro/

Edited August 4, 2020 by FrostDracony
  • Like 1
  • Quote

Share this post


Link to post
Share on other sites

depodoom    0

depodoom

depodoom    0

  • Tree Puncher
  • depodoom
  • Members
  • 0
  • 2 posts
Posted August 16, 2020

I'm stuck on the 2nd part of creating an item where do I edit the do i make a new class project or do i add it to the bottom of the code thats there im kinda stupid

  • Quote

Share this post


Link to post
Share on other sites

chuckster.    0

chuckster.

chuckster.    0

  • Tree Puncher
  • chuckster.
  • Members
  • 0
  • 1 post
Posted August 16, 2020

works fine up until RegistryHandler.init();. Comes up with init as red error, and RegistryHandler as depreciated with a cross through it. please help, cant find any solutions about it online.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7586

diesieben07

diesieben07    7586

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7586
  • 54922 posts
Posted August 16, 2020
5 hours ago, chuckster. said:

works fine up until RegistryHandler.init();. Comes up with init as red error, and RegistryHandler as depreciated with a cross through it. please help, cant find any solutions about it online.

You should make your own thread in the Modder Support forum and show your code.

  • Quote

Share this post


Link to post
Share on other sites

JabberWocky234    0

JabberWocky234

JabberWocky234    0

  • Tree Puncher
  • JabberWocky234
  • Members
  • 0
  • 1 post
Posted August 24, 2020 (edited)

Hey Could somebody here tell me how to make hostile mobs and make custom models for them and stuff I am a really big noob to this and know pretty much nothing I didnt really try and make one myself since i will most likely mess a lotta stuff up so i would really appreciate some help.
 

Edit: Also im Using 1.16

Edited August 24, 2020 by JabberWocky234
Unclarified Point
  • Quote

Share this post


Link to post
Share on other sites

FrostDracony    1

FrostDracony

FrostDracony    1

  • Tree Puncher
  • FrostDracony
  • Members
  • 1
  • 19 posts
Posted August 25, 2020

S E A R C H   O N   Y O U T U B E  /  G O O G L E. You will find some tutorials, so really? Dont be too lazy. 

  • Quote

Share this post


Link to post
Share on other sites

ChampionAsh5357    158

ChampionAsh5357

ChampionAsh5357    158

  • Dragon Slayer
  • ChampionAsh5357
  • Members
  • 158
  • 995 posts
Posted August 27, 2020
On 8/25/2020 at 4:14 PM, FrostDracony said:

S E A R C H   O N   Y O U T U B E  /  G O O G L E. You will find some tutorials, so really? Dont be too lazy. 

Probably not since most videos on youtube promote bad coding practices. Ask for help on the forums and use your brain. So, as you said, don't be too lazy.

  • Like 1
  • Quote

Share this post


Link to post
Share on other sites
  • Prev
  • 1
  • 2
  • Next
  • Page 2 of 2  

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 4
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DaemonUmbra
      Update mod to 1.16.5

      By DaemonUmbra · Posted 33 minutes ago

      Is it a mod you made or are you trying to update someone else's mod?
    • DaemonUmbra
      Any places for support with 1.8

      By DaemonUmbra · Posted 34 minutes ago

      We don't keep track of places that provide support for old versions.
    • monkeysHK
      [1.16] Transparent Picture Render in GUI

      By monkeysHK · Posted 39 minutes ago

      Hello. I am having trouble making a picture render transparent on my Screen and I am not sure what the problem is. It renders correctly but not transparent. Here is my code in MyScreen::render Also I want to know how to remove the effect of RenderSystem afterwards for further renders. TextureManager tm = minecraft.getTextureManager(); ResourceLocation rl = new ResourceLocation("minecraft", "textures/gui/widgets.png"); tm.bindTexture(rl); matrixStack.push(); { RenderSystem.colorMask(true, true, true, true); RenderSystem.blendColor(1f, 1f, 1f, 0.5f); RenderSystem.enableBlend(); matrixStack.translate(instru_pos[currentNbo.ordinal()][0], instru_pos[currentNbo.ordinal()][1], 0); matrixStack.scale(scale, scale, scale); this.blit(matrixStack, 0, 0, 0, 146, 20, 20); } matrixStack.pop(); Any replies will be appreciated.
    • chuckdie5el
      Server Console errors

      By chuckdie5el · Posted 49 minutes ago

      I took a section of the log from well before it started showing those issues to a few thousand lines of it. Hope this helps debug.txt
    • SixSix
      I need help to learn

      By SixSix · Posted 1 hour ago

      ¿Cómo puedo aprender a codificar para hacer mods? Llevo días preguntandome como poder hacerlo, aunque existan opciones faciles como mcreator. No me convence, puesto que quitaron los modelos .java del geckolib en blockbench y decidí buscar cursos de java, pero no sé que especificamente por donde empezar o si quiera si me servirán.
  • Topics

    • Heinzchen
      1
      Update mod to 1.16.5

      By Heinzchen
      Started 3 hours ago

    • iiDk_lol
      1
      Any places for support with 1.8

      By iiDk_lol
      Started 1 hour ago

    • monkeysHK
      0
      [1.16] Transparent Picture Render in GUI

      By monkeysHK
      Started 40 minutes ago

    • chuckdie5el
      3
      Server Console errors

      By chuckdie5el
      Started 4 hours ago

    • SixSix
      0
      I need help to learn

      By SixSix
      Started 1 hour ago

  • Who's Online (See full list)

    • chuckdie5el
    • Draco18s
    • Veo
    • JamesJJJ
    • gibbyj
    • Godis_apan
    • JeffMan
    • DaemonUmbra
    • Ultrawebsling
  • All Activity
  • Home
  • Mod Developer Central
  • User Submitted Tutorials
  • [1.16.1] The Book of Minecraft Modding - complete guide for beginners
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community