Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

dun

Members
  • Posts

    10
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Personal Text
    I am new!

dun's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Found a way to fix it! I went to the gradle folder on the right side of the project and press "Reload All Gradle Project" and now I can runClient without the errors showing up!
  2. For some reason, whenever I press runClient lately, I always get this error message: Exception in thread "main" java.lang.NoClassDefFoundError: cpw/mods/gross/Java9ClassLoaderUtil at cpw.mods.modlauncher.TransformationServicesHandler.discoverServices(TransformationServicesHandler.java:139) at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) Caused by: java.lang.ClassNotFoundException: cpw.mods.gross.Java9ClassLoaderUtil at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 4 more Can someone explained why this happens?
  3. Model wise? Through rotate Angles. Example: this.bipedRightLeg.rotateAngleX = -1.4137167F; Code wise? They sit when you right click on them. I tried to use rotationPointY to make them look like they are sitting on the ground, but as mentioned, I was using two models for the entity, and when I tried to lower their rotationPointY, it looked pretty funky even when the reduction is on both models.
  4. As you can see, when my entity is sitting, its sitting above the ground. I've tried to modify the entity's model but since this entity actually uses two models (the other model is for rendering their armor if they have one equipped) so it gets really wonky. I'm wondering if there's a way to move their body down a little so they can look like their sitting on the floor using other methods.
  5. NEVERMIND! I've figured it out! Looks like I was taking your code example too literally! ๐Ÿ˜… Now my code is taking the right constructor! I can finally create my own Projectiles now! Thank you so much! ๐Ÿ˜„
  6. Cannot resolve method 'of' in 'Builder' I'm still quite confused on how to use TypeParameter. The (...) part specifically as I've no clue what I'm supposed to put there. Where does the 'create' go into the code?
  7. 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! ๐Ÿ˜Š
  8. 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!
  9. 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 Privacy Policy.