Jump to content

Recommended Posts

Posted
  On 9/30/2019 at 12:07 AM, colenobi said:

 here is the error message whenever I try to load the server in eclipse.

Expand  

Any and all rendering code must be done on the client only.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 9/30/2019 at 12:24 AM, colenobi said:

okay, so what am I supposed to do then? like I said earlier, I haven't done modding in a few years

Expand  

There is a lot that needs to be done.

First off remove IHasModel, BlockBase and ItemBase. All Items have models, and there is already a base Item and Block class. They are called Item and Block. Don't use inheritance for code-reuse. It's an anti-pattern.

The main problem comes from you calling RenderHandler.someMethodHere in common code. If you are gonna call Client code from a common code class/method you need to use the @SidedProxy system. Route the code through them.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

Okay, I fixed the issue, I had to add

@SideOnly(Side.CLIENT)

Over both Overrides here.

 

The server is now running with no issues (for now). Thank you for your time, you've been really helpful. :)

Posted
  On 9/30/2019 at 1:09 AM, colenobi said:

Okay, I fixed the issue, I had to add

@SideOnly(Side.CLIENT)

Over both Overrides here.

Expand  

That's not what you are supposed to do that will still crash the dedicated server.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
  On 9/30/2019 at 1:14 AM, Animefan8888 said:

That's not what you are supposed to do that will still crash the dedicated server.

Expand  

I just set up a new server on my laptop, put a few extra mods on there, played around in creative mode for a while, and no crashes. So, yeah. The issue is fixed

Posted
  On 9/30/2019 at 1:47 AM, colenobi said:

I just set up a new server on my laptop, put a few extra mods on there, played around in creative mode for a while, and no crashes. So, yeah. The issue is fixed

Expand  

I'm just gonna link this.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Betafort Recovery has emerged as a prominent figure in the realm of cryptocurrency recovery, gaining a reputation for their exceptional ability to retrieve lost Bitcoin (BTC) and other cryptocurrencies. Their expertise and track record have made them a beacon of hope for individuals facing the distressing situation of lost or inaccessible crypto assets.  
    • When you name a method like that, with no return value, it is a constructor. The constructor must have the same name as the class it constructs, in this case, ModItems. I would strongly advise reading up on some basic Java tutorials, because you will definitely be running into a lot more issues as you go along without the basics. *I should also add that the Forge documentation is a reference, not a tutorial. Even following tutorials, you should know Java basics, otherwise the smallest of mistakes will trip you up as you copy someone elses code.
    • so, I'm starting modding and I'm following the official documantation for forge: https://docs.minecraftforge.net, but in the registries part it is not working as it is in the docs:   public class ModItems { private static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, DarkStarvation.MOD_ID); public static final RegistryObject<Item> TEST_ITEM = ITEMS.register("test_item", () -> new Item(new Item.Properties())); public DarkStarvation(FMLJavaModLoadingContext context) { ITEMS.register(context.getModEventBus()); } } in 'public DarkStarvation(...' the DarkStarvation has this error: Invalid method declaration; return type required and the getModEventBus(): Cannot resolve method 'getModEventBus' in 'FMLJavaModLoadingContext' please help, I asked gpt but it is saying that I'm using an old method, but I'm following the latest version of Forge Docs???
    • I merged your second post with the original , there is no need to post a new thread asking for an answer. If someone sees your post and can help, they will reply. If you are seeking a quicker response, you could try asking in the Minecraft Forge diacord.
    • Create a new instance and start with cobblemon - if this works, add the rest of your mods in groups   Maybe another mod is conflicting - like Sodium/Iris or Radical Cobblemon Trainers
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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