Jump to content

---- Minecraft Crash Report ---- // Who set us up the TNT? Description: Rendering entity in world


sashaironfist

Recommended Posts

---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 2022-01-02 09:28:04 EST
Description: Rendering entity in world

java.lang.NullPointerException
    at appeng.client.render.model.DriveBakedModel.getQuads(DriveBakedModel.java:73)
    at appeng.client.render.model.AutoRotatingModel.getQuads(AutoRotatingModel.java:160)
    at net.minecraft.client.renderer.BlockModelRenderer.handler$zbj000$beforeRenderModel(BlockModelRenderer.java:710)
    at net.minecraft.client.renderer.BlockModelRenderer.renderModel(BlockModelRenderer.java)
    at lucraft.mods.heroesexpansion.client.render.entity.RenderGrabbedBlock.doRender(RenderGrabbedBlock.java:54)
    at lucraft.mods.heroesexpansion.client.render.entity.RenderGrabbedBlock.doRender(RenderGrabbedBlock.java:22)
    at net.minecraft.client.renderer.entity.RenderManager.renderEntity(RenderManager.java:413)
    at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:393)
    at net.minecraft.client.renderer.RenderGlobal.redirect$zbh000$renderEntityStatic(RenderGlobal.java:3769)
    at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:850)
    at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1808)
    at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1621)
    at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1390)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119)
    at net.minecraft.client.Minecraft.run(Minecraft.java:3942)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    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:
---------------------------------------------------------------------------------------

-- Entity being rendered --
  Entity Type: heroesexpansion:grabbed_block (lucraft.mods.heroesexpansion.entities.EntityGrabbedBlock)
  Entity ID: 33
  Entity Name: entity.grabbed_block.name
  Entity's Exact location: 10.28, 1.54, 11.43
  Entity's Block location: World: (10,1,11), Chunk: (at 10,0,11 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
  Entity's Momentum: 0.00, 0.00, 0.00
  Entity's Passengers: []
  Entity's Vehicle: ~~ERROR~~ NullPointerException: null
  Entity NBT: {Origin:{X:9,Y:2,Z:10},Motion:[0.0d,0.0d,0.0d],ForgeData:{},Released:0b,UUIDLeast:-4636830953255907870L,Invulnerable:0b,Data:0b,Air:300s,OnGround:0b,Dimension:312,PortalCooldown:0,Rotation:[0.0f,0.0f],UpdateBlocked:0b,TileEntityData:{inv:{item0:{id:"extracells:storage.physical",Count:1b,tag:{it:5s,upgrades:{},"#0":{Craft:0b,Cnt:1472L,id:"minecraft:stone",Count:1b,Damage:0s,Req:0L},"#1":{Craft:0b,Cnt:1L,id:"ancientspellcraft:ancient_spellcraft_spell_book",Count:1b,Damage:260s,Req:0L},fuzzyMode:"IGNORE_ALL","#2":{Craft:0b,Cnt:1L,id:"ancientspellcraft:dimension_boundary",Count:1b,Damage:0s,Req:0L},"@0":1472,"#3":{Craft:0b,Cnt:1L,id:"ancientspellcraft:dimension_focus",Count:1b,Damage:0s,Req:0L},"@1":1,"#4":{Craft:0b,Cnt:1L,id:"ebwizardry:master_wand",Count:1b,tag:{cooldown:[I;0,0,0,0,0],maxCooldown:[I;300,1,300,200,0],selectedSpell:0,spells:[I;0,0,0,0,0]},Damage:0s,Req:0L},"@2":1,"@3":1,"@4":1,ic:1476,config:{}},Damage:3s},item2:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item1:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item8:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item7:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item9:{id:"extracells:storage.physical",Count:1b,tag:{"@0":6,ic:6,it:1s,upgrades:{},config:{},"#0":{Craft:0b,Cnt:6L,id:"appliedenergistics2:part",Count:1b,Damage:16s,Req:0L},fuzzyMode:"IGNORE_ALL"},Damage:3s},item4:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item3:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item6:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s},item5:{id:"extracells:storage.physical",Count:1b,tag:{upgrades:{},config:{},fuzzyMode:"IGNORE_ALL"},Damage:3s}},proxy:{p:0,g:918L,k:-1L},ForgeData:{},forward:"NORTH",x:9,y:2,z:10,id:"appliedenergistics2:drive",up:"UP",priority:0},FallDistance:0.0f,UUIDMost:-8764808198930543040L,Pos:[10.275272489907852d,1.542434573173523d,11.430992938387222d],Fire:0s,Block:"appliedenergistics2:drive"}

