Jump to content

dun

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by dun

  1. Hi! I've been having a really frustrating problem with registering my projectile to my Entity Type registry. As you can see, my Entity Type class cannot resolve my projectile's constructor due to having more than one constructors sharing the same name. When I press Create constructor, it will create this: However, the constructor does not work as when I put in entityEntityType and world into the super this will happen: And when I change the EntityType from Entity to an extension, it would simply results in a copy of the first constructor of my entity resulting in a loop where my projectile would simply be unable to be added into my Entity Type registry.๐Ÿฅด Now, the obvious problem would be that there are more than one constructors sharing the same name, so one should either change the names of the other constructors or remove them. Not so fast buckeroo ๐Ÿ‘ˆ๐Ÿ‘ˆ ๐Ÿค , those constructors help make the projectile move like a projectile in the first place (Moving from one position to another without simply appearing at the other position). What's really frustrating about this, is that most of the game's projectiles are codded no differently than my own, with multiple constructors sharing the same name, one for registering, the others for the projectile to actually shoot from their original position, and are registered properly. Heck, my projectile is actually a Ghast Fireball that can't be punched nor break blocks! Now I am in a dilemma. As you can tell, I'm new to Modding Minecraft as my Entity Type registry is based/copied from Technovision's tutorial(https://www.youtube.com/watch?v=zJkQc2A1PIk&list=PLDhiRTZ_vnoWsCqtoG1X1MbGY5xATTadb&index=18) and I really want to create my own custom projectiles rather than using Minecraft's already existing projectile. I even tried to revamp my EntityType Registry to be similar to Minecraft, but it still has the same problem, can't resolve constructor, new having the dreaded red squiggly line and all. Thank you for reading about my problem! Please, tell me how I can fix this or what I can do! ๐Ÿ˜Š
  2. Ah, I see where the problem was! I didn't set up my Renderer correctly! I forgot to set up my SetEntityTexture properly and was set to return Null! Sorry for the inconvenience! I was following a tutorial on Youtube so I was just blindly copying what they're doing! Now my entity can properly spawn in without crashing my world! Though it does look funky, but I think it has to do with the animation. The model is using the Rotation Angles of an Enderman, with some tweeked adjustments, so I just need to code it so that it animated properly!
  3. Hi, Everyone! New to Modding here! I was trying to add a new mob in the game, but it seemed to crash whenever I tried spawning it in. Can someone explain what went wrong? Here's the crash report: ---- Minecraft Crash Report ---- // I let you down. Sorry :( Time: 3/16/21 10:00 AM Description: Rendering entity in world java.lang.NullPointerException: Rendering entity in world at java.util.Objects.requireNonNull(Objects.java:203) ~[?:1.8.0_261] {} at java.util.Optional.<init>(Optional.java:96) ~[?:1.8.0_261] {} at java.util.Optional.of(Optional.java:108) ~[?:1.8.0_261] {} at net.minecraft.client.renderer.RenderState$TextureState.<init>(RenderState.java:618) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.RenderType.getEntityCutoutNoCull(RenderType.java:93) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.RenderType.getEntityCutoutNoCull(RenderType.java:98) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.model.Model.getRenderType(Model.java:26) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.LivingRenderer.func_230496_a_(LivingRenderer.java:140) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.LivingRenderer.render(LivingRenderer.java:116) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.MobRenderer.render(MobRenderer.java:40) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.MobRenderer.render(MobRenderer.java:20) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRendererManager.renderEntityStatic(EntityRendererManager.java:252) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.WorldRenderer.renderEntity(WorldRenderer.java:1219) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.WorldRenderer.updateCameraAndRender(WorldRenderer.java:1027) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.renderWorld(GameRenderer.java:619) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:437) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1002) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261] {} at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261] {} at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261] {} at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] {} at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] {}
ร—
ร—
  • Create New...

Important Information

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