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
  • 54921 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
  • 54921 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

    • Heinzchen
      Update mod to 1.16.5

      By Heinzchen · Posted 15 minutes ago

      Hi. I am  new to programming mods. I have a mod for the minecraft version 1.15.2. But I do not know how to update it to the newest minecraft version (1.16.5).
    • diesieben07
      Forge error mid-loading (Redstone flux, 1.12.2)

      By diesieben07 · Posted 21 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • amundo
      Forge error mid-loading (Redstone flux, 1.12.2)

      By amundo · Posted 23 minutes ago

      Hey, i have alot of mods installed, and one of them requires redstone flux. I read that i should add "-Dcofh.rf.crashOnOldAPI=false" but it doesn't work, i tried deleting the whole JVM arguments and just adding onto the "original" ones but it just won't work. Can someone help me with this?
    • cadbane86140
      Minecraft: Survival Island Episode 6- Beds, Mineshafts and more Stupidity!

      By cadbane86140 · Posted 24 minutes ago

      Hello There! In today's Survival Island episode we FINALLY make beds, yeah I know it's been like 5 episodes and that was the first challenge haha but we got it! We also explore the mineshaft we found last episode and we also discuss our next big project! There are so many hilarious moments in this episode that I know you guys are gonna love! I hope you all enjoy this video and if you did don't forget to like and sub for more survival island in the future!   
    • Gęsioł
      1.16.4 "The Vanilla Experience" Server problem

      By Gęsioł · Posted 34 minutes ago

      Well i removed mods thaw was causing problems and it works...
  • Topics

    • Heinzchen
      0
      Update mod to 1.16.5

      By Heinzchen
      Started 15 minutes ago

    • amundo
      1
      Forge error mid-loading (Redstone flux, 1.12.2)

      By amundo
      Started 23 minutes ago

    • cadbane86140
      0
      Minecraft: Survival Island Episode 6- Beds, Mineshafts and more Stupidity!

      By cadbane86140
      Started 24 minutes ago

    • Gęsioł
      2
      1.16.4 "The Vanilla Experience" Server problem

      By Gęsioł
      Started 1 hour ago

    • Forix
      0
      [1.16.4] Multiple worlds

      By Forix
      Started 40 minutes ago

  • Who's Online (See full list)

    • TheCapriKing
    • WildHeart
    • BGames
    • JeffMan
    • Heinzchen
    • Klarks
    • XmasAspire
    • diesieben07
    • stray00000009
    • stray
    • loordgek
    • Leafy Vine
    • Microcellule
    • RedBobKid
    • amundo
    • Forix
  • 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