-- Renderer details --
  Assigned renderer: lucraft.mods.heroesexpansion.client.render.entity.RenderGrabbedBlock@72895856
  Location: 2.81,-0.46,4.88 - World: (2,-1,4), Chunk: (at 2,-1,4 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
  Rotation: 0.0
  Delta: 0.8200023

-- Affected level --
  Level name: MpServer
  All players: 1 total; [GCEntityClientPlayerMP['sashaironfist'/32, l='MpServer', x=7.47, y=2.00, z=6.56]]
  Chunk stats: MultiplayerChunkCache: 82, 82
  Level seed: 0
  Level generator: ID 00 - default, ver 1. Features enabled: false
  Level generator options: 
  Level spawn location: World: (387,65,357), Chunk: (at 3,4,5 in 24,22; contains blocks 384,0,352 to 399,255,367), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
  Level time: 2932623 game time, 4248 day time
  Level dimension: 0
  Level storage version: 0x00000 - Unknown?
  Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
  Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
  Forced entities: 3 total; [EntityGrabbedBlock['entity.grabbed_block.name'/33, l='MpServer', x=10.28, y=1.54, z=11.43], GCEntityClientPlayerMP['sashaironfist'/32, l='MpServer', x=7.47, y=2.00, z=6.56], EntityGrabbedBlock['entity.grabbed_block.name'/35, l='MpServer', x=-15.32, y=-31.20, z=66.13]]
  Retry entities: 0 total; []
  Server brand: fml,forge
  Server type: Integrated singleplayer server

-- System Details --
  Minecraft Version: 1.12.2
  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: 2397399736 bytes (2286 MB) / 4731174912 bytes (4512 MB) up to 7516192768 bytes (7168 MB)
  JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx7G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
  IntCache: cache: 0, tcache: 0, allocated: 29, tallocated: 77
  FML: MCP 9.42 Powered by Forge 14.23.5.2855 Optifine OptiFine_1.12.2_HD_U_G5 59 mods loaded, 58 mods active
       States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
       
       | State  | ID                  | Version           | Source                                                | Signature                                |
       |:------ |:------------------- |:----------------- |:----------------------------------------------------- |:---------------------------------------- |
       | LCHIJA | minecraft           | 1.12.2            | minecraft.jar                                         | None                                     |
       | LCHIJA | mcp                 | 9.42              | minecraft.jar                                         | None                                     |
       | LCHIJA | FML                 | 8.0.99.99         | forge-1.12.2-14.23.5.2855.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |
       | LCHIJA | forge               | 14.23.5.2855      | forge-1.12.2-14.23.5.2855.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |
       | LCHIJA | micdoodlecore       |                   | minecraft.jar                                         | None                                     |
       | LCHIJA | openmodscore        | 0.12.2            | minecraft.jar                                         | None                                     |
       | LCHIJA | actuallyadditions   | 1.12.2-r152       | ActuallyAdditions-1.12.2-r152.jar                     | None                                     |
       | LCHIJA | applecore           | 3.4.0             | AppleCore-mc1.12.2-3.4.0.jar                          | None                                     |
       | LCHIJA | jei                 | 4.16.1.302        | jei_1.12.2-4.16.1.302.jar                             | None                                     |
       | LCHIJA | appleskin           | 1.0.14            | AppleSkin-mc1.12-1.0.14.jar                           | None                                     |
       | LCHIJA | appliedenergistics2 | rv6-stable-7      | appliedenergistics2-rv6-stable-7 (2).jar              | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |
       | LCHIJA | codechickenlib      | 3.2.3.358         | CodeChickenLib-1.12.2-3.2.3.358-universal.jar         | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
       | LCHIJA | avaritia            | 3.3.0             | Avaritia-1.12.2-3.3.0.37-universal.jar                | None                                     |
       | LCHIJA | baublelicious       | 1.4.0-4           | Baublelicious-1.4.0-4 (1).jar                         | None                                     |
       | LCHIJA | baubles             | 1.5.2             | Baubles-1.12-1.5.2 (2).jar                            | None                                     |
       | LCHIJA | redstoneflux        | 2.1.1             | RedstoneFlux-1.12-2.1.1.1-universal (1).jar           | None                                     |
       | LCHIJA | brandonscore        | 2.4.20            | BrandonsCore-1.12.2-2.4.20.162-universal.jar          | None                                     |
       | LCHIJA | carryon             | 1.12.3            | carryon-1.12.2-1.12.6.20.jar                          | fd21553434f4905f2f73ea7838147ac4ea07bd88 |
       | LCHIJA | cdm                 | 0.4.1             | cdm-0.4.1-mc1.12.2 (1).jar                            | None                                     |
       | LCHIJA | cfm                 | 6.3.0             | cfm-6.3.0-mc1.12.2.jar                                | None                                     |
       | LCHIJA | chunkanimator       | 1.2               | ChunkAnimator-MC1.12-1.2.jar                          | None                                     |
       | LCHIJA | craftstudioapi      | 1.0.0             | CraftStudioAPI-universal-1.0.1.95-mc1.12-alpha.jar    | None                                     |
       | LCHIJA | cyclicmagic         | 1.20.11           | Cyclic-1.12.2-1.20.11.jar                             | 0e5cb559be7d03f3fc18b8cba547d663e25f28af |
       | LCHIJA | draconicevolution   | 2.3.28            | Draconic-Evolution-1.12.2-2.3.28.354-universal.jar    | None                                     |
       | LCHIJA | draconicadditions   | 1.17.0            | Draconic-Additions-1.12.2-1.17.0.45-universal (1).jar | None                                     |
       | LCHIJA | ebwizardry          | 4.3.4             | ElectroblobsWizardry-4.3.4-MC1.12.2 (1).jar           | None                                     |
       | LCHIJA | waila               | 1.8.26            | Hwyla-1.8.26-B41_1.12.2 (3).jar                       | None                                     |
       | LCHIJA | extracells          | 2.6.5             | ExtraCells-1.12.2-2.6.5.jar                           | None                                     |
       | LCHIJA | mantle              | 1.12-1.3.3.55     | Mantle-1.12-1.3.3.55.jar                              | None                                     |
       | LCHIJA | tconstruct          | 1.12.2-2.13.0.183 | TConstruct-1.12.2-2.13.0.183.jar                      | None                                     |
       | LCHIJA | extrautils2         | 1.0               | extrautils2-1.12-1.9.9 (1).jar                        | None                                     |
       | LCHIJA | fluxnetworks        | 4.1.0             | FluxNetworks-1.12.2-4.1.1.34.jar                      | None                                     |
       | LCHIJA | fpsreducer          | mc1.12.2-1.20     | FpsReducer-mc1.12.2-1.20.jar                          | None                                     |
       | LCHIJA | galacticraftcore    | 4.0.2.220         | Galacticraft-Mod-1.12.2.jar                           | None                                     |
       | LCHIJA | speedsterheroes     | 1.12.2-2.2.1      | SpeedsterHeroes-1.12.2-2.2.1 (1).jar                  | None                                     |
       | LCHIJA | lucraftcore         | 1.12.2-2.4.16     | LucraftCore-1.12.2-2.4.16.jar                         | None                                     |
       | LCHIJA | heroesexpansion     | 1.12.2-1.3.5      | HeroesExpansion-1.12.2-1.3.5 (1).jar                  | None                                     |
       | LCHIJA | infinity            | 1.12              | infinity-1.12.jar                                     | None                                     |
       | LCHIJA | lootbags            | 2.5.8.5           | LootBags-1.12.2-2.5.8.5.jar                           | None                                     |
       | LCHIJA | mclib               | 2.3.5             | mclib-2.3.5-1.12.2.jar                                | None                                     |
       | LCHIJA | mekanism            | 1.12.2-9.8.3.390  | Mekanism-1.12.2-9.8.3.390.jar                         | None                                     |
       | LCHIJA | multimob            | 1.0.5             | multimob-1.0.5.jar                                    | None                                     |
       | LCHIJA | omlib               | 3.1.5-256         | omlib-1.12.2-3.1.5-256.jar                            | None                                     |
       | LCHIJA | openmods            | 0.12.2            | OpenModsLib-1.12.2-0.12.2.jar                         | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
       | LCHIJA | openblocks          | 1.8.1             | OpenBlocks-1.12.2-1.8.1.jar                           | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
       | LCHIJA | plustic             | @VERSION@         | plustic-8.0.3.jar                                     | None                                     |
       | LCHIJA | primitivemobs       | 1.2.3a            | primitivemobs-1.2.3a.jar                              | None                                     |
       | LCHIJA | pymtech             | 1.12.2-1.0.2      | PymTech-1.12.2-1.0.2.jar                              | None                                     |
       | LCHIJA | silentlib           | 3.0.13            | SilentLib-1.12.2-3.0.14+168.jar                       | None                                     |
       | LCHIJA | scalinghealth       | 1.3.37            | ScalingHealth-1.12.2-1.3.42+147 (1).jar               | None                                     |
       | LCHIJA | star-tech           | 1.1.1             | star-tech-1.1.1 (1).jar                               | None                                     |
       | LCHIJA | the-fifth-world     | 0.5               | the-fifth-world-0.5.1 (1).jar                         | None                                     |
       | LCHIJA | tickratechanger     | 1.0.14            | TickrateChanger-1.0.14.jar                            | None                                     |
       | LCHIJA | valkyrielib         | 1.12.2-2.0.20.1   | valkyrielib-1.12.2-2.0.20.1.jar                       | None                                     |
       | LCHIJA | universalmodifiers  | 1.12.2-1.0.16.1   | valkyrielib-1.12.2-2.0.20.1.jar                       | None                                     |
       | LCHIJA | vanillafix          | 1.0.10-150        | VanillaFix-1.0.10-150.jar                             | None                                     |
       | LCHIJA | worldedit           | 6.1.10            | worldedit-forge-mc1.12.2-6.1.10-dist.jar              | None                                     |
       | LCHIJA | ancientspellcraft   | 1.12.2-1.2.3      | AncientSpellcraft-1.12.2-1.2.3.jar                    | None                                     |
       | UD     | mclib_core          | 2.3.5             | minecraft.jar                                         | None                                     |
  Loaded coremods (and transformers): MicdoodlePlugin (MicdoodleCore-1.12.2.jar)
                                        micdoodle8.mods.miccore.MicdoodleTransformer
                                      McLib core mod (mclib-2.3.5-1.12.2.jar)
                                        mchorse.mclib.core.McLibCMClassTransformer
                                      VanillaFixLoadingPlugin (VanillaFix-1.0.10-150.jar)
                                        
                                      LucraftCoreCoreMod (LucraftCore-1.12.2-2.4.16.jar)
                                        lucraft.mods.lucraftcore.core.LCTransformer
                                      TickrateChanger (TickrateChanger-1.0.14.jar)
                                        me.guichaguri.tickratechanger.TickrateTransformer
                                      MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar)
                                        mekanism.coremod.KeybindingMigrationHelper
                                      OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)
                                        openmods.core.OpenModsClassTransformer
                                      pymtech (PymTech-1.12.2-1.0.2.jar)
                                        lucraft.mods.pymtech.core.PymTechClassTransformer
                                      AppleCore (AppleCore-mc1.12.2-3.4.0.jar)
                                        squeek.applecore.asm.TransformerModuleHandler
                                      LoadingPlugin (ChunkAnimator-MC1.12-1.2.jar)
                                        lumien.chunkanimator.asm.ClassTransformer
  GL info: ' Vendor: 'Intel' Version: '4.6.0 - Build 27.20.100.8681' Renderer: 'Intel(R) UHD Graphics 620'
  OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]
  AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768
  Pulsar/tconstruct loaded Pulses: - TinkerCommons (Enabled/Forced)
                                   - TinkerWorld (Enabled/Not Forced)
                                   - TinkerTools (Enabled/Not Forced)
                                   - TinkerHarvestTools (Enabled/Forced)
                                   - TinkerMeleeWeapons (Enabled/Forced)
                                   - TinkerRangedWeapons (Enabled/Forced)
                                   - TinkerModifiers (Enabled/Forced)
                                   - TinkerSmeltery (Enabled/Not Forced)
                                   - TinkerGadgets (Enabled/Not Forced)
                                   - TinkerOredict (Enabled/Forced)
                                   - TinkerIntegration (Enabled/Forced)
                                   - TinkerFluids (Enabled/Forced)
                                   - TinkerMaterials (Enabled/Forced)
                                   - TinkerModelRegister (Enabled/Forced)
                                   - wailaIntegration (Enabled/Not Forced)
  AE2 Integration: IC2:OFF, RC:OFF, MFR:OFF, Waila:ON, InvTweaks:OFF, JEI:ON, Mekanism:ON, OpenComputers:OFF, THE_ONE_PROBE:OFF, TESLA:OFF, CRAFTTWEAKER:OFF
  Suspected Mods: Applied Energistics 2 (appliedenergistics2), HeroesExpansion (heroesexpansion)
  Launched Version: 1.12.2-forge-14.23.5.2855
  LWJGL: 2.9.4
  OpenGL: Intel(R) UHD Graphics 620 GL version 4.6.0 - Build 27.20.100.8681, Intel
  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: No
  Is Modded: Definitely; Client brand changed to 'fml,forge'
  Type: Client (map_client.txt)
  Resource Packs: 
  Current Language: English (US)
  Profiler Position: N/A (disabled)
  CPU: 8x Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Client Crashes Since Restart: 1
  Integrated Server Crashes Since Restart: 0
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • !warudo.isClientSide() still not a gui not an error just a simple message [06:44:39] [Render thread/WARN] [minecraft/MenuScreens]: Failed to create screen for menu type: mercmod:gem_polishing_menu Not a hint of what the problem is  this silent simple error dont tell much about the problem the code i made don't show errors highlighted   in mi old code 1.19.4 i launch the menu part from client side  but now i recheck the video and kapenjoe does it server side         
    • Hey, for getting your model to show up in Forge, double-check the way you've set up your model registration. Sometimes, it's just a tiny mix-up with where you've put your model file or maybe missing the right event to hook it up. Also, peek at your @Mod.EventBusSubscriber setup; it's gotta be listening in the right place. And don't forget to place your model file in the exact right spot with the correct naming. If in doubt, the Forge docs or forum threads can be super helpful.
    • Since flying mobs like bees and flies aren't affected, the problem likely lies with how ground mob AI interacts with the server environment. Checking the server logs, as you've done, is a good step. You might want to look for errors related to mob AI or pathfinding. Consider removing or updating mods one at a time to isolate the issue. Additionally, ensure your server's performance isn't being overly taxed by the modpack, as this can sometimes lead to unusual behavior with entity AI.
    • I'm having the same issue rn. Hostile mobs wont move until attacked but peaceful land mobs wont move at all. If it swims or flies its unaffected until it touches blocks.
    • Im trying to register model for my item but it doesn't works. First I Created a class where i declared all my items.   public class ModItems { public static final List<Item> ITEMS = new ArrayList<Item>(); public static final Item MY_ITEM = new MyItemClass(); } Then I created the MyItemClass where i describe my item. public class MyItemClass extends Item { public MyItemClass() { this.setRegistryName("my_item"); this.setUnlocalizedName("my_item"); this.setCreativeTab(CreativeTabs.COMBAT); ModItems.ITEMS.add(this); } } And The i created a class where i was trying register the model and where i registered my item @Mod.EventBusSubscriber public class EventsHandler { @SubscribeEvent public void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().register(new MyItemClass()); } @SubscribeEvent @SideOnly(Side.CLIENT) public static void onRegistryModel(ModelRegistryEvent event) { registryModel(new MyItemClass()); } @SideOnly(Side.CLIENT) private static void registryModel(Item item) { final ResourceLocation regName = item.getRegistryName(); final ModelResourceLocation mr1 = new ModelResourceLocation(regName, "inventory"); ModelBakery.registerItemVariants(item, mr1); ModelLoader.setCustomModelResourceLocation(item, 0, mr1); } } The registerItems method just registers my items. Then im catching ModelRegistryEvent to register my model. And in the last private method im registering models. In The game iitem still has purple-black cube instead of texture. I dont forgot to create the models\item folder and my_item.json file im sorry if this text has a grammatical errors. My english is very low  
  • Topics

×
×
  • Create New...

Important Information

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