Jump to content

Recommended Posts

Posted

If you can help me with this it would be greatly appreciated. I dont know how to fix this lauch error. I launch with forge 1.8.9 btw.

 

---- Minecraft Crash Report ----

WARNING: coremods are present:
  FMLLoadingPlugin (ModCore_Container-1.0.jar)
  CTJSLoadingPlugin (ctjs-1.2.2-1.8.9.jar)
  FMLLoadingPlugin (OofMod-2.0.2 (1.8.9).jar)
  Perspective Mod ([1.8.9] Perspective Mod-3.0.jar)
  FMLLoadingPlugin (Scrollable Tooltips-1.2 (1.8.9).jar)
  FMLLoadingPlugin (AutoGG-3.4 (1.8.9).jar)
  OptifinePatcherTweaker (Patcher-1.3_-_beta_8.1.jar)
  PatcherTweaker (Patcher-1.3_-_beta_8.1.jar)
  PopupEventsTweaker (Popup Events-1.3.1 (1.8.9).jar)
  SkyblockAddonsLoadingPlugin (SkyblockAddons-1.5.2-for-MC-1.8.9.jar)
  Main (OldAnimationsMod v2.4.2 FORGE MC1.8.9.jar)
  PlayerAPIPlugin (PlayerAPI-1.8.9-1.0.jar)
  FMLLoadingPlugin (Skypixel-0.0.6.jar)
Contact their authors BEFORE contacting forge

// Don't be sad, have a hug! ❤️

Time: 8/6/20 10:52 PM
Description: Initializing game

java.lang.NullPointerException: Initializing game
    at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:36)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:512)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:417)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:329)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


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

