Jump to content

[1.7.10] Making a Mob explode like a creeper


2FastAssassin

Recommended Posts

Unsolved:

 

Please assist, I dont know what code to use to make my custom mob explode. her is my mob class

package wearethewarriorsmod.mob;

 

import wearethewarriorsmod.WeAreTheWarriorsMod;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.entity.Entity;

import net.minecraft.entity.SharedMonsterAttributes;

import net.minecraft.entity.ai.EntityAIAttackOnCollide;

import net.minecraft.entity.ai.EntityAIAvoidEntity;

import net.minecraft.entity.ai.EntityAICreeperSwell;

import net.minecraft.entity.ai.EntityAIHurtByTarget;

import net.minecraft.entity.ai.EntityAILookIdle;

import net.minecraft.entity.ai.EntityAINearestAttackableTarget;

import net.minecraft.entity.ai.EntityAISwimming;

import net.minecraft.entity.ai.EntityAIWander;

import net.minecraft.entity.ai.EntityAIWatchClosest;

import net.minecraft.entity.effect.EntityLightningBolt;

import net.minecraft.entity.monster.EntityMob;

import net.minecraft.entity.monster.EntitySkeleton;

import net.minecraft.entity.passive.EntityOcelot;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.util.DamageSource;

import net.minecraft.world.World;

 

public class EntityhugMob extends EntityMob {

    private int lastActiveTime;

    private int timeSinceIgnited;

    private int fuseTime = 30;

    private int explosionRadius = 5;

 

