Jump to content

Recommended Posts

Posted

   

package com.avanyt.roleplaycraftmod.proxy;

import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;

public class ClientProxy extends CommonProxy{
    
    @Override
    public void registerItemRender(Item item, int meta, String id) {
    {    
    
    ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); // When ; is there the parentheses are red and the commas to   \\
    }
}

Posted (edited)
7 minutes ago, Avanyt said:

   

package com.avanyt.roleplaycraftmod.proxy;

import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;

public class ClientProxy extends CommonProxy{
    
    @Override
    public void registerItemRender(Item item, int meta, String id) {
    {    
    
    ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); // When ; is there the parentheses are red and the commas to   \\
    }
}

I know this is gonna sound stereotypical, but you gotta learn Java first. If you don't know basic Java and how to read errors, your not gonna get anywhere.

Edited by Big_Bad_E
Posted
2 minutes ago, Avanyt said:

is it the @Override code that has the extra {

Ummm no, this should remove your error

 @Override
    public void registerItemRender(Item item, int meta, String id) {
    ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id));
    } 

 

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
1 minute ago, Big_Bad_E said:

I know this is gonna sound stereotypical, but you gotta learn Java first. If you don't know basic Java and how to read errors, your not gonna get anywhere.

First of all you can make mods. but i use tutorials & there mod do work and i create items, blocks and eveything i want to be there. and i could just take my code and run it through a java error website

Posted
1 minute ago, Avanyt said:

First of all you can make mods. but i use tutorials & there mod do work and i create items, blocks and eveything i want to be there. and i could just take my code and run it through a java error website

Well, you've shown you can't infact make blocks without knowing how to code in Java. Making a thread every hour is not a good thing, you need to learn how to read errors, basic Java, how to research into problems. Hell, you can't even understand the straightforward error your JDK was probably yelling at you. I think there's a point where you can use it even if you are inexperienced, and I think you could use other APIs or use Spigot if you like MInecraft coding, but Forge is not good at all for newcomers. I tried when I first started Java, didn't understand it at all, went and learned Java, now I don't need to follow step by step tutorials. I'd suggest you do the same.

  • Like 1
Posted
13 hours ago, Big_Bad_E said:

Well, you've shown you can't infact make blocks without knowing how to code in Java. Making a thread every hour is not a good thing, you need to learn how to read errors, basic Java, how to research into problems. Hell, you can't even understand the straightforward error your JDK was probably yelling at you. I think there's a point where you can use it even if you are inexperienced, and I think you could use other APIs or use Spigot if you like MInecraft coding, but Forge is not good at all for newcomers. I tried when I first started Java, didn't understand it at all, went and learned Java, now I don't need to follow step by step tutorials. I'd suggest you do the same.

Learn another OOP(Object Oriented Programming) Language first, I suggest you learn python - it was made to help non-programmers interact with their computer at a deeper level and is an amazingly powerful language - then move on to JavaScript - it is very accepting of bad code & it doesn’t have any concept of variable types - and then move on to Java. Java is a language for people who already have large amounts of experience in OOP, it was invented to address the shortfalls of another language C (and C++ and C#) and it was expected that people using java would most likely have come from a background of writing code in C. C is a very low level and non-beginner friendly language and java is extremely similar. Minecraft and Forge also have their own constraints that they put on modders, sometimes it’s like having to learn a whole other language ?. Start small and before you know it you’ll be writing your own mod.

 

if you’ve decided to go straight for java & modding, at least watch some videos or read some articles about Java. Not writing code in java just about the language. Then have a look at some Java 101 tutorials to understand the basic concepts and you’ll be ready attack modding with your shaky understanding.

 

TL;DR

Do your homework - read up on Java and Object Oriented Programming

  • Like 1

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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.