Jump to content

Recommended Posts

Posted

Forge version: 1.8-11.14.3.1491

Shaders Mod Version: 2.4.12mc1.8

Renderer: Intel HD Graphics P4600

 

[18:49:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[18:49:09] [main/INFO] [FML]: Forge Mod Loader version 8.99.182.1491 for Minecraft 1.8 loading

[18:49:09] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_25, running on Windows 8.1:amd64:6.3, installed at C:\Users\Lightspeed\Desktop\Shortcuts\runtime\jre-x64\1.8.0_25

[18:49:09] [main/INFO] [FML]: Loading tweaker shadersmod.launch.SMCTweaker from ShadersMod-v2.4.12mc1.8.jar

[18:49:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Loading tweak class name shadersmod.launch.SMCTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:49:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[18:49:11] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557

[18:49:11] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc

[18:49:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[18:49:11] [main/INFO] [LaunchWrapper]: Calling tweak class shadersmod.launch.SMCTweaker

[sMC INF]ShadersMod 2.4.12

[18:49:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[18:49:11] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[18:49:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[18:49:11] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[sMC FNE]transforming bsu net.minecraft.client.Minecraft

[sMC FNE]transforming cui net.minecraft.client.renderer.texture.ITextureObject

[18:49:12] [Client thread/INFO]: Setting user: Lightspeed360

[sMC FNE]transforming atr net.minecraft.block.Block

[sMC INF]  blockAoLight

[sMC FNE]transforming aju net.minecraft.item.ItemBlock

[18:49:14] [Client thread/INFO]: LWJGL Version: 2.9.1

[sMC FNE]transforming dax net.minecraft.client.renderer.OpenGlHelper

[sMC FNT]    set activeTexUnit

[sMC FNE]transforming ctp net.minecraft.client.renderer.texture.DynamicTexture

[sMC FNE]transforming cto net.minecraft.client.renderer.texture.AbstractTexture

[sMC FNE]transforming cua net.minecraft.client.renderer.texture.TextureMap

[sMC FNT]    loadRes

[sMC FNT]    loadRes

[sMC FNT]    allocateTextureMap

[sMC FNT]    setSprite setIconName

[sMC FNT]    uploadTexSubForLoadAtlas

[18:49:14] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: ---- Minecraft Crash Report ----

 

WARNING: coremods are present:

Contact their authors BEFORE contacting forge

 

// This doesn't make any sense!

 

Time: 7/21/15 6:49 PM

Description: Loading screen debug info

 

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_25, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 141201408 bytes (134 MB) / 255066112 bytes (243 MB) up to 3207856128 bytes (3059 MB)

JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx3G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

Loaded coremods (and transformers):

GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.14.4222' Renderer: 'Intel® HD Graphics P4600'

[18:49:14] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[18:49:14] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1491 Initialized

[18:49:14] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[18:49:14] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[18:49:14] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[18:49:14] [Client thread/INFO] [FML]: Searching C:\Users\Lightspeed\AppData\Roaming\.minecraft\mods for mods

[18:49:15] [Client thread/INFO] [FML]: Forge Mod Loader has identified 3 mods to load

[18:49:15] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at CLIENT

[18:49:15] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge] at SERVER

[18:49:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, Lyght Pack

[18:49:16] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[18:49:16] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[18:49:16] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[18:49:16] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[18:49:16] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[18:49:16] [Client thread/INFO] [FML]: Applying holder lookups

[18:49:16] [Client thread/INFO] [FML]: Holder lookups applied

[18:49:16] [Client thread/INFO] [FML]: Injecting itemstacks

[18:49:16] [Client thread/INFO] [FML]: Itemstack injection complete

[sMC FNE]transforming cug net.minecraft.client.renderer.texture.TextureManager

[18:49:17] [sound Library Loader/INFO]: Starting up SoundSystem...

[18:49:17] [Thread-9/INFO]: Initializing LWJGL OpenAL

[18:49:17] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[18:49:17] [Thread-9/INFO]: OpenAL initialized.

[sMC FNE]transforming ctv net.minecraft.client.renderer.texture.SimpleTexture

[sMC FNR]    loadSimpleTexture

[sMC INF]ShadersMod version : 2.4.12

OpenGL Version : 4.3.0 - Build 10.18.14.4222

Vendor :  Intel

Renderer : Intel® HD Graphics P4600

Capabilities  2.0  2.1  3.0  3.2  4.0

GL_MAX_DRAW_BUFFERS = 8

GL_MAX_COLOR_ATTACHMENTS_EXT = 8

GL_MAX_TEXTURE_IMAGE_UNITS = 32

[sMC INF]Load ShadersMod configuration.

[sMC INF]Did not load shaderpack.

[sMC FNE]transforming cue net.minecraft.client.renderer.texture.TextureAtlasSprite

[sMC FNE]transforming cum net.minecraft.client.renderer.texture.TextureClock

[sMC FNE]transforming cun net.minecraft.client.renderer.texture.TextureCompass

[sMC FNE]transforming cmp net.minecraft.client.renderer.block.model.FaceBakery

[sMC FNR]  patch method cmp.a(Lclx;Lcue;Lej;[FLcxf;Lclz;ZZ)[i

[sMC FNR]  patch method cmp.makeQuadVertexData(Lclx;Lcue;Lej;[FLnet/minecraftforge/client/model/ITransformation;Lclz;ZZ)[i

[sMC FNR]  patch method cmp.a([iIILjavax/vecmath/Vector3d;ILcue;Lcma;)V

[sMC FNR]  patch method cmp.a([i)Lej;

[sMC FNR]  patch method cmp.a([iLej;)V

[sMC FNR]  patch method cmp.a(I[iLej;Lcma;Lcue;)V

[18:49:18] [sound Library Loader/INFO]: Sound engine started

[sMC FNE]visiting net.minecraftforge.client.ForgeHooksClient net.minecraftforge.client.ForgeHooksClient

[18:49:19] [Client thread/INFO] [FML]: Max texture size: 8192

[18:49:19] [Client thread/INFO]: Created: 16x16 textures-atlas

[sMC INF]allocateTextureMap 4 16 16

[sMC FNE]transforming net.minecraftforge.client.model.Attributes net.minecraftforge.client.model.Attributes

[sMC FNR]  patching method net/minecraftforge/client/model/Attributes.<clinit>()V

[sMC FNE]transforming cus net.minecraft.client.renderer.vertex.VertexFormat

[sMC FNE]transforming cmn net.minecraft.client.renderer.block.model.BreakingFour

[sMC FNR]  patch method cmn.a(I)V

[sMC FNE]transforming cpt net.minecraft.client.renderer.entity.RenderManager

[sMC FNE]transforming cpu net.minecraft.client.renderer.entity.Render

[sMC FNR]    conditionally skip default shadow

[sMC FNE]transforming cqv net.minecraft.client.renderer.entity.RendererLivingEntity

[sMC SEVERE]state 0 expected 7

[sMC FNE]transforming cdy net.minecraft.client.model.ModelRenderer

[sMC FNE]transforming ccu net.minecraft.client.model.TexturedQuad

[sMC FNE]transforming csu net.minecraft.client.renderer.entity.layers.LayerSpiderEyes

[sMC FNE]transforming csl net.minecraft.client.renderer.entity.layers.LayerEndermanEyes

[sMC FNE]transforming csb net.minecraft.client.renderer.entity.layers.LayerArmorBase

[sMC FNR]  patch method csb.a(Lxm;Lccq;FFFFFFF)V

[sMC FNE]transforming csk net.minecraft.client.renderer.entity.layers.LayerEnderDragonEyes

[sMC FNE]transforming cqg net.minecraft.client.renderer.tileentity.RenderItemFrame

[sMC FNE]transforming cki net.minecraft.client.renderer.ItemRenderer

[sMC FNR]  patch method cki.a()V

[sMC FNE]transforming cji net.minecraft.client.renderer.EntityRenderer

[sMC FNR]  patch method cji.b(FI)V

[sMC FNR]  patch method cji.h()V

[sMC FNR]  patch method cji.i()V

[sMC FNR]  patch method cji.a(FJ)V

[sMC FNR]  patch method cji.a(IFJ)V

[sMC FNR]  patch method cji.a(Lckn;FI)V

[sMC FNR]  patch method cji.j(F)V

[sMC FNR]  patch method cji.a(IF)V

[sMC FNR]  patch method cji.a(FFFF)Ljava/nio/FloatBuffer;

[sMC FNE]transforming cll net.minecraft.client.renderer.BlockRendererDispatcher

[sMC FNE]transforming cln net.minecraft.client.renderer.BlockModelRenderer

[sMC FNR]  patch method cln.a(Latr;[iLej;[FLjava/util/BitSet;)V

[sMC FNE]transforming ckn net.minecraft.client.renderer.RenderGlobal

[sMC FNR]  patch method ckn.a(Lwv;Lcox;F)V

[sMC SEVERE]  ends in bad state State9

[sMC FNR]  patch method ckn.a(Lwv;DLcox;IZ)V

[sMC FNR]  patch method ckn.a(Laql;)V

[sMC FNR]  patch method ckn.a(FI)V

[sMC FNR]  patch method ckn.s()V

[sMC FNR]  patch method ckn.t()V

[sMC FNR]  patch method ckn.a(Lahd;Lbru;IF)V

[sMC FNE]transforming cky net.minecraft.client.renderer.VboRenderList

[sMC FNR]  patch method cky.a()V

[sMC FNE]transforming ciy net.minecraft.client.renderer.WorldVertexBufferUploader

[sMC FNE]transforming civ net.minecraft.client.renderer.WorldRenderer

[sMC FNE]transforming cop net.minecraft.client.renderer.chunk.RenderChunk

[sMC FNR]  patch method cop.b(FFFLcoa;)V

[18:49:19] [Client thread/INFO] [FML]: Injecting itemstacks

[18:49:19] [Client thread/INFO] [FML]: Itemstack injection complete

[18:49:19] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 3 mods

[18:49:19] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, Lyght Pack

[18:49:19] [Client thread/INFO]: SoundSystem shutting down...

[18:49:19] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[18:49:19] [sound Library Loader/INFO]: Starting up SoundSystem...

[18:49:20] [Thread-11/INFO]: Initializing LWJGL OpenAL

[18:49:20] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[18:49:20] [Thread-11/INFO]: OpenAL initialized.

[18:49:20] [sound Library Loader/INFO]: Sound engine started

[18:49:20] [Client thread/INFO] [FML]: Max texture size: 8192

[18:49:21] [Client thread/INFO]: Created: 512x512 textures-atlas

[sMC INF]allocateTextureMap 4 512 512

[sMC FNE]transforming bwv net.minecraft.client.gui.GuiOptions

[sMC FNT]    decrease language button size

[sMC FNT]    add shaders button

[sMC FNT]    shaders button action

[sMC INF]Save ShadersMod configuration.

[18:49:36] [server thread/INFO]: Starting integrated minecraft server version 1.8

[18:49:36] [server thread/INFO]: Generating keypair

[18:49:36] [server thread/ERROR] [fml.ModTracker]: This world was saved with mod itemphysic which appears to be missing, things may not work well

[18:49:36] [server thread/ERROR] [fml.ModTracker]: This world was saved with mod XaeroBetterPvP which appears to be missing, things may not work well

[18:49:36] [server thread/ERROR] [fml.ModTracker]: This world was saved with mod soundfilters which appears to be missing, things may not work well

[18:49:36] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[18:49:36] [server thread/INFO] [FML]: Applying holder lookups

[18:49:36] [server thread/INFO] [FML]: Holder lookups applied

[18:49:36] [server thread/INFO] [FML]: Loading dimension 0 (Redstone Testing) (net.minecraft.server.integrated.IntegratedServer@375816c9)

[18:49:36] [server thread/INFO] [FML]: Loading dimension 1 (Redstone Testing) (net.minecraft.server.integrated.IntegratedServer@375816c9)

[18:49:36] [server thread/INFO] [FML]: Loading dimension -1 (Redstone Testing) (net.minecraft.server.integrated.IntegratedServer@375816c9)

[18:49:36] [server thread/INFO]: Preparing start region for level 0

[18:49:36] [server thread/INFO]: Changing view distance to 16, from 10

[18:49:37] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2

[18:49:37] [Netty Server IO #1/INFO] [FML]: Client protocol version 2

[18:49:37] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 3 mods : [email protected],[email protected],[email protected]

[18:49:37] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[18:49:37] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[18:49:37] [server thread/INFO]: Lightspeed360[local:E:ac96847d] logged in with entity id 0 at (-700.8385175255991, 8.648457428709325, -351.84140822824793)

[18:49:37] [server thread/INFO]: Lightspeed360 joined the game

[18:49:37] [Client thread/INFO]: [CHAT] OpenGL 4.3.0 - Build 10.18.14.4222

Intel Intel® HD Graphics P4600

[sMC INF]Framebuffer created.

[sMC INF]Reset world renderers

[sMC INF].

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd13737df1, pid=3836, tid=4188

#

# JRE version: Java SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18)

# Java VM: Java HotSpot 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops)

# Problematic frame:

# C  [ig75icd64.dll+0x4d7df1]

#

# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

#

# An error report file with more information is saved as:

# C:\Users\Lightspeed\AppData\Roaming\.minecraft\hs_err_pid3836.log

#

# If you would like to submit a bug report, please visit:

http://bugreport.sun.com/bugreport/crash.jsp

# The crash happened outside the Java Virtual Machine in native code.

# See problematic frame for where to report the bug.

#

AL lib: (EE) alc_cleanup: 1 device not closed

 

[error occurred during error reporting , id 0xc0000005]

 

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

    • You probably used jd-gui to open it, didn't you? Nothing wrong with that, I also made that mistake, except that Notch was a smart guy and he obfuscated the code. That's why you only see files called "a", "b", "c" and then a file that combines them all. As I said, use RetroMCP to deobfuscate the code so that you will 100% understand it and be able to navigate it.
    • Decompiling minecraft indev, infdev, alpha, beta or whichever legacy version is really easy. I'm not a plug, I just also got interested in modding legacy versions (Infdev to be specific). Use https://github.com/MCPHackers/RetroMCP-Java Once you install their client and the Zulu Architecture that they say they recommend (or use your own Java). I encountered some problems, so I run it with: "java -jar RetroMCP-Java-CLI.jar". You should run it in a seperate folder (not in downloads), otherwise the files and folders will go all over the place. How to use RetroMCP: Type setup (every time you want change version), copy-paste the version number from their list (they support indev), write "decompile" and done! The code will now be deobfuscated and filenames will be normal, instead of "a", "b" and "c"! Hope I helped you, but I don't expect you to reply, as this discussion is 9 years old! What a piece of history!  
    • I know that this may be a basic question, but I am very new to modding. I am trying to have it so that I can create modified Vanilla loot tables that use a custom enchantment as a condition (i.e. enchantment present = item). However, I am having trouble trying to implement this; the LootItemRandomChanceWithEnchantedBonusCondition constructor needs a Holder<Enchantment> and I am unable to use the getOrThrow() method on the custom enchantment declared in my mod's enchantments class. Here is what I have so far in the GLM:   protected void start(HolderLookup.Provider registries) { HolderLookup.RegistryLookup<Enchantment> registrylookup = registries.lookupOrThrow(Registries.ENCHANTMENT); LootItemRandomChanceWithEnchantedBonusCondition lootItemRandomChanceWithEnchantedBonusCondition = new LootItemRandomChanceWithEnchantedBonusCondition(0.0f, LevelBasedValue.perLevel(0.07f), registrylookup.getOrThrow(*enchantment here*)); this.add("nebu_from_deepslate", new AddItemModifier(new LootItemCondition[]{ LootItemBlockStatePropertyCondition.hasBlockStateProperties(Blocks.DEEPSLATE).build(), LootItemRandomChanceCondition.randomChance(0.25f).build(), lootItemRandomChanceWithEnchantedBonusCondition }, OrichalcumItems.NEBU.get())); }   Inserting Enchantments.[vanilla enchantment here] actually works but trying to declare an enchantment from my custom enchantments class as [mod enchantment class].[custom enchantment] does not work even though they are both a ResourceKey and are registered in Registries.ENCHANTMENT. Basically, how would I go about making it so that a custom enchantment declared as a ResourceKey<Enchantment> of value ResourceKey.create(Registries.ENCHANTMENT, ResourceLocation.fromNamespaceAndPath([modid], [name])), declared in a seperate enchantments class, can be used in the LootItemRandomChanceWithEnchantedBonusCondition constructor as a Holder? I can't use getOrThrow() because there is no level or block entity/entity in the start() method and it is running as datagen. It's driving me nuts.
    • Hi here is an update. I was able to fix the code so my mod does not crash Minecraft. Please understand that I am new to modding but I honestly am having a hard time understanding how anyone can get this to work without having extensive programming and debugging experience as well as searching across the Internet, multiple gen AI bots (claude, grok, openai), and examining source code hidden in the gradle directory and in various github repositories. I guess I am wrong because clearly there are thousands of mods so maybe I am just a newbie. Ok, rant over, here is a step by step summary so others can save the 3 days it took me to figure this out.   1. First, I am using forge 54.1.0 and Minecraft 1.21.4 2. I am creating a mod to add a shotgun to Minecraft 3. After creating the mod and compiling it, I installed the .jar file to the proper directory in Minecraft and used 1.21.4-forge-54.1.0 4. The mod immediately crashed with the error: Caused by: java.lang.NullPointerException: Item id not set 5. Using the stack trace, I determined that the Exception was being thrown from the net.minecraft.world.item.Item.Properties class 6. It seems that there are no javadocs for this class, so I used IntelliJ which was able to provide a decompiled version of the class, which I then examined to see the source of the error. Side question: Are there javadocs? 7. This method, specifically, was the culprit: protected String effectiveDescriptionId() {      return this.descriptionId.get(Objects.requireNonNull(this.id, "Item id not set"));  } 8. Now my quest was to determine how to set this.id. Looking at the same source file, I determined there was another method:  public Item.Properties setId(ResourceKey<Item> pId) {             this.id = pId;             return this;   } 9. So now, I need to figure out how to call setId(). This required working backwards a bit. Starting from the constructor, I stubbed out the variable p which is of type Item.Properties public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); Rather than putting this all on one line, I split it up for readability like this: private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); Here is was the missing function, setId(), which takes a type of ResourceKey<Item>. My next problem is that due to the apparent lack of documentation (I tried searching the docs on this site) I could not determine the full import path to ResourceKey. I did some random searching on the Internet and stumbled across a Github repository which gave two clues: import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; Then I created the rk variable like this: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); And now putting it all together in order: private static ResourceKey<Item> rk = ResourceKey.create(Registries.ITEM, ResourceLocation.parse("modid:shotgunmod")); private static final Item.Properties p = new Item.Properties().useItemDescriptionPrefix().setId(rk); public static final RegistryObject<Item> SHOTGUN = ITEMS.register("shotgun", () -> new ShotgunItem(p)); This compiled and the mod no longer crashes. I still have more to do on it, but hopefully this will save someone hours. I welcome any feedback and if I missed some obvious modding resource or tutorial that has this information. If not, I might suggest we add it somewhere for people trying to write a mod that doesn't crash. Thank you !!!  
  • Topics

×
×
  • Create New...

Important Information

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