Jump to content

Recommended Posts

Posted

here is the crash report:

 

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 28.03.21 15:08
Description: Rendering overlay

net.minecraftforge.fml.ModLoadingException: MrCrayfish's Gun Mod (cgm) encountered an error during the common_setup event phase
§7java.lang.NoClassDefFoundError: net/minecraftforge/client/event/ModelRegistryEvent
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:124) ~[?:36.1] {re:classloading}
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$34(ModLoader.java:326) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader$$Lambda$13498/67324982.accept(Unknown Source) ~[?:?] {}
    at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:229) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:326) ~[?:?] {re:classloading}
    at net.minecraftforge.client.model.ModelLoaderRegistry.onModelLoadingStart(ModelLoaderRegistry.java:88) ~[?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.optifine.reflect.Reflector.callVoid(Reflector.java:729) ~[?:?] {re:classloading}
    at net.optifine.reflect.ReflectorMethod.callVoid(ReflectorMethod.java:217) ~[?:?] {re:classloading}
    at net.minecraft.client.renderer.model.ModelBakery.processLoading(ModelBakery.java:181) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,xf:OptiFine:default,pl:mixin:A}
    at net.minecraftforge.client.model.ModelLoader.<init>(ModelLoader.java:72) ~[?:?] {re:classloading}
    at net.minecraft.client.renderer.model.ModelManager.func_212854_a_(ModelManager.java:57) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.renderer.model.ModelManager.func_212854_a_(ModelManager.java:20) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.resources.ReloadListener.func_215270_b(SourceFile:11) ~[?:?] {re:classloading}
    at net.minecraft.client.resources.ReloadListener$$Lambda$14051/607247254.get(Unknown Source) ~[?:?] {}
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1582) ~[?:1.8.0_51] {}
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1574) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {re:computing_frames}
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {}
Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/client/event/ModelRegistryEvent
    at net.minecraftforge.eventbus.ASMEventHandler_126_SpecialModels_register_ModelRegistryEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.eventbus.EventBus$$Lambda$2596/476936435.invoke(Unknown Source) ~[?:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[?:36.1] {re:classloading}
    ... 24 more
Caused by: java.lang.ClassNotFoundException: net.minecraftforge.client.event.ModelRegistryEvent
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_51] {}
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_51] {}
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_51] {}
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_51] {}
    at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_51] {}
    at net.minecraftforge.eventbus.ASMEventHandler$ASMClassLoader.loadClass(ASMEventHandler.java:181) ~[eventbus-4.0.0.jar:?] {}
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}
    at net.minecraftforge.eventbus.ASMEventHandler_126_SpecialModels_register_ModelRegistryEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.eventbus.EventBus$$Lambda$2596/476936435.invoke(Unknown Source) ~[?:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?] {}
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[?:36.1] {re:classloading}
    ... 24 more


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

-- Head --
Thread: Render thread
Stacktrace:
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:124) ~[?:36.1] {re:classloading}
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$34(ModLoader.java:326) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader$$Lambda$13498/67324982.accept(Unknown Source) ~[?:?] {}
    at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:229) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:326) ~[?:?] {re:classloading}
    at net.minecraftforge.client.model.ModelLoaderRegistry.onModelLoadingStart(ModelLoaderRegistry.java:88) ~[?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
-- Overlay render details --
Details:
    Overlay name: net.minecraft.client.gui.ResourceLoadProgressGui
Stacktrace:
    at net.minecraft.client.renderer.GameRenderer.func_195458_a(GameRenderer.java:807) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,xf:OptiFine:default,pl:mixin:APP:cgm.mixins.json:client.GameRendererMixin,pl:mixin:A}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:976) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.1.0.jar:36.1] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$488/1058921154.call(Unknown Source) [forge-1.16.5-36.1.0.jar:36.1] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}