    public EntityhugMob(World world){

        super(world);

        this.tasks.addTask(1, new EntityAISwimming(this));

        this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, false));

        this.tasks.addTask(5, new EntityAIWander(this, 0.8D));

        this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));

        this.tasks.addTask(6, new EntityAILookIdle(this));

        this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));

        this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));

        this.setSize(1.5F, 1.5F);

    }

 

    protected void applyEntityAttributes(){

        super.applyEntityAttributes();

        this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.4D);

    }

   

    public boolean isAIEnabled(){

        return true;

    }

 

    public int getMaxSafePointTries(){

        return this.getAttackTarget() == null ? 3 : 3 + (int)(this.getHealth() - 1.0F);

    }

 

    protected void fall(float distance){

        super.fall(distance);

        this.timeSinceIgnited = (int)((float)this.timeSinceIgnited + distance * 1.5F);

 

        if (this.timeSinceIgnited > this.fuseTime - 5){

            this.timeSinceIgnited = this.fuseTime - 5;

        }

    }

 

    protected void entityInit(){

        super.entityInit();

        this.dataWatcher.addObject(16, Byte.valueOf((byte) - 1));

        this.dataWatcher.addObject(17, Byte.valueOf((byte)0));

        this.dataWatcher.addObject(18, Byte.valueOf((byte)0));

    }

 

    public void writeEntityToNBT(NBTTagCompound compound){

        super.writeEntityToNBT(compound);

 

        if (this.dataWatcher.getWatchableObjectByte(17) == 1){

            compound.setBoolean("powered", true);

        }

 

        compound.setShort("Fuse", (short)this.fuseTime);

        compound.setByte("ExplosionRadius", (byte)this.explosionRadius);

        compound.setBoolean("ignited", this.isIgnited());

    }

 

    public void readEntityFromNBT(NBTTagCompound compound){

        super.readEntityFromNBT(compound);

        this.dataWatcher.updateObject(17, Byte.valueOf((byte)(compound.getBoolean("powered") ? 1 : 0)));

 

        if (compound.hasKey("Fuse", 99)){

            this.fuseTime = compound.getShort("Fuse");

        }

 

        if (compound.hasKey("ExplosionRadius", 99)){

            this.explosionRadius = compound.getByte("ExplosionRadius");

        }

 

        if (compound.getBoolean("ignited")){

            this.isOnFire();

        }

    }

 

    public void onUpdate(){

        if (this.isEntityAlive()){

            this.lastActiveTime = this.timeSinceIgnited;

 

            if (this.isIgnited()){

                this.setCreeperState(1);

            }

 

            int i = this.getCreeperState();

 

            if (i > 0 && this.timeSinceIgnited == 0){

                this.playSound("creeper.primed", 1.0F, 0.5F);

            }

 

            this.timeSinceIgnited += i;

 

            if (this.timeSinceIgnited < 0){

                this.timeSinceIgnited = 0;

            }

 

            if (this.timeSinceIgnited >= this.fuseTime){

                this.timeSinceIgnited = this.fuseTime;

                this.explode();

            }

        }

 

        super.onUpdate();

    }

 

    protected String getHurtSound(){

        return "mob.creeper.death";

    }

 

    protected String getDeathSound(){

        return "mob.creeper.death";

    }

 

    public void onDeath(DamageSource source){

        super.onDeath(source);

 

        if (source.getEntity() instanceof EntitySkeleton){

            int i = Item.getIdFromItem(Items.record_13);

            int j = Item.getIdFromItem(Items.record_wait);

            int k = i + this.rand.nextInt(j - i + 1);

            this.dropItem(Item.getItemById(k), 1);

        }

    }

 

    public boolean attackEntityAsMob(Entity entity){

        return true;

    }

 

    public boolean getPowered(){

        return this.dataWatcher.getWatchableObjectByte(17) == 1;

    }

 

    @SideOnly(Side.CLIENT)

    public float getCreeperFlashIntensity(float floatt){

        return ((float)this.lastActiveTime + (float)(this.timeSinceIgnited - this.lastActiveTime) * floatt) / (float)(this.fuseTime - 2);

    }

 

    protected Item getDropItem(){

        return Items.gunpowder;

    }

 

    protected void dropRareDrop(int p_70600_1_)

    {

        switch (this.rand.nextInt(3))

        {

            case 0:

                this.dropItem(WeAreTheWarriorsMod.itemheartshard, 2);

                break;

            case 1:

                this.dropItem(WeAreTheWarriorsMod.itemheartshard, 1);

                break;

            case 2:

                this.dropItem(Items.golden_apple, 1);

        }

    }

 

    public int getCreeperState(){

        return this.dataWatcher.getWatchableObjectByte(16);

    }

 

    public void setCreeperState(int state){

        this.dataWatcher.updateObject(16, Byte.valueOf((byte)state));

    }

 

    public void onStruckByLightning(EntityLightningBolt lightning){

        super.onStruckByLightning(lightning);

        this.dataWatcher.updateObject(17, Byte.valueOf((byte)1));

    }

 

    protected boolean interact(EntityPlayer player){

        ItemStack itemstack = player.inventory.getCurrentItem();

 

        if (itemstack != null && itemstack.getItem() == Items.flint_and_steel){

            this.worldObj.playSoundEffect(this.posX + 0.5D, this.posY + 0.5D, this.posZ + 0.5D, "fire.ignite", 1.0F, this.rand.nextFloat() * 0.4F + 0.8F);

            player.swingItem();

 

            if (!this.worldObj.isRemote){

                this.isOnFire();

                itemstack.damageItem(1, player);

                return true;

            }

        }

 

        return super.interact(player);

    }

 

    private void explode(){

        if (!this.worldObj.isRemote){

            boolean flag = this.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing");

 

            if (this.getPowered()){

                this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)(this.explosionRadius * 2), flag);

            } else {

                this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)this.explosionRadius, flag);

            }

 

            this.setDead();

        }

    }

 

    public boolean isIgnited(){

        return this.dataWatcher.getWatchableObjectByte(18) != 0;

    }

 

    public void isOnFire(){

        this.dataWatcher.updateObject(18, Byte.valueOf((byte)1));

    }

}

 

Link to comment
Share on other sites

If you want your mob to explode like creeper, then why don't you extend EntityCreeper???

 

