Jump to content

Recommended Posts

Posted

my code is

 

 

package SomeCraft;

 

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.Item;

import net.minecraftforge.common.EnumHelper;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

 

 

@Mod(modid = SomeCraft.modid, name = "SomeCraft", version = "1.0")

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class SomeCraft {

 

public static final String modid = "mod_SomeCraft";

 

public static Item SomoniomIngot;

 

@EventHandler

public void load(FMLInitializationEvent event)

{

// Registrations

public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30);

 

public static Item SomoniomHelmet = new SomoniomArmour(2000, armourSomoniom, 0, 0).setUnlocalizedName("SomoniomHelmet");

public static Item SomoniomChestplate = new SomoniomArmour(2001, armourSomoniom, 0, 1).setUnlocalizedName("SomoniomChestplate");

public static Item SomoniomLeggings = new SomoniomArmour(2002, armourSomoniom, 0, 2).setUnlocaizedName("SomoniomLeggings");

public static Item SomoniomBoots = new SomoniomArmour(2003, armourSomoniom, 0, 3).setUnlocaizedName("SomoniomBoots");

 

SomoniomIngot = new SomoniomIngot (5000).setUnlocalizedName("SomoniomIngot");

 

LanguageRegistry.addName(SomoniomIngot, "SomoniomIngot");

 

 

 

 

 

i get my error here

public static EnumArmorMaterial armourSomoniom = EnumHelper.addArmorMaterial("SomoniomIngot", 66, new int[]{6, 9, 9, 6}, 30);

it says Illegal modifier for parameter armourSomoniom; only final is permitted

 

can someone please tell em what this means and tell me how to fix it thank you

 

 

 

 

 

                                            Sincerely,

                            ClarmonkGaming

Posted

So your first thread wasn't sufficient?  You're not asking anything new.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

my first thread got locked look I am very sorry I am very new with so please just bare through my developing stupidity you were there once right I am trying to learn taking courses getting hands on practice so please try to bare with me.

 

 

 

 

 

                                                Sincerely,

                                      ClarmonkGaming

Posted

You can't do this:

 

static.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

And this is why you need to go learn Java.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

anyway thank you for helping me draco i will just remove public static.

 

 

 

 

 

                              Sincerely

                            ClarmonkGaming 

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • thank you will do shortly   thanks g, any idea what could be causing the other issue?
    • Its working now and I'm not sure why. It still doesn't say it's using the launch args in the console but my memory utilization in the gui says otherwise so its all good for now. Thanks for the help and if i manage to narrow down what fixed it ill post it here in case someone has the same problem in the future.
    • It still launches without listening to the launch args. I have done a fresh install of windows, custom file paths and several versions of java. None of them change anything
    • I'm making a custom modpack to play with my brothers on a LAN world and have them download the exact same modpack. When I load into the world the first thing I notice is extreme block update and entity lag. Here's the curseforge modpack profile code: x-Ks0X75 Here's the link to the spark profile I ran for a bit: https://spark.lucko.me/8DGqRZRYel Could someone let me know which mod(s) are causing the issue? Seems like one or more datapacks are looping a function. I'd also really appreciate tips on the performance mods I'm using and if there are any conflicts/redundancies. Mod suggestions are also more than welcome for performance. How does LAN hosting compare to server hosting in a performance sense?
    • Make a test just with  java -Xmx6G @libraries/net/minecraftforge/forge/1.20.1-47.4.0/win_args.txt %* pause If there is no change, directly set the java path in your script 1.20.1 requires Java 17 Download and install this version: https://www.azul.com/downloads/?version=java-17-lts&os=windows&architecture=x86-64-bit&package=jdk#zulu Then update the script to: "C:\Program Files\Zulu\zulu-17\bin\javaw.exe" -Xmx6G @libraries/net/minecraftforge/forge/1.20.1-47.4.0/win_args.txt %* pause  
×
×
  • Create New...

Important Information

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