Crash at start

Started by Geeklink on

Topic category: Troubleshooting, bugs, and solutions

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Crash at start

Hi there , i'm new here and in codage world's and ive a little probleme , my game crash when i start it with my mod

my mod is just a mob for now but it make my game crash and i don't know where is the problem , it's my first mod and codage.

Here the console :

 

Build info: MCreator 1.8.3, 64-bit, 8127 MB, Windows 10 - cmd, JVM 1.8.0_202, JAVA_HOME: C:\Pylo\MCreator183\jdk
(c) 2018 Microsoft Corporation. Tous droits r‚serv‚s.
C:\Pylo\MCreator183\forge>gradlew -Dorg.gradle.java.home="C:/Pylo/MCreator183/jdk" -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms4000m -Xmx4000m" runClient 
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:getVersionJson
:extractNatives SKIPPED
:extractUserdev UP-TO-DATE
:getAssetIndex UP-TO-DATE
:getAssets
Current status: 99/1305   7%
Current status: 967/1305   74%
Current status: 1078/1305   82%
:makeStart
:runClient
23:42.43 [main/INFO] [GradleStart]: Extra: []
23:42.43 [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/geekl/.mcreator/gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
23:42.43 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
23:42.43 [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
23:42.43 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
23:42.43 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
23:42.44 [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
23:42.44 [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_202, running on Windows 10:amd64:10.0, installed at C:\Pylo\MCreator183\jdk\jre
23:42.44 [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
23:42.44 [main/ERROR] [FML]: Full: C:\Users\geekl\.mcreator\gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
23:42.44 [main/ERROR] [FML]: Trimmed: c:/users/geekl/.mcreator/gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
23:42.44 [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
23:42.44 [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2019-05-08 23:42:44,961 main WARN Disabling terminal, you're running in an unsupported environment.
23:42.44 [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
23:42.44 [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
23:42.44 [main/INFO] [FML]: Searching C:\Pylo\MCreator183\forge\run\.\mods for mods
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
23:42.45 [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
23:42.45 [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
23:42.45 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
23:42.45 [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
23:42.45 [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
23:42.46 [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
23:42.46 [main/INFO] [minecraft/Minecraft]: Setting user: Player15
23:42.48 [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
23:42.48 [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
23:42.50 [main/INFO] [FML]: -- System Details --
Details:
   Minecraft Version: 1.12.2
   Operating System: Windows 10 (amd64) version 10.0
   Java Version: 1.8.0_202, BellSoft
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), BellSoft
   Memory: 200630176 bytes (191 MB) / 381681664 bytes (364 MB) up to 1894252544 bytes (1806 MB)
   JVM Flags: 0 total; 
   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
   FML: 
   Loaded coremods (and transformers): 
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 398.36' Renderer: 'GeForce GTX 1050/PCIe/SSE2'
23:42.50 [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
23:42.50 [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
23:42.50 [main/INFO] [FML]: Replaced 1036 ore ingredients
23:42.50 [main/INFO] [FML]: Searching C:\Pylo\MCreator183\forge\run\.\mods for mods
23:42.51 [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
23:42.52 [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, ba1] at CLIENT
23:42.52 [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, ba1] at SERVER
23:42.52 [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ba1
23:42.52 [main/INFO] [FML]: Processing ObjectHolder annotations
23:42.52 [main/INFO] [FML]: Found 1168 ObjectHolder annotations
23:42.52 [main/INFO] [FML]: Identifying ItemStackHolder annotations
23:42.52 [main/INFO] [FML]: Found 0 ItemStackHolder annotations
23:42.52 [main/INFO] [FML]: Configured a dormant chunk cache size of 0
23:42.52 [main/INFO] [FML]: OBJLoader: Domain ba1 has been added.
23:42.52 [main/INFO] [FML]: Applying holder lookups
23:42.52 [main/INFO] [FML]: Holder lookups applied
23:42.52 [main/INFO] [FML]: Applying holder lookups
23:42.52 [main/INFO] [FML]: Holder lookups applied
23:42.52 [main/INFO] [FML]: Applying holder lookups
23:42.52 [main/INFO] [FML]: Holder lookups applied
23:42.53 [main/INFO] [FML]: Applying holder lookups
23:42.53 [main/INFO] [FML]: Holder lookups applied
23:42.53 [main/INFO] [FML]: Injecting itemstacks
23:42.53 [main/INFO] [FML]: Itemstack injection complete
23:42.53 [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 401775403 nanos
23:42.53 [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotio…
23:42.53 [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
23:42.57 [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
23:42.58 [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
23:42.58 [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
23:42.58 [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
23:42.58 [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
23:43.04 [main/INFO] [FML]: Max texture size: 16384
23:43.05 [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
23:43.05 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 ---- Minecraft Crash Report ----
// You're mean.
Time: 5/8/19 11:43 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
   at mod.mcreator.mcreator_first$ModelNew.(mcreator_first.java:213)
-> Jump to the exception line
   at mod.mcreator.mcreator_first.lambda$preInit$2(mcreator_first.java:73)
-> Jump to the exception line
   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.(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(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   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(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   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 mod.mcreator.mcreator_first$ModelNew.(mcreator_first.java:213)
-> Jump to the exception line
   at mod.mcreator.mcreator_first.lambda$preInit$2(mcreator_first.java:73)
-> Jump to the exception line
   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.(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(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   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(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   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_202, BellSoft
   Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), BellSoft
   Memory: 286160240 bytes (272 MB) / 676855808 bytes (645 MB) up to 1894252544 bytes (1806 MB)
   JVM Flags: 0 total; 
   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   | ba1       | 1.0.1        | modid-1.0.jar                    | None      |
   Loaded coremods (and transformers): 
   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 398.36' Renderer: 'GeForce GTX 1050/PCIe/SSE2'
   Launched Version: 1.12.2
   LWJGL: 2.9.4
   OpenGL: GeForce GTX 1050/PCIe/SSE2 GL version 4.6.0 NVIDIA 398.36, NVIDIA Corporation
   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 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
23:43.05 [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629 #@!@# Game crashed! Crash report saved to: #@!@# C:\Pylo\MCreator183\forge\run\.\crash-reports\crash-2019-05-08_23.43.05-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
:runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Pylo\MCreator183\jdk\bin\java.exe'' finished with non-zero exit value -1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 32s
13 actionable tasks: 6 executed, 7 up-to-date
C:\Pylo\MCreator183\forge>
Task completed with return code 0 in 32912 milliseconds

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I figured out how to…
Wed, 05/08/2019 - 22:50

Okay, I figured out how to solve the problem. First, export the mod. Save it somewhere where you'll remember it, as you'll need this for later. After that, just import the same file you exported, then launch the client test environment. It worked for me at least.

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok i'm going to try that…
Wed, 05/08/2019 - 23:13

Ok i'm going to try that thanks , but i import back the mod or the java , if its the mod how do i import it back ?

 

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i'm putting that too cause…
Wed, 05/08/2019 - 23:23

i'm putting that too cause it say that the exception line is on that :

 

package mod.mcreator;

import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.common.registry.EntityEntryBuilder;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.client.registry.RenderingRegistry;

import net.minecraft.world.biome.Biome;
import net.minecraft.world.World;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.DamageSource;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;
import net.minecraft.init.Items;
import net.minecraft.entity.projectile.EntityTippedArrow;
import net.minecraft.entity.monster.EntityBlaze;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAIPanic;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAILeapAtTarget;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAIAttackRanged;
import net.minecraft.entity.IRangedAttackMob;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.Minecraft;

import java.util.Iterator;
import java.util.ArrayList;

public class mcreator_first extends ba1.ModElement {

    public static final int ENTITYID = 7;
    public static final int ENTITYID_RANGED = 8;

    public mcreator_first(ba1 instance) {
        super(instance);
        instance.entities.add(() -> EntityEntryBuilder.create().entity(Entityfirst.class).id(new ResourceLocation("ba1", "first"), ENTITYID)
                .name("first").tracker(64, 1, true).egg(-1, -10066432).build());
        instance.entities.add(() -> EntityEntryBuilder.create().entity(EntityArrowCustom.class)
                .id(new ResourceLocation("ba1", "entitybulletfirst"), ENTITYID_RANGED).name("entitybulletfirst").tracker(64, 1, true).build());
    }

    @Override
    public void init(FMLInitializationEvent event) {
        Biome[] spawnBiomes = allbiomes(Biome.REGISTRY);
        EntityRegistry.addSpawn(Entityfirst.class, 2, 1, 10, EnumCreatureType.MONSTER, spawnBiomes);
    }

    private Biome[] allbiomes(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
        Iterator<Biome> itr = in.iterator();
        ArrayList<Biome> ls = new ArrayList<Biome>();
        while (itr.hasNext())
            ls.add(itr.next());
        return ls.toArray(new Biome[ls.size()]);
    }

    @SideOnly(Side.CLIENT)
    @Override
    public void preInit(FMLPreInitializationEvent event) {
        RenderingRegistry.registerEntityRenderingHandler(Entityfirst.class, renderManager -> {
            return new RenderLiving(renderManager, new ModelNew(), 2f) {

                protected ResourceLocation getEntityTexture(Entity entity) {
                    return new ResourceLocation("ba1:textures/new4.png");
                }
            };
        });
        RenderingRegistry.registerEntityRenderingHandler(EntityArrowCustom.class, renderManager -> {
            return new RenderSnowball<EntityArrowCustom>(renderManager, null, Minecraft.getMinecraft().getRenderItem()) {

                public ItemStack getStackToRender(EntityArrowCustom entity) {
                    return new ItemStack(Items.SNOWBALL, (int) (1));
                }
            };
        });
    }

    public static class Entityfirst extends EntityBlaze implements IRangedAttackMob {

        public Entityfirst(World world) {
            super(world);
            setSize(2f, 2f);
            experienceValue = 5;
            this.isImmuneToFire = true;
            setNoAI(!false);
            setCustomNameTag("baleine");
            setAlwaysRenderNameTag(true);
            this.tasks.addTask(1, new EntityAIWander(this, 1));
            this.tasks.addTask(2, new EntityAILookIdle(this));
            this.tasks.addTask(3, new EntityAISwimming(this));
            this.tasks.addTask(4, new EntityAILeapAtTarget(this, (float) 0.8));
            this.tasks.addTask(5, new EntityAIPanic(this, 1.2));
            this.targetTasks.addTask(6, new EntityAIHurtByTarget(this, false));
            this.tasks.addTask(1, new EntityAIAttackRanged(this, 1.25D, 20, 10.0F));
        }

        @Override
        public EnumCreatureAttribute getCreatureAttribute() {
            return EnumCreatureAttribute.UNDEFINED;
        }

        @Override
        protected Item getDropItem() {
            return null;
        }

        @Override
        public net.minecraft.util.SoundEvent getAmbientSound() {
            return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(""));
        }

        @Override
        public net.minecraft.util.SoundEvent getHurtSound(DamageSource ds) {
            return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(""));
        }

        @Override
        public net.minecraft.util.SoundEvent getDeathSound() {
            return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation(""));
        }

        @Override
        protected float getSoundVolume() {
            return 1.0F;
        }

        @Override
        public void setSwingingArms(boolean swingingArms) {
        }

        public void attackEntityWithRangedAttack(EntityLivingBase target, float flval) {
            EntityArrowCustom entityarrow = new EntityArrowCustom(this.world, this);
            double d0 = target.posY + (double) target.getEyeHeight() - 1.1;
            double d1 = target.posX - this.posX;
            double d2 = d0 - entityarrow.posY;
            double d3 = target.posZ - this.posZ;
            float f = MathHelper.sqrt(d1 * d1 + d3 * d3) * 0.2F;
            entityarrow.shoot(d1, d2 + (double) f, d3, 1.6F, 12.0F);
            this.world.spawnEntity(entityarrow);
        }
    }

    public static class EntityArrowCustom extends EntityTippedArrow {

        public EntityArrowCustom(World a) {
            super(a);
        }

        public EntityArrowCustom(World worldIn, double x, double y, double z) {
            super(worldIn, x, y, z);
        }

        public EntityArrowCustom(World worldIn, EntityLivingBase shooter) {
            super(worldIn, shooter);
        }
    }

    // Date: 08/05/2019 22:42:21
    // Template version 1.1
    // Java generated by Techne
    // Keep in mind that you still need to fill in some blanks
    // - ZeuX
    public static class ModelNew extends ModelBase {

        // fields
        ModelRenderer body;
        ModelRenderer leg1;
        ModelRenderer leg2;
        ModelRenderer leg3;
        ModelRenderer leg4;
        ModelRenderer leg5;
        ModelRenderer leg6;
        ModelRenderer leg7;
        ModelRenderer leg8;
        ModelRenderer leg9;
        ModelRenderer horn1;
        ModelRenderer horn2;
        ModelRenderer horn3;

        public ModelNew() {
            textureWidth = 256;
            textureHeight = 32;
            body = new ModelRenderer(this, 18, 4);
            body.addBox(-6F, -10F, -7F, 14, 18, 10);
            body.setRotationPoint(0F, 6F, 2F);
            body.setTextureSize(256, 32);
            body.mirror = true;
            setRotation(body, 1.570796F, 0F, 0F);
            leg1 = new ModelRenderer(this, 106, 16);
            leg1.addBox(-3F, 7F, -2F, 10, 11, 4);
            leg1.setRotationPoint(-1F, 10F, 6F);
            leg1.setTextureSize(256, 32);
            leg1.mirror = true;
            setRotation(leg1, 1.745329F, 0F, 0F);
            leg2 = new ModelRenderer(this, 73, 8);
            leg2.addBox(0F, 0F, -2F, 6, 4, 4);
            leg2.setRotationPoint(-2F, 7F, 23F);
            leg2.setTextureSize(256, 32);
            leg2.mirror = true;
            setRotation(leg2, 1.48353F, 0F, 0F);
            leg3.mirror = true;
            leg3 = new ModelRenderer(this, 0, 16);
            leg3.addBox(-3F, 0F, -3F, 3, 10, 1);
            leg3.setRotationPoint(-1F, 10.5F, 17F);
            leg3.setTextureSize(256, 32);
            leg3.mirror = true;
            setRotation(leg3, 0.0174533F, 0.8726646F, 1.919862F);
            leg3.mirror = false;
            leg4 = new ModelRenderer(this, 71, 16);
            leg4.addBox(-1F, 0F, -3F, 3, 10, 1);
            leg4.setRotationPoint(1F, 8F, 27F);
            leg4.setTextureSize(256, 32);
            leg4.mirror = true;
            setRotation(leg4, 0F, -0.8726646F, -1.48353F);
            leg5 = new ModelRenderer(this, 100, 0);
            leg5.addBox(-1F, 0F, -2F, 11, 7, 8);
            leg5.setRotationPoint(-3.5F, 10F, 7F);
            leg5.setTextureSize(256, 32);
            leg5.mirror = true;
            setRotation(leg5, 1.570796F, 0F, 0F);
            leg6 = new ModelRenderer(this, 148, 2);
            leg6.addBox(0F, 0F, -3F, 3, 10, 1);
            leg6.setRotationPoint(3F, 10.5F, 17F);
            leg6.setTextureSize(256, 32);
            leg6.mirror = true;
            setRotation(leg6, 0F, -0.8726646F, -1.919862F);
            leg7 = new ModelRenderer(this, 144, 16);
            leg7.addBox(-3F, -1F, -3F, 5, 14, 2);
            leg7.setRotationPoint(-3F, 9F, 1F);
            leg7.setTextureSize(256, 32);
            leg7.mirror = true;
            setRotation(leg7, 0F, 0.8726646F, 1.22173F);
            leg8 = new ModelRenderer(this, 87, 16);
            leg8.addBox(-3F, 0F, -3F, 3, 10, 1);
            leg8.setRotationPoint(1F, 9F, 27F);
            leg8.setTextureSize(256, 32);
            leg8.mirror = true;
            setRotation(leg8, 0F, 0.8726646F, 1.48353F);
            leg9 = new ModelRenderer(this, 163, 16);
            leg9.addBox(-1F, -1F, -3F, 5, 14, 2);
            leg9.setRotationPoint(5F, 10F, 1F);
            leg9.setTextureSize(256, 32);
            leg9.mirror = true;
            setRotation(leg9, 0F, -0.8726646F, -1.256637F);
            horn1 = new ModelRenderer(this, 0, 8);
            horn1.addBox(0F, 0F, 0F, 2, 1, 6);
            horn1.setRotationPoint(0F, 1F, -12F);
            horn1.setTextureSize(256, 32);
            horn1.mirror = true;
            setRotation(horn1, 0F, 0F, 0F);
            horn2 = new ModelRenderer(this, 0, 0);
            horn2.addBox(0F, 0F, 0F, 3, 1, 6);
            horn2.setRotationPoint(-0.5F, 2F, -9F);
            horn2.setTextureSize(256, 32);
            horn2.mirror = true;
            setRotation(horn2, 0F, 0F, 0F);
            horn3 = new ModelRenderer(this, 165, 8);
            horn3.addBox(0F, 0F, 0F, 1, 1, 6);
            horn3.setRotationPoint(0.5F, 1.5F, -16F);
            horn3.setTextureSize(256, 32);
            horn3.mirror = true;
            setRotation(horn3, 0F, 0F, 0F);
        }

        public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
            super.render(entity, f, f1, f2, f3, f4, f5);
            setRotationAngles(f, f1, f2, f3, f4, f5, entity);
            body.render(f5);
            leg1.render(f5);
            leg2.render(f5);
            leg3.render(f5);
            leg4.render(f5);
            leg5.render(f5);
            leg6.render(f5);
            leg7.render(f5);
            leg8.render(f5);
            leg9.render(f5);
            horn1.render(f5);
            horn2.render(f5);
            horn3.render(f5);
        }

        private void setRotation(ModelRenderer model, float x, float y, float z) {
            model.rotateAngleX = x;
            model.rotateAngleY = y;
            model.rotateAngleZ = z;
        }

        public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
            super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
        }
    }
}