To be honest, I dont know how to do that, dont get mad please, but how do i do that?

Link to comment
Share on other sites

now it crashes :(

here is my mob class

 

package wearethewarriorsmod.mob;

 

import wearethewarriorsmod.WeAreTheWarriorsMod;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.entity.Entity;

import net.minecraft.entity.SharedMonsterAttributes;

import net.minecraft.entity.ai.EntityAIAttackOnCollide;

import net.minecraft.entity.ai.EntityAIAvoidEntity;

import net.minecraft.entity.ai.EntityAICreeperSwell;

import net.minecraft.entity.ai.EntityAIHurtByTarget;

import net.minecraft.entity.ai.EntityAILookIdle;

import net.minecraft.entity.ai.EntityAINearestAttackableTarget;

import net.minecraft.entity.ai.EntityAISwimming;

import net.minecraft.entity.ai.EntityAIWander;

import net.minecraft.entity.ai.EntityAIWatchClosest;

import net.minecraft.entity.effect.EntityLightningBolt;

import net.minecraft.entity.monster.EntityCreeper;

import net.minecraft.entity.monster.EntityMob;

import net.minecraft.entity.monster.EntitySkeleton;

import net.minecraft.entity.passive.EntityOcelot;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.util.DamageSource;

import net.minecraft.world.World;

 

public class EntityhugMob extends EntityCreeper {

    private int lastActiveTime;

    private int timeSinceIgnited;

    private int fuseTime = 30;

    private int explosionRadius = 5;

 

    public EntityhugMob(World world){

        super(world);

        this.tasks.addTask(1, new EntityAISwimming(this));

        this.tasks.addTask(2, new EntityAICreeperSwell(this));

        this.tasks.addTask(4, new EntityAIAttackOnCollide(this, 1.0D, false));

        this.tasks.addTask(5, new EntityAIWander(this, 0.8D));

        this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));

        this.tasks.addTask(6, new EntityAILookIdle(this));

        this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 0, true));

        this.targetTasks.addTask(2, new EntityAIHurtByTarget(this, false));

        this.setSize(1.5F, 1.5F);

    }

 

    protected void applyEntityAttributes(){

        super.applyEntityAttributes();

        this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.4D);

    }

   

    public boolean isAIEnabled(){

        return true;

    }

 

    public int getMaxSafePointTries(){

        return this.getAttackTarget() == null ? 3 : 3 + (int)(this.getHealth() - 1.0F);

    }

 

    protected void fall(float distance){

        super.fall(distance);

        this.timeSinceIgnited = (int)((float)this.timeSinceIgnited + distance * 1.5F);

 

        if (this.timeSinceIgnited > this.fuseTime - 5){

            this.timeSinceIgnited = this.fuseTime - 5;

        }

    }

 

    protected void entityInit(){

        super.entityInit();

        this.dataWatcher.addObject(16, Byte.valueOf((byte) - 1));

        this.dataWatcher.addObject(17, Byte.valueOf((byte)0));

        this.dataWatcher.addObject(18, Byte.valueOf((byte)0));

    }

 

    public void writeEntityToNBT(NBTTagCompound compound){

        super.writeEntityToNBT(compound);

 

        if (this.dataWatcher.getWatchableObjectByte(17) == 1){

            compound.setBoolean("powered", true);

        }

 

        compound.setShort("Fuse", (short)this.fuseTime);

        compound.setByte("ExplosionRadius", (byte)this.explosionRadius);

        compound.setBoolean("ignited", this.isIgnited());

    }

 

    public void readEntityFromNBT(NBTTagCompound compound){

        super.readEntityFromNBT(compound);

        this.dataWatcher.updateObject(17, Byte.valueOf((byte)(compound.getBoolean("powered") ? 1 : 0)));

 

        if (compound.hasKey("Fuse", 99)){

            this.fuseTime = compound.getShort("Fuse");

        }

 

        if (compound.hasKey("ExplosionRadius", 99)){

            this.explosionRadius = compound.getByte("ExplosionRadius");

        }

 

        if (compound.getBoolean("ignited")){

            this.isOnFire();

        }

    }

 

    public void onUpdate(){

        if (this.isEntityAlive()){

            this.lastActiveTime = this.timeSinceIgnited;

 

            if (this.isIgnited()){

                this.setCreeperState(1);

            }

 

            int i = this.getCreeperState();

 

            if (i > 0 && this.timeSinceIgnited == 0){

                this.playSound("creeper.primed", 1.0F, 0.5F);

            }

 

            this.timeSinceIgnited += i;

 

            if (this.timeSinceIgnited < 0){

                this.timeSinceIgnited = 0;

            }

 

            if (this.timeSinceIgnited >= this.fuseTime){

                this.timeSinceIgnited = this.fuseTime;

                this.explode();

            }

        }

 

        super.onUpdate();

    }

 

    protected String getHurtSound(){

        return "mob.creeper.death";

    }

 

    protected String getDeathSound(){

        return "mob.creeper.death";

    }

 

    public void onDeath(DamageSource source){

        super.onDeath(source);

 

        if (source.getEntity() instanceof EntitySkeleton){

            int i = Item.getIdFromItem(Items.record_13);

            int j = Item.getIdFromItem(Items.record_wait);

            int k = i + this.rand.nextInt(j - i + 1);

            this.dropItem(Item.getItemById(k), 1);

        }

    }

 

    public boolean attackEntityAsMob(Entity entity){

        return true;

    }

 

    public boolean getPowered(){

        return this.dataWatcher.getWatchableObjectByte(17) == 1;

    }

 

    @SideOnly(Side.CLIENT)

    public float getCreeperFlashIntensity(float floatt){

        return ((float)this.lastActiveTime + (float)(this.timeSinceIgnited - this.lastActiveTime) * floatt) / (float)(this.fuseTime - 2);

    }

 

    protected Item getDropItem(){

        return Items.gunpowder;

    }

 

    protected void dropRareDrop(int p_70600_1_)

    {

        switch (this.rand.nextInt(3))

        {

            case 0:

                this.dropItem(WeAreTheWarriorsMod.itemheartshard, 2);

                break;

            case 1:

                this.dropItem(WeAreTheWarriorsMod.itemheartshard, 1);

                break;

            case 2:

                this.dropItem(Items.golden_apple, 1);

        }

    }

 

    public int getCreeperState(){

        return this.dataWatcher.getWatchableObjectByte(16);

    }

 

    public void setCreeperState(int state){

        this.dataWatcher.updateObject(16, Byte.valueOf((byte)state));

    }

 

    public void onStruckByLightning(EntityLightningBolt lightning){

        super.onStruckByLightning(lightning);

        this.dataWatcher.updateObject(17, Byte.valueOf((byte)1));

    }

 

    protected boolean interact(EntityPlayer player){

        ItemStack itemstack = player.inventory.getCurrentItem();

 

        if (itemstack != null && itemstack.getItem() == Items.flint_and_steel){

            this.worldObj.playSoundEffect(this.posX + 0.5D, this.posY + 0.5D, this.posZ + 0.5D, "fire.ignite", 1.0F, this.rand.nextFloat() * 0.4F + 0.8F);

            player.swingItem();

 

            if (!this.worldObj.isRemote){

                this.isOnFire();

                itemstack.damageItem(1, player);

                return true;

            }

        }

 

        return super.interact(player);

    }

 

    private void explode(){

        if (!this.worldObj.isRemote){

            boolean flag = this.worldObj.getGameRules().getGameRuleBooleanValue("mobGriefing");

 

            if (this.getPowered()){

                this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)(this.explosionRadius * 2), flag);

            } else {

                this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)this.explosionRadius, flag);

            }

 

            this.setDead();

        }

    }

 

    public boolean isIgnited(){

        return this.dataWatcher.getWatchableObjectByte(18) != 0;

    }

 

    public void isOnFire(){

        this.dataWatcher.updateObject(18, Byte.valueOf((byte)1));

    }

}

 