-- Head --
Stacktrace:
    at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:36)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:512)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:417)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:329)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    ct.js modules: [Module{name=Colorizer,folder=.\config\ChatTriggers\modules\Colorizer,metadata=ModuleMetadata(name=Colorizer, version=1.0.0, entry=index.js, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Makes chat colors/formatting easier, requires=null, ignored=null, isRequired=false)}, Module{name=DeepEquals,folder=.\config\ChatTriggers\modules\DeepEquals,metadata=ModuleMetadata(name=DeepEquals, version=1.0.0, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Compare two different objects for deep equality, requires=null, ignored=null, isRequired=false)}, Module{name=DeepProxy,folder=.\config\ChatTriggers\modules\DeepProxy,metadata=ModuleMetadata(name=DeepProxy, version=2.0.0, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=Ecolsson, description=null, requires=null, ignored=null, isRequired=false)}, Module{name=easyec,folder=.\config\ChatTriggers\modules\easyec,metadata=ModuleMetadata(name=null, version=1.0.0, entry=main.js, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Type /ec to open your enderchest, requires=null, ignored=null, isRequired=false)}, Module{name=Elementa,folder=.\config\ChatTriggers\modules\Elementa,metadata=ModuleMetadata(name=Elementa, version=1.4.3, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Gui Library, requires=null, ignored=null, isRequired=false)}, Module{name=PersistentData,folder=.\config\ChatTriggers\modules\PersistentData,metadata=ModuleMetadata(name=PersistentData, version=1.1.3, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Easily store data that persist between game and ct reloads, requires=[DeepProxy], ignored=null, isRequired=false)}, Module{name=PersistentVariables,folder=.\config\ChatTriggers\modules\PersistentVariables,metadata=ModuleMetadata(name=PersistantVariables, version=null, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Easily create variables that persist between ct reloads, requires=[DeepEquals], ignored=null, isRequired=false)}, Module{name=Promise,folder=.\config\ChatTriggers\modules\Promise,metadata=ModuleMetadata(name=Promise, version=1.0.0, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Promise polyfill for 1.0.0, requires=null, ignored=null, isRequired=false)}, Module{name=request,folder=.\config\ChatTriggers\modules\request,metadata=ModuleMetadata(name=request, version=2.0.0, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=Ecolsson, description=A nicer alternative to XMLHttpRequest with a promise-like API. See the README.md for a full api description, requires=[Promise], ignored=null, isRequired=false)}, Module{name=RingSelector,folder=.\config\ChatTriggers\modules\RingSelector,metadata=ModuleMetadata(name=RingSelector, version=1.2.0, entry=example.js, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=A configurable ring selector menu, requires=null, ignored=null, isRequired=false)}, Module{name=sbdb,folder=.\config\ChatTriggers\modules\sbdb,metadata=ModuleMetadata(name=sbdb, version=null, entry=index.js, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Automatic gathering of info for SkyBlock Database, requires=[request], ignored=null, isRequired=false)}, Module{name=SBInvSee,folder=.\config\ChatTriggers\modules\SBInvSee,metadata=ModuleMetadata(name=SBInvSee, version=1.0, entry=index.js, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=See the inventory contents of a hypixel skyblock player, requires=[request, PersistentData], ignored=null, isRequired=false)}, Module{name=SettingsManager,folder=.\config\ChatTriggers\modules\SettingsManager,metadata=ModuleMetadata(name=SettingsManager, version=1.2.1, entry=null, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Autogenerates a settings file and gui based on the object created and registers. Example usage can be found in UseExample.js, requires=null, ignored=null, isRequired=false)}, Module{name=SkyblockCommands,folder=.\config\ChatTriggers\modules\SkyblockCommands,metadata=ModuleMetadata(name=null, version=0.0.2, entry=main.js, asmEntry=null, asmExposedFunctions=null, tags=null, pictureLink=null, creator=null, description=Adds keybinds for most skyblock commands in the vannilla controls menu. Warps are in a separate module., requires=null, ignored=null, isRequired=false)}]
    Minecraft Version: 1.8.9
    Operating System: Windows 8 (amd64) version 6.2
    CPU: 12x AMD Ryzen 5 2600 Six-Core Processor 
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 392388336 bytes (374 MB) / 671088640 bytes (640 MB) up to 2147483648 bytes (2048 MB)
    JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.19 Powered by Forge 11.15.1.2318 Optifine OptiFine_1.8.9_HD_U_I7 38 mods loaded, 38 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UC    mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    UC    FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.2318-1.8.9.jar) 
    UC    Forge{11.15.1.2318} [Minecraft Forge] (forge-1.8.9-11.15.1.2318-1.8.9.jar) 
    UC    perspectivemod{3.0} [Perspective Mod 3.0] (minecraft.jar) 
    UC    oldanimations{2.4.2} [OldAnimationsMod] (minecraft.jar) 
    UC    PlayerAPI{1.0} [Player API] (minecraft.jar) 
    UC    pownspotionhud{1.0} [pownspotionhud] (1.8.9_Powns_PotionEffect_HUD_-_1.0.jar) 
    UC    autotip{3.0.1} [Autotip] (Autotip-3.0.1 [1.8-1.12.2].jar) 
    UC    blockoverlay{2.1} [BlockOverlay] ([1.8.9] BlockOverlay-v2.1.jar) 
    UC    pownscoordshud{1.0} [Powns' Coords HUD] ([1.8.9] Powns Coords HUD - 1.0.jar) 
    UC    Powns ArmorStatus HUD{1.0} [powns-armorhud] ([1.8.9] Powns ArmorStatus HUD - 1.1.jar) 
    UC    sidebarmod{2.0} [Sidebar Mod Revamp] ([1.8.9] Sidebar Mod Revamp.jar) 
    UC    canelexkeystrokes{1.0} [Canelex Keystrokes] ([1.8.9] canelex keystrokes.jar) 
    UC    autogg{3.4} [AutoGG] (AutoGG-3.4 (1.8.9).jar) 
    UC    apec{1.5} [Apec] (Apec-1.5 (1).jar) 
    UC    AutoWho{1.0} [AutoWho] (AutoWho-1.0.jar) 
    UC    customcrosshairmod{0.5.1-Forge} [Custom Crosshair Mod] (crosshairmod-v0.5.1-forge-mc1.8.9.jar) 
    UC    pownstogglesneak{3.0} [pownstogglesneak] ([1.8.9] Powns ToggleSneak - 3.0.jar) 
    UC    IngameAccountSwitcher{7.0.1} [In-Game Account Switcher] (InGameAccountSwitcher-Forge-1.8.9-7.0.1.jar) 
    UE    modcore_example_mod{1.0} [ModCore Container Mod] (ModCore_Container-1.0.jar) 
    UC    refractionoof{2.0.2} [OofMod] (OofMod-2.0.2 (1.8.9).jar) 
    UC    nick_hider{5.3.1} [Nick Hider] (Nick Hider-5.3.1 (1.8.9).jar) 
    UC    popup_events{1.3.1} [Popup Events] (Popup Events-1.3.1 (1.8.9).jar) 
    UC    quickplay{2.0.3} [Quickplay] (Quickplay-1.8.9-2.0.3.jar) 
    UC    resourcepackmanager{1.0} [Resource Pack Manager] (Resource_Pack_Manager_1.1.jar) 
    UC    text_overflow_scroll{1.2} [Scrollable Tooltips] (Scrollable Tooltips-1.2 (1.8.9).jar) 
    UC    DiscordRP{1.2.4} [DiscordRP] (DiscordRP-1.2.4.jar) 
    UC    hypixel_auto_complete{1.0} [Hypixel Autocomplete Mod] (Sk1er Hypixel Autocomplete Mod-1.0.jar) 
    UC    examplemod{1.0} [Example Mod] (SkyblockPlus v1.0.jar) 
    UC    skypixel{0.0.6} [Skypixel] (Skypixel-0.0.6.jar) 
    UC    skywarsmod{1.0} [SkyWars Stats Mod] (SkyWars Stats Mod-v1.0.3.jar) 
    UC    timechanger{1.0} [TimeChanger] (TimeChanger-1.0 (1.8.9).jar) 
    UC    publictogglechat{2.1.0} [Hypixel - ToggleChat] (ToggleChat-2.1.0-SNAPSHOT.jar) 
    UC    skyblockaddons{1.5.2} [SkyBlock Addons] (SkyblockAddons-1.5.2-for-MC-1.8.9.jar) 
    UC    patcher{1.3} [Patcher] (Patcher-1.3_-_beta_8.1.jar) 
    UC    notenoughupdates{1.1-REL} [NotEnoughUpdates] (NotEnoughUpdates-1.1-REL.jar) 
    UC    ct.js{1.2.2} [ChatTriggers] (ctjs-1.2.2-1.8.9.jar) 
    UC    modcore{0.1.40} [ModCore] (Sk1er Modcore-0.1.40 (1.8.9).jar) 
    Loaded coremods (and transformers): 
FMLLoadingPlugin (ModCore_Container-1.0.jar)
  
CTJSLoadingPlugin (ctjs-1.2.2-1.8.9.jar)
  com.chattriggers.ctjs.launch.plugin.CTJSTransformer
FMLLoadingPlugin (OofMod-2.0.2 (1.8.9).jar)
  
Perspective Mod ([1.8.9] Perspective Mod-3.0.jar)
  net.canelex.perspectivemod.asm.CameraTransformer
FMLLoadingPlugin (Scrollable Tooltips-1.2 (1.8.9).jar)
  club.sk1er.mods.overflowscroll.forge.ClassTransformer
FMLLoadingPlugin (AutoGG-3.4 (1.8.9).jar)
  club.sk1er.mods.core.forge.ClassTransformer
OptifinePatcherTweaker (Patcher-1.3_-_beta_8.1.jar)
  club.sk1er.patcher.tweaker.optifine.OptifineClassTransformer
PatcherTweaker (Patcher-1.3_-_beta_8.1.jar)
  club.sk1er.mods.core.forge.ClassTransformer
  club.sk1er.patcher.tweaker.ClassTransformer
PopupEventsTweaker (Popup Events-1.3.1 (1.8.9).jar)
  
SkyblockAddonsLoadingPlugin (SkyblockAddons-1.5.2-for-MC-1.8.9.jar)
  codes.biscuit.skyblockaddons.tweaker.SkyblockAddonsTransformer
Main (OldAnimationsMod v2.4.2 FORGE MC1.8.9.jar)
  com.spiderfrog.main.ClassTransformer
PlayerAPIPlugin (PlayerAPI-1.8.9-1.0.jar)
  api.player.forge.PlayerAPITransformer
FMLLoadingPlugin (Skypixel-0.0.6.jar)
  io.prplz.skypixel.asm.ClassTransformer
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 441.66' Renderer: 'GeForce GTX 1660 SUPER/PCIe/SSE2'
    Launched Version: 1.8.9-forge1.8.9-11.15.1.2318-1.8.9
    LWJGL: 2.9.4
    OpenGL: GeForce GTX 1660 SUPER/PCIe/SSE2 GL version 4.6.0 NVIDIA 441.66, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: !          §b§lAgro Skyblock §f[16x] (1).zip, BigHead_gold v2.zip
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    CPU: 12x AMD Ryzen 5 2600 Six-Core Processor 

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • logs too big for one pastebin https://pastebin.com/ZjUGHu3u  https://pastebin.com/RqCUZf3X  https://pastebin.com/6ZPS99nD
    • 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.
  • Topics

×
×
  • Create New...

Important Information

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