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    162

ChampionAsh5357

ChampionAsh5357    162

  • World Shaper
  • ChampionAsh5357
  • Members
  • 162
  • 1024 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    7618

diesieben07

diesieben07    7618

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7618
  • 55237 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    7618

diesieben07

diesieben07    7618

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7618
  • 55237 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    162

ChampionAsh5357

ChampionAsh5357    162

  • World Shaper
  • ChampionAsh5357
  • Members
  • 162
  • 1024 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

    • diesieben07
      Unable to install forge 1.16.5

      By diesieben07 · Posted 1 minute ago

      Some zip managers like to take control of the .jar file extension away from Java. Make sure you have Java installed and try running Jarfix once, then try the installer again.
    • diesieben07
      Unable to install forge 1.16.5

      By diesieben07 · Posted 1 minute ago

      Do not extract it. It is not an archive.
    • gtf7dvygiduivtd
      I have a crash message with error code: 0

      By gtf7dvygiduivtd · Posted 25 minutes ago

      it only happens in 1.15+   logs.txt
    • IchBinEinToast
      Task :runClient FAILED | FAILURE: Build failed with an exception.

      By IchBinEinToast · Posted 55 minutes ago

      Oh I solved it  Thank you @diesieben07
    • domi0908
      fix hitbox red baby mobs version forge

      By domi0908 · Posted 56 minutes ago

      fix bug 
  • Topics

    • Tyrone117
      4
      Unable to install forge 1.16.5

      By Tyrone117
      Started 9 hours ago

    • gtf7dvygiduivtd
      0
      I have a crash message with error code: 0

      By gtf7dvygiduivtd
      Started 25 minutes ago

    • IchBinEinToast
      5
      Task :runClient FAILED | FAILURE: Build failed with an exception.

      By IchBinEinToast
      Started 2 hours ago

    • domi0908
      1
      fix hitbox red baby mobs version forge

      By domi0908
      Started 22 hours ago

    • Tavi007
      0
      Need help with modifying some vanilla rendering [1.16.4]

      By Tavi007
      Started 1 hour ago

  • Who's Online (See full list)

    • diesieben07
    • sixze
    • Tavi007
    • Sr. Qwertz
    • Ottercorn
    • HeroBear
    • gtf7dvygiduivtd
    • Leronus
    • Nuparu00
    • Choonster
  • 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