Link to comment
Share on other sites

heres the crash, but what I dont understand is that it says something about noise yet it has made my mob stop appearing and it crashes when i try to spawn it in.

 

 

---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 1/06/15 12:11 AM

Description: Unexpected error

 

java.lang.NullPointerException: Unexpected error

at net.minecraft.client.audio.SoundManager$SoundSystemStarterThread.playing(SoundManager.java:547)

at net.minecraft.client.audio.SoundManager.updateAllSounds(SoundManager.java:245)

at net.minecraft.client.audio.SoundHandler.update(SoundHandler.java:224)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2093)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028)

at net.minecraft.client.Minecraft.run(Minecraft.java:951)

at net.minecraft.client.main.Main.main(Main.java:164)

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:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.client.audio.SoundManager$SoundSystemStarterThread.playing(SoundManager.java:547)

at net.minecraft.client.audio.SoundManager.updateAllSounds(SoundManager.java:245)

at net.minecraft.client.audio.SoundHandler.update(SoundHandler.java:224)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player21'/175, l='MpServer', x=-286.14, y=66.75, z=269.39]]

Chunk stats: MultiplayerChunkCache: 270, 270

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (-124,64,240), Chunk: (at 4,4,0 in -8,15; contains blocks -128,0,240 to -113,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Level time: 46581 game time, 6051 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: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 74 total; [EntityBat['Bat'/1, l='MpServer', x=-313.75, y=34.81, z=200.75], EntityBat['Bat'/2, l='MpServer', x=-312.19, y=34.44, z=196.51], EntitySkeleton['Skeleton'/3, l='MpServer', x=-305.91, y=32.00, z=319.50], EntityCreeper['Creeper'/4, l='MpServer', x=-317.53, y=17.00, z=326.97], EntityPig['Pig'/5, l='MpServer', x=-312.97, y=68.00, z=332.84], EntityPig['Pig'/6, l='MpServer', x=-303.22, y=64.00, z=340.38], EntityBat['Bat'/263, l='MpServer', x=-245.25, y=46.05, z=239.28], EntityPig['Pig'/7, l='MpServer', x=-305.47, y=64.00, z=337.47], EntitySlime['Slime'/30, l='MpServer', x=-299.69, y=21.00, z=196.69], EntityBat['Bat'/31, l='MpServer', x=-288.94, y=22.39, z=209.93], EntityCreeper['Creeper'/32, l='MpServer', x=-294.50, y=14.00, z=229.50], EntitySkeleton['Skeleton'/33, l='MpServer', x=-294.41, y=58.00, z=233.16], EntityBat['Bat'/34, l='MpServer', x=-297.53, y=20.10, z=269.75], EntityCreeper['Creeper'/35, l='MpServer', x=-298.94, y=25.00, z=317.66], EntityBat['Bat'/36, l='MpServer', x=-309.70, y=17.00, z=337.81], EntityClientPlayerMP['Player21'/175, l='MpServer', x=-286.14, y=66.75, z=269.39], EntityZombie['Zombie'/176, l='MpServer', x=-333.50, y=32.00, z=311.50], EntityCreeper['Creeper'/177, l='MpServer', x=-320.50, y=15.00, z=332.50], EntityPig['Pig'/49, l='MpServer', x=-276.41, y=69.00, z=198.81], EntityZombie['Zombie'/178, l='MpServer', x=-339.50, y=32.00, z=313.50], EntityZombie['Zombie'/50, l='MpServer', x=-290.59, y=21.00, z=214.75], EntitySheep['Sheep'/179, l='MpServer', x=-360.97, y=63.00, z=224.91], EntityZombie['Zombie'/51, l='MpServer', x=-277.50, y=25.00, z=211.50], EntityCreeper['Creeper'/180, l='MpServer', x=-340.34, y=12.00, z=330.53], EntityZombie['Zombie'/52, l='MpServer', x=-277.50, y=32.00, z=223.50], EntityCreeper['Creeper'/181, l='MpServer', x=-347.50, y=13.00, z=323.50], EntitySkeleton['Skeleton'/53, l='MpServer', x=-285.56, y=53.00, z=219.06], EntityCreeper['Creeper'/54, l='MpServer', x=-276.56, y=33.00, z=230.00], EntitySkeleton['Skeleton'/55, l='MpServer', x=-278.50, y=32.00, z=236.50], EntityZombie['Zombie'/56, l='MpServer', x=-284.22, y=31.00, z=232.09], EntitySkeleton['Skeleton'/57, l='MpServer', x=-292.28, y=58.00, z=232.25], EntityPig['Pig'/58, l='MpServer', x=-285.47, y=66.00, z=224.31], EntityPig['Pig'/59, l='MpServer', x=-272.09, y=64.00, z=235.06], EntityItem['item.tile.doublePlant.sunflower'/60, l='MpServer', x=-272.19, y=62.13, z=267.13], EntityBat['Bat'/61, l='MpServer', x=-284.66, y=19.10, z=286.44], EntityPig['Pig'/62, l='MpServer', x=-295.69, y=67.00, z=326.50], EntityCreeper['Creeper'/194, l='MpServer', x=-352.50, y=24.00, z=335.50], EntityChicken['Chicken'/68, l='MpServer', x=-271.84, y=70.00, z=198.03], EntityZombie['Zombie'/69, l='MpServer', x=-263.50, y=23.00, z=208.50], EntityPig['Pig'/70, l='MpServer', x=-271.41, y=64.00, z=217.84], EntityPig['Pig'/71, l='MpServer', x=-262.69, y=63.00, z=235.47], EntitySkeleton['Skeleton'/72, l='MpServer', x=-269.44, y=16.00, z=270.13], EntityCreeper['Creeper'/203, l='MpServer', x=-360.50, y=24.00, z=338.50], EntityPig['Pig'/75, l='MpServer', x=-265.03, y=64.00, z=270.03], EntityChicken['Chicken'/77, l='MpServer', x=-245.41, y=62.00, z=239.44], EntityBat['Bat'/78, l='MpServer', x=-243.00, y=52.10, z=247.75], EntityBat['Bat'/79, l='MpServer', x=-248.81, y=51.12, z=246.59], EntitySkeleton['Skeleton'/80, l='MpServer', x=-240.50, y=51.00, z=253.50], EntitySkeleton['Skeleton'/81, l='MpServer', x=-254.28, y=50.00, z=278.13], EntityPig['Pig'/82, l='MpServer', x=-249.28, y=63.00, z=296.88], EntityPig['Pig'/83, l='MpServer', x=-240.72, y=63.00, z=300.78], EntityPig['Pig'/84, l='MpServer', x=-250.09, y=63.00, z=289.94], EntityPig['Pig'/85, l='MpServer', x=-251.84, y=66.00, z=336.22], EntityPig['Pig'/88, l='MpServer', x=-236.22, y=64.00, z=229.13], EntityPig['Pig'/89, l='MpServer', x=-240.09, y=64.00, z=248.06], EntitySkeleton['Skeleton'/90, l='MpServer', x=-238.50, y=52.00, z=265.06], EntityBat['Bat'/91, l='MpServer', x=-229.27, y=50.24, z=256.51], EntitySkeleton['Skeleton'/92, l='MpServer', x=-224.88, y=50.00, z=260.31], EntitySkeleton['Skeleton'/93, l='MpServer', x=-231.34, y=56.00, z=269.34], EntityCreeper['Creeper'/94, l='MpServer', x=-239.66, y=48.00, z=280.00], EntityPig['Pig'/95, l='MpServer', x=-234.47, y=66.00, z=284.47], EntityPig['Pig'/96, l='MpServer', x=-236.22, y=67.00, z=281.09], EntityPig['Pig'/98, l='MpServer', x=-223.03, y=67.00, z=286.06], EntityPig['Pig'/99, l='MpServer', x=-215.94, y=66.00, z=293.25], EntityPig['Pig'/100, l='MpServer', x=-209.44, y=65.00, z=293.22], EntityChicken['Chicken'/101, l='MpServer', x=-211.44, y=68.00, z=314.56], EntityZombie['Zombie'/234, l='MpServer', x=-332.50, y=40.00, z=289.50], EntityZombie['Zombie'/247, l='MpServer', x=-299.50, y=21.00, z=278.56], EntityZombie['Zombie'/248, l='MpServer', x=-303.50, y=24.00, z=280.06], EntityZombie['Zombie'/249, l='MpServer', x=-298.50, y=21.00, z=274.50], EntityZombie['Zombie'/250, l='MpServer', x=-299.50, y=21.00, z=272.50], EntityZombie['Zombie'/251, l='MpServer', x=-298.50, y=21.00, z=276.50], EntityZombie['Zombie'/252, l='MpServer', x=-300.56, y=21.00, z=276.44], EntityZombie['Zombie'/253, l='MpServer', x=-296.50, y=21.00, z=278.50]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555)

at net.minecraft.client.Minecraft.run(Minecraft.java:980)

at net.minecraft.client.main.Main.main(Main.java:164)

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:483)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)

