Jump to content

Thegametutor101

Members
  • Posts

    51
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Thegametutor101's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. Then if you want to help me give me a better explanation other than just sayng the same thing i already said I didn't understand. Yes I realised that and thus I don't know what you are trying to say. Need a better explanation than "do the same as". Remember what I said about being arrogant? I'm trying to be patient and polite so please give me the same treatment.
  2. can you please just write the code that I am supposed to put? I found the getItemRenderer method in the Minecraft class but can't get it via a Minecraft.getItemRenderer() call. I can't manage to "do the same RenderEntityItem does".
  3. That's a clear answer thank you. and I know how my IDE works but i can't search for something if I don't know what I have to search. Of what lines I need to write in the doRender method of my RenderThrowablePokeball class.
  4. I'm really sorry then I don't understand what you are telling me to do.. can you show me an example please?
  5. so I don't create an object of the RenderItem class?? I tried this but it crashed.. public class RenderThrowablePokeball extends Render<EntityThrowablePokeball>{ public ItemStack itemstack = new ItemStack(Pokeballs.POKEBALL); /* private final RenderItem itemRenderer = new RenderItem(null, null, null); */ public RenderThrowablePokeball(RenderManager renderManager) { super(renderManager); } @Override protected ResourceLocation getEntityTexture(EntityThrowablePokeball entity) { return TextureMap.LOCATION_BLOCKS_TEXTURE; } @Override public void doRender(EntityThrowablePokeball entity, double x, double y, double z, float entityYaw, float partialTicks) { GL11.glPushMatrix(); bindEntityTexture(entity); bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE); GL11.glTranslated(x, y, z); //this.model.render(entity, 0.0F, 0.0F, -0.1F, entity.rotationYaw, entity.rotationPitch, 0.0625F); GL11.glPopMatrix(); IBakedModel ibakedmodel = this.itemRenderer.getItemModelWithOverrides(itemstack, entity.world, (EntityLivingBase)null); super.doRender(entity, x, y, z, entityYaw, partialTicks); } }
  6. Main ItemThrowablePokeball (Creates The item pokeball) BaseEntityThrowablePokeball (Base for all throwablePokeballs) EntityThrowablePokeball (the Throwable Pokeball entity itself) RenderThrowablePokeball (Rendering the Pokeball being thrown) ThrowableRenderHandler (Registers the rendering for the throwables) ThrowableRegistryHandler (Registers the Throwable Entities)
  7. I put it in the preInit now and it gave me this crash report: [19:31:23] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ---- // Don't do that. Time: 5/10/19 7:31 PM Description: Initializing game java.lang.NullPointerException: Initializing game at net.minecraftforge.client.ItemModelMesherForge.register(ItemModelMesherForge.java:80) at net.minecraft.client.renderer.RenderItem.registerItem(RenderItem.java:88) at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:93) at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:98) at net.minecraft.client.renderer.RenderItem.registerItems(RenderItem.java:470) at net.minecraft.client.renderer.RenderItem.<init>(RenderItem.java:77) at pixelmonMod.entities.throwableEntities.pokeballEntities.renders.RenderThrowablePokeball.<init>(RenderThrowablePokeball.java:24) at pixelmonMod.entities.throwableEntities.throwableHandlers.ThrowableRenderHandler$1.createRenderFor(ThrowableRenderHandler.java:20) at net.minecraftforge.fml.client.registry.RenderingRegistry.register(RenderingRegistry.java:77) at net.minecraftforge.fml.client.registry.RenderingRegistry.loadEntityRenderers(RenderingRegistry.java:70) at net.minecraft.client.renderer.entity.RenderManager.<init>(RenderManager.java:236) at net.minecraft.client.Minecraft.init(Minecraft.java:564) at net.minecraft.client.Minecraft.run(Minecraft.java:421) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:25) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraftforge.client.ItemModelMesherForge.register(ItemModelMesherForge.java:80) at net.minecraft.client.renderer.RenderItem.registerItem(RenderItem.java:88) at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:93) at net.minecraft.client.renderer.RenderItem.registerBlock(RenderItem.java:98) at net.minecraft.client.renderer.RenderItem.registerItems(RenderItem.java:470) at net.minecraft.client.renderer.RenderItem.<init>(RenderItem.java:77) at pixelmonMod.entities.throwableEntities.pokeballEntities.renders.RenderThrowablePokeball.<init>(RenderThrowablePokeball.java:24) at pixelmonMod.entities.throwableEntities.throwableHandlers.ThrowableRenderHandler$1.createRenderFor(ThrowableRenderHandler.java:20) at net.minecraftforge.fml.client.registry.RenderingRegistry.register(RenderingRegistry.java:77) at net.minecraftforge.fml.client.registry.RenderingRegistry.loadEntityRenderers(RenderingRegistry.java:70) at net.minecraft.client.renderer.entity.RenderManager.<init>(RenderManager.java:236) at net.minecraft.client.Minecraft.init(Minecraft.java:564) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:421) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:25) -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_211, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 782979512 bytes (746 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.5.2768 5 mods loaded, 5 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 | |:----- |:--------- |:------------ |:-------------------------------- |:--------- | | UCH | minecraft | 1.12.2 | minecraft.jar | None | | UCH | mcp | 9.42 | minecraft.jar | None | | UCH | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.5.2768.jar | None | | UCH | forge | 14.23.5.2768 | forgeSrc-1.12.2-14.23.5.2768.jar | None | | UCH | pm | 0.0.1 | bin | None | Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13397 Compatibility Profile Context 15.200.1055.0' Renderer: 'AMD Radeon(TM) R3 Graphics' Launched Version: 1.12.2 LWJGL: 2.9.4 OpenGL: AMD Radeon(TM) R3 Graphics GL version 4.5.13397 Compatibility Profile Context 15.200.1055.0, ATI Technologies Inc. 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: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x AMD A4-6210 APU with AMD Radeon R3 Graphics [19:31:24] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Dan\Desktop\Minecraft Modding\PixelmonMod\run\.\crash-reports\crash-2019-05-10_19.31.23-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
  8. Indeed I forgot to do it so now it is registered both the entity and the render in the Main's Init method. @EventHandler public static void init(FMLInitializationEvent event) { ThrowableRegistryHandler.registerThrowableEntities(); ThrowableRenderHandler.registerThrowableEntityRenders(); ApricornSmelting.init(); AluminiumSmelting.init(); } I loaded the mod and it still doesnt work..same white cube
  9. still Doesn't render properly..it looks like a white block being thrown
  10. Thank you for the explanation! I think I understand, is this what I am supposed to do?: ItemStack itemstack = new ItemStack(Pokeballs.POKEBALL); I tried looking in the RenderEntityItem class and I'm not sure if this is the "AllinOne" texture: protected ResourceLocation getEntityTexture(EntityItem entity) { return TextureMap.LOCATION_BLOCKS_TEXTURE; }
  11. That's actually really well said.. thank you and I am honestly trying to do what you tell me to I really have a hard time understanding, sorry. I am already rendering the OBJ model in game for my pm:pokeball. Are you telling me to do something else as well? I know the texture should be a .png file but I don't know how I should do this because I have the blockstates json file calling my obj file in the models/item and that uses the mtl file but the textures were directly injected into the mtl file and I have no Idea how to do it otherwise.. You are right though I should try something less big to start..I just wanted to try and understand how to do it and then I will try putting my focus toward other parts of the mod.
  12. I'm trying this but I don't know if this is correct. BTW, I'm new so if you can help me I am happy, but please just don't be arrogant.
  13. I found this piece of code but I don't know if this would work or what I would even do with it: https://github.com/syoyo/tinyobjloader/blob/master/tiny_obj_loader.h I would really appreciate it if you could explain a little more, please. If I understand this correctly you mean that once my OBJ item model is registered I use the IBakedModel to render said OBJ item model through the RenderEntityItem? I don't know how to do that nor how to access or use an IBakedModel. Can you please show me how or explain a littles more? Thank you
  14. Actually I'm trying to create 2 types of entities with obj models: a throwable and a mob. Do you know how I should make the custom wavefront parser/uploader? I have never used IBakedModel before.. what do I do? thank you
×
×
  • Create New...

Important Information

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