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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • So, I have a minecraft world hosted with essential on forge 1.20.1, there's 149 mods, and the forge version is 47.3.0, and it's been like that for a good 2-3 weeks, and all of a sudden, it stopped loading, and I have 0 clue as to why, and this world means A LOT to me, so if anyone out there is able to help, I would GLADLY appreciate it. here's the link if ya wanna help:   [04Dec2024 22:42:24.552] [Worker-ResourceReload-3/ERROR][net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener/]: Couldn't parse data file slabsexpanded:snow_blockblocktoslab from slabsexpanded:recipes/snow_blockblocktoslab.json com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Expected name at line 16 column 4 path $.result.item at net.minecraft.util.GsonHelper.m_13780_(GsonHelper.java:526) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.util.GsonHelper.m_263475_(GsonHelper.java:531) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.util.GsonHelper.m_13776_(GsonHelper.java:581) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_278771_(SimpleJsonResourceReloadListener.java:41) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_5944_(SimpleJsonResourceReloadListener.java:29) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener.m_5944_(SimpleJsonResourceReloadListener.java:17) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at net.minecraft.server.packs.resources.SimplePreparableReloadListener.m_10786_(SimplePreparableReloadListener.java:11) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 16 column 4 path $.result.item at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1657) ~[gson-2.10.jar%23107!/:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:514) ~[gson-2.10.jar%23107!/:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:422) ~[gson-2.10.jar%23107!/:?] at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:779) ~[gson-2.10.jar%23107!/:?] at com.google.gson.internal.bind.TypeAdapters$28.read(TypeAdapters.java:725) ~[gson-2.10.jar%23107!/:?] at com.google.gson.internal.bind.TypeAdapters$34$1.read(TypeAdapters.java:1007) ~[gson-2.10.jar%23107!/:?] at net.minecraft.util.GsonHelper.m_13780_(GsonHelper.java:524) ~[client-1.20.1-20230612.114412-srg.jar%23490!/:?]
    • Hello! I have been having a problem with Forgematica, Embeddium, Oculus, and create. I wanted to download litematica so I could see which blocks are in my creative mode build, so that I could collect them all in survival. However, litematica is a fabric mod. I found a port called forgematica, which I added (along with it's dependency) to my mods folder. I loaded into a new world, and built a structure. Then, I added a part from the create mod, and the game crashed instantly, with exit code -1. Thanks for any help! Crash Report and mods list: https://pastebin.com/rtzh6LAi
    • Have you found a modder for this vehicle project? Because it will be really hard and I want to know that hero who can create all this
  • Topics

×
×
  • Create New...

Important Information

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