at GradleStart.main(Unknown Source)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.8.0_25, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 759740208 bytes (724 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94

FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

watwm{1.0.9} [We Are The Warriors Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: ATI Radeon 3000 Graphics GL version 3.3.10750 Compatibility Profile Context, ATI Technologies Inc.

GL Caps: Using GL 1.3 multitexturing.

Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.

Anisotropic filtering is supported and maximum anisotropy is 16.

Shaders are available because OpenGL 2.1 is supported.

 

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)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Anisotropic Filtering: Off (1)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I was trying to load some mods for 1.19.4 and yes all of them are right and i think some are interfering with each other and I don't know which ones to remove
    • Minecraft has crashed! net.fabricmc.loader.impl.FormattedException: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_310 failed     at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63)     at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:472)     at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)     at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_310 failed     at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427)     at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323)     at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)     at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)     at net.minecraft.client.main.Main.main(Main.java:207)     at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)     ... 2 more Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)     at meteordevelopment.meteorclient.asm.Asm$Transformer.transformClassBytes(Asm.java:102)     at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422)     ... 8 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Redirector breakBlockCheck(Lnet/minecraft/class_746;)Z in reaper.mixins.json:MinecraftClientMixin from mod reaper failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap reaper-refmap.json     at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468)     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1384)     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1062)     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:402)     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:327)     at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:422)     at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403)     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)     ... 12 more  
    • Did some digging on that specific error and found a reddit post. Someone replied that they fixed it by closing Overwolf, so I went into task manager and closed Overwolf before loading up the game. This seems to have fixed it! I guess the error has something to do with Overwolf then. 
    • I'm struggling so hard to find a way to allow players to use my config file to modify where structures are being created. I have checked for events in the documentation but none of them seem to be of use for this. Why pointing Biome is not enough? Well Certain mods like Lost cities use vanilla generation, causing many structures to spawn in, completely disrupting the dimension generation. Is there a way to control dimensional spawning of structures? Please Im still trying very hard to find how to do this.
    • I'm new to modpack making, but familiar with file management and mod development. I cannot locate which mod is causing the crash. If it's more than one, Im not sure how to locate it. Any clues as to whats causing this? I have read through different possible causes but every thing is different, and none of the solves issues are the solution to my problem. This problem started occurring after adding about 5 mods, but once I removed them, the problem continued. It worked fine before.   Here is the crash report.
  • Topics

×
×
  • Create New...

Important Information

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