-- System Details --
Details:
    Minecraft Version: 1.16.5
    Minecraft Version ID: 1.16.5
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 6255191472 bytes (5965 MB) / 8086618112 bytes (7712 MB) up to 8589934592 bytes (8192 MB)
    CPUs: 12
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 8.0.9+86+master.3cf110c
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.2.jar mixin PLUGINSERVICE 
        /eventbus-4.0.0.jar eventbus PLUGINSERVICE 
        /forge-1.16.5-36.1.0.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.16.5-36.1.0.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 
        /forge-1.16.5-36.1.0.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.16.5-36.1.0.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE 
        /OptiFine_1.16.5_HD_U_G7.jar OptiFine TRANSFORMATIONSERVICE 
        /forge-1.16.5-36.1.0.jar fml TRANSFORMATIONSERVICE 
    FML: 36.1
    Forge: net.minecraftforge:36.1.0
    FML Language Providers: 
        [email protected]
        minecraft@1
    Mod List: 
        forge-1.16.5-36.1.0-client.jar                    |Minecraft                     |minecraft                     |1.16.5              |SIDED_SETU|NOSIGNATURE
        industrial-foregoing-1.16.5-3.2.10.2-d316328.jar  |Industrial Foregoing          |industrialforegoing           |3.2.10.2            |SIDED_SETU|NOSIGNATURE
        Kiwi-1.16.5-3.4.2.jar                             |Kiwi                          |kiwi                          |3.4.2               |SIDED_SETU|NOSIGNATURE
        repurposed_structures-1.16.5-2.5.1.jar            |Repurposed Structures         |repurposed_structures         |1.16.5-2.5.1        |SIDED_SETU|NOSIGNATURE
        mowziesmobs-1.5.14.jar                            |Mowzie's Mobs                 |mowziesmobs                   |1.5.14              |SIDED_SETU|NOSIGNATURE
        DungeonsMod-1.16.3-1.3.0.jar                      |Dungeons Mod                  |dungeonsmod                   |1.16.3-1.3.0        |SIDED_SETU|NOSIGNATURE
        titanium-1.16.5-3.2.8.jar                         |Titanium                      |titanium                      |3.2.8               |SIDED_SETU|NOSIGNATURE
        cgm-1.0.1-1.16.3.jar                              |MrCrayfish's Gun Mod          |cgm                           |1.0.1               |SIDED_SETU|NOSIGNATURE
        BiomesOPlenty-1.16.4-13.0.0.432-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.4-13.0.0.432   |SIDED_SETU|NOSIGNATURE
        EndRemastered-R36.jar                             |End Remastered 3.6            |endrem                        |1.16.3              |SIDED_SETU|NOSIGNATURE
        thatched-1.16.4-0.4.jar                           |Thatched                      |thatched                      |version             |SIDED_SETU|NOSIGNATURE
        dungeons_plus-1.16.4-1.1.3.jar                    |Dungeons Plus                 |dungeons_plus                 |1.1.3               |SIDED_SETU|NOSIGNATURE
        AoA3-3.5-Beta-1-1.16.5.jar                        |Advent of Ascension           |aoa3                          |3.5-Beta-1          |SIDED_SETU|NOSIGNATURE
        towers_of_the_wild-1.16.4-2.0.1.jar               |Towers Of The Wild            |towers_of_the_wild            |1.16.4-2.0.1        |SIDED_SETU|NOSIGNATURE
        Simple-Farming-Mod-1.16.4.jar                     |Simple Farming                |simplefarming                 |1.16.4-1.3.5        |SIDED_SETU|NOSIGNATURE
        the-conjurer-1.16.4-1.0.13.jar                    |The Conjurer                  |conjurer_illager              |1.0.13              |SIDED_SETU|NOSIGNATURE
        Mekanism-1.16.5-10.0.21.448.jar                   |Mekanism                      |mekanism                      |10.0.21             |COMMON_SET|NOSIGNATURE
        curios-forge-1.16.5-4.0.5.0.jar                   |Curios API                    |curios                        |1.16.5-4.0.5.0      |SIDED_SETU|NOSIGNATURE
        Patchouli-1.16.4-50.jar                           |Patchouli                     |patchouli                     |1.16.4-50           |SIDED_SETU|NOSIGNATURE
        create-mc1.16.3_v0.3e.jar                         |Create                        |create                        |mc1.16.3_v0.3e      |COMMON_SET|NOSIGNATURE
        BetterCaves-Forge-1.16.4-1.1.1.jar                |YUNG's Better Caves           |bettercaves                   |1.16.4-1.1.1        |SIDED_SETU|NOSIGNATURE
        appliedenergistics2-8.2.0.jar                     |Applied Energistics 2         |appliedenergistics2           |8.2.0               |COMMON_SET|95:58:cc:83:9d:a8:fa:4f:e9:f3:54:90:66:61:c8:ae:9c:08:88:11:52:52:df:2d:28:5f:05:d8:28:57:0f:98
        [1.16.5]+SecurityCraft+v1.8.21.1.jar              |SecurityCraft                 |securitycraft                 |v1.8.21.1           |COMMON_SET|NOSIGNATURE
        TravelersBackpack-1.16.5-5.4.0.jar                |Traveler's Backpack           |travelersbackpack             |5.4.0               |COMMON_SET|NOSIGNATURE
        FluxNetworks-1.16.5-6.1.6.11.jar                  |Flux Networks                 |fluxnetworks                  |1.16.5-6.1.6.11     |COMMON_SET|NOSIGNATURE
        Artifacts-1.16.5-2.8.3.jar                        |Artifacts                     |artifacts                     |1.16.5-2.8.3        |COMMON_SET|NOSIGNATURE
        YungsApi-1.16.4-Forge-4.jar                       |YUNG's API                    |yungsapi                      |1.16.4-Forge-4      |COMMON_SET|NOSIGNATURE
        obfuscate-0.6.0-1.16.3.jar                        |Obfuscate                     |obfuscate                     |0.6.0               |COMMON_SET|e1:59:1a:56:ec:97:b3:d0:b3:4b:25:06:1f:83:b0:f4:fd:0c:24:e3:6d:ea:94:b1:9f:22:b0:38:13:60:88:ea
        vehicle-mod-0.45.2-1.16.3.jar                     |MrCrayfish's Vehicle Mod      |vehicle                       |0.45.2              |COMMON_SET|NOSIGNATURE
        betteranimalsplus-1.16.4-10.1.0.jar               |Better Animals Plus           |betteranimalsplus             |10.1.0              |COMMON_SET|NOSIGNATURE
        furniture-7.0.0-pre19-1.16.3.jar                  |MrCrayfish's Furniture Mod    |cfm                           |7.0.0-pre19         |COMMON_SET|NOSIGNATURE
        MekanismGenerators-1.16.5-10.0.21.448.jar         |Mekanism: Generators          |mekanismgenerators            |10.0.21             |COMMON_SET|NOSIGNATURE
        byg-1.1.14.jar                                    |Oh The Biomes You'll Go       |byg                           |1.1.14              |COMMON_SET|NOSIGNATURE
        forge-1.16.5-36.1.0-universal.jar                 |Forge                         |forge                         |36.1.0              |COMMON_SET|22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
        cofh_core-1.16.4-1.2.1.jar                        |CoFH Core                     |cofh_core                     |1.2.1               |COMMON_SET|NOSIGNATURE
        thermal_foundation-1.16.4-1.2.0.jar               |Thermal Series                |thermal                       |1.2.0               |COMMON_SET|NOSIGNATURE
        thermal_expansion-1.16.4-1.2.0.jar                |Thermal Expansion             |thermal_expansion             |1.2.0               |COMMON_SET|NOSIGNATURE
        exoticbirds-1.16.4-1.1.0.jar                      |Exotic Birds                  |exoticbirds                   |1.1.0               |COMMON_SET|NOSIGNATURE
        SubWild-1.16.5-1.2.0.jar                          |Subterranean Wilderness       |subwild                       |1.2.0               |COMMON_SET|NOSIGNATURE
        refinedstorage-1.9.12.jar                         |Refined Storage               |refinedstorage                |1.9.12              |COMMON_SET|NOSIGNATURE
        structure_gel-1.16.4-1.7.5.jar                    |Structure Gel API             |structure_gel                 |1.7.5               |COMMON_SET|NOSIGNATURE
        dungeonsarise1.16.5-1.2.68a-HF.jar                |Dungeons Arise                |dungeons_arise                |1.2.68a             |COMMON_SET|NOSIGNATURE
    Crash Report UUID: dd54f367-f4fc-4620-8bf7-df6a1a26f650
    Kiwi Modules: 
        kiwi:contributors
        kiwi:data
    Launched Version: 1.16.5-forge-36.1.0
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: Radeon RX 580 Series GL version 4.6.14760 Compatibility Profile Context 21.2.3 27.20.14535.3005, ATI Technologies Inc.
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Resource Packs: 
    Current Language: English (US)
    CPU: 12x AMD Ryzen 5 3600 6-Core Processor 
    OptiFine Version: OptiFine_1.16.5_HD_U_G7
    OptiFine Build: 20210305-003221
    Render Distance Chunks: 8
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.6.14760 Compatibility Profile Context 21.2.3 27.20.14535.3005
    OpenGlRenderer: Radeon RX 580 Series
    OpenGlVendor: ATI Technologies Inc.
    CpuCount: 12

 

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

    • I haven't tested it but under https://minecraft.wiki/w/Items_model_definition it says now:   So I guess the resource location must have changed with 1.24.4, which means you need to move your models/item/ to the new source. But as I said I haven't tested this so it also may be that this wont work. Nevertheless give it a try      EDIT (important) So now I tested it and found out how it works   Let the model files (e.g. the .json from blockbench) within "assets/<your_mod_id>/models/item" In addition to that do the following: Every model you added will need a new file under "assets/<your_mod_id>/items" That file is also a JSON and looks like this: { "model": { "type": "minecraft:model", "model": "your_mod_id:item/custom_item" } } - "type" can be minecraft:model, minecraft:composite, minecraft:condition, minecraft:select, minecraft:range_dispatch, minecraft:empty, minecraft:bundle/selected_item or minecraft:special. (In most cases you would need minecraft:model) - "model" is the path to your actual model for this item. For example the value above would point to "assets/your_mod_id/models/item/custom_item"
    • On version 1.20.1 there is a build with the AE2 mod, and when opening the reference book for this mod inside Minecraft, it just freezes and closes
    • public ExampleMod(FMLJavaModLoadingContext context) { var modEventBus = context.getModEventBus(); } Refer to the javadocs and MDK for more pointers and examples.
    • Does it work without Cobblemon GTS?
    • I recently updated my mod from 1.21 to 1.21.4. Didn't change anything on the data generation code (even though methods are now marked as deprecated) and had to change the block and item registration to explicitly add the id to avoid the "null pointer exception no id supplied" error The problem is that the block models work fine, as they did before, textures and all, but not the item ones. Is it because of this registration change? Did something in the datapack structure change on minecraft itself?   Here is one of the registration lines im using as reference:   RegistryObject<Item> CUSTOMITEM = ITEMS.register("item", () -> new RawMaterial(new Item.Properties().useItemDescriptionPrefix().setId(ResourceKey.create(Registries.ITEM, ResourceLocation.fromNamespaceAndPath(MOD_ID, "item"))))));   and same for blocks:   private static <T extends Block> RegistryObject<Item> registerBlockItem(String name, RegistryObject<T> block) {     //T is the block type. It will register the block and the block item.     return ModItems.ITEMS.register(name, () -> new BlockItem(block.get(), new Item.Properties().useBlockDescriptionPrefix().setId(ResourceKey.create(Registries.ITEM, ResourceLocation.fromNamespaceAndPath(MOD_ID, name))))); } RegistryObject<Block> CUSTOMORE = registerBlock("ore", () -> new CustomOre(Block.Properties.ofFullCopy(Blocks.STONE).setId(ResourceKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath(MOD_ID,"ore"))))));   Note that this made the translation keys i had pre 1.21.4 correctly show the translatable component, so im guessing that is okay, but just in case.  
  • Topics

×
×
  • Create New...

Important Information

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