• 0

    posted a message on Type mismatch: cannot convert from Item to int
    Quote from lolwhuttehfuu

    I don't understand this.. This is my code.

    EntityKingSpider:
    package net.minecraft.src;
    import java.util.Random;
    import java.util.List;
    public class EntityKingSpider extends EntityMob
    {
    	public EntityKingSpider(World par1World)
    	{
    		super(par1World);
    		texture = "/mob/kingspider.png";
    		setSize(1.4F, 0.9F);
    		isImmuneToFire = true;
    		moveSpeed = 1.0F;
    		getNavigator().setBreakDoors(true);
    		tasks.addTask(1, new EntityAIAttackOnCollide(this, 0.25F, true));
    		tasks.addTask(2, new EntityAIMoveTowardsTarget(this, 0.22F, 32F));
    		tasks.addTask(3, new EntityAISwimming(this));
    		tasks.addTask(7, new EntityAIWander(this, 0.3F));
    		tasks.addTask(8, new EntityAIWatchClosest(this, net.minecraft.src.EntityLiving.class, 10F));
    		tasks.addTask(9, new EntityAIOpenDoor(this, true));
    		tasks.addTask(10, new EntityAILookIdle(this));
    		tasks.addTask(11, new EntityAIMoveTwardsRestriction(this, 0.3F));
    		targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));
    		targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntitySpider.class, 16F, 0, false, true));
    		targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityBlaze.class, 16F, 0, false, true));
    		targetTasks.addTask(4, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityZombie.class, 16F, 0, false, true));
    		targetTasks.addTask(5, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntitySkeleton.class, 16F, 0, false, true));
    		targetTasks.addTask(6, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntitySlime.class, 16F, 0, false, true));
    		targetTasks.addTask(7, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntitySilverfish.class, 16F, 0, false, true));
    		targetTasks.addTask(8, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityEnderman.class, 16F, 0, false, true));
    		targetTasks.addTask(9, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityMagmaCube.class, 16F, 0, false, true));
    		targetTasks.addTask(10, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityCaveSpider.class, 16F, 0, false, true));
    		targetTasks.addTask(11, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityCreeper.class, 16F, 0, false, true));
    		targetTasks.addTask(12, new EntityAINearestAttackableTarget(this, net.minecraft.src.EntityOcelot.class, 16F, 0, false, true));
    	
    	  
    	  
    }
    
    
    	  
    	public boolean isAIEnabled()
    {
    			 return true;
    }
    	protected void entityInit()
    	{
    		super.entityInit();
    		dataWatcher.addObject(16, new Byte((byte)0));
    	}
    	/**
    	 * Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons
    	 * use this to react to sunlight and start to burn.
    	 */
    	public void onLivingUpdate()
    	{
    		super.onLivingUpdate();
    	}
    	/**
    	 * Called to update the entity's position/logic.
    	 */
    	public void onUpdate()
    	{
    		super.onUpdate();
    		if (!worldObj.isRemote)
    		{
    			func_40148_a(isCollidedHorizontally);
    		}
    	}
    	public int getMaxHealth()
    	{
    		return 100;
    	}
    	/**
    	 * Returns the Y offset from the entity's position for any entity riding this one.
    	 */
    	public double getMountedYOffset()
    	{
    		return (double)height * 0.75D - 0.5D;
    	}
    	/**
    	 * returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to
    	 * prevent them from trampling crops
    	 */
    	protected boolean canTriggerWalking()
    	{
    		return false;
    	}
    	/**
    	 * Finds the closest player within 16 blocks to attack, or null if this Entity isn't interested in attacking
    	 * (Animals, Spiders at day, peaceful PigZombies).
    	 */
    	protected Entity findPlayerToAttack()
    	{
    		float f = getBrightness(1.0F);
    		if (f < 0.5F)
    		{
    			double d = 16D;
    			return worldObj.getClosestVulnerablePlayerToEntity(this, d);
    		}
    		else
    		{
    			return null;
    		}
    	}
    	/**
    	 * Returns the sound this mob makes while it's alive.
    	 */
    	protected String getLivingSound()
    	{
    		return "mob.spider";
    	}
    	/**
    	 * Returns the sound this mob makes when it is hurt.
    	 */
    	protected String getHurtSound()
    	{
    		return "mob.spiderhurt";
    	}
    	/**
    	 * Returns the sound this mob makes on death.
    	 */
    	protected String getDeathSound()
    	{
    		return "mob.spiderdeath";
    	}
    	/**
    	 * Basic mob attack. Default to touch of death in EntityCreature. Overridden by each mob to define their attack.
    	 */
    	protected void attackEntity(Entity par1Entity, float par2)
    	{
    		float f = getBrightness(1.0F);
    		if (f > 0.5F && rand.nextInt(100) == 0)
    		{
    			entityToAttack = null;
    			return;
    		}
    		if (par2 > 2.0F && par2 < 6F && rand.nextInt(10) == 0)
    		{
    			if (onGround)
    			{
    				double d = par1Entity.posX - posX;
    				double d1 = par1Entity.posZ - posZ;
    				float f1 = MathHelper.sqrt_double(d * d + d1 * d1);
    				motionX = (d / (double)f1) * 0.5D * 0.80000001192092896D + motionX * 0.20000000298023224D;
    				motionZ = (d1 / (double)f1) * 0.5D * 0.80000001192092896D + motionZ * 0.20000000298023224D;
    				motionY = 0.40000000596046448D;
    			}
    		}
    		else
    		{
    			super.attackEntity(par1Entity, par2);
    		}
    	}
    	/**
    	 * (abstract) Protected helper method to write subclass entity data to NBT.
    	 */
    	public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
    	{
    		super.writeEntityToNBT(par1NBTTagCompound);
    	}
    	/**
    	 * (abstract) Protected helper method to read subclass entity data from NBT.
    	 */
    	public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
    	{
    		super.readEntityFromNBT(par1NBTTagCompound);
    	}
    	/**
    	 * Returns the item ID for the item the mob drops on death.
    	 */
      public int getDropItemId()
    	{
    			return mod_Blockium.supertribalIngot;
    	}
    
    	/**
    	 * returns true if this entity is by a ladder, false otherwise
    	 */
    	public boolean isOnLadder()
    	{
    		return func_40149_l_();
    	}
    	/**
    	 * Sets the Entity inside a web block.
    	 */
    	public void setInWeb()
    	{
    	}
    	/**
    	 * How large the spider should be scaled.
    	 */
    	public float kingspiderScaleAmount()
    	{
    		return 1.6F;
    	}
    	/**
    	 * Get this Entity's EnumCreatureAttribute
    	 */
    	public EnumCreatureAttribute getCreatureAttribute()
    	{
    		return EnumCreatureAttribute.ARTHROPOD;
    	}
    	public boolean isPotionApplicable(PotionEffect par1PotionEffect)
    	{
    		if (par1PotionEffect.getPotionID() == Potion.poison.id)
    		{
    			return false;
    		}
    		else
    		{
    			return super.isPotionApplicable(par1PotionEffect);
    		}
    	}
    	public boolean func_40149_l_()
    	{
    		return (dataWatcher.getWatchableObjectByte(16) & 1) != 0;
    	}
    	public void func_40148_a(boolean par1)
    	{
    		byte byte0 = dataWatcher.getWatchableObjectByte(16);
    		if (par1)
    		{
    			byte0 |= 1;
    		}
    		else
    		{
    			byte0 &= 0xfe;
    		}
    		dataWatcher.updateObject(16, Byte.valueOf(byte0));
    	}
    	protected boolean canDespawn()
    	{
    					return false;
    	}
    }


    public int getDropItemId()
    {
        return mod_Blockium.supertribalIngot;
    }

    Should be:
    public int getDropItemId()
    {
        return mod_Blockium.supertribalIngot.shiftedIndex;
    }

    shiftedIndex is the field that contains the item id, this is what you want.
    Posted in: Modification Development
  • 0

    posted a message on [1.2.5] Minecraft Console
    Quote from Drizak

    Please update this!

    They have an dev update, http://dl.dropbox.com/u/8016309/Minecraft%20Console/Minecraft_Console_Snapshot.zip
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.2] [RPG] IluminantOrb - Searching builders!
    Quote from Taymastar

    Looks cool

    Thx

    Quote from Captain_Cake

    Im interested in building. My IGN is btmboy

    Great, updated the op with link to the builder form.
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on [1.2] [RPG] IluminantOrb - Searching builders!
    Builder form available here: http://iluminantorb.net/?page_id=18

    Description:
    IluminantOrb is a brand new RPG server running SimpleClans and Towny, to make it simple.
    We are also running BetterShop together with iConomy.
    We are pretty small at the moment, as we've haven some configuration problems and wasn't really sure what we was going to have on it yet.
    As we're not have much experience with Minecraft hosting or specifically Bukkit, we haven't found every plugin we want yet, or managed to make it integrate with the others.
    We can make our own plugins if needed though, but we prefer to install existing ones.
    Just ask if their's something you want us to install, change configuration, pretty much everyhing.

    We have a redstone world too, though it's not accessible by everyone
    as we haven't finished our cuboid protection system yet.
    If you're interested in getting access to the redstone world use the form available at

    Hosting:
    We have a 2gb server hosted by Get-Sourced which we are very satisfied with.
    They have great support and the servers are superb, after our opinion at least.
    We have 32 player slots at the moment, but may expand it if the server is almost full all the time.


    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on Taking mod requests.
    Hi, I'm a little bored tonight so I though I'll make mods on request. I'm not going to make big mods though, I may do it if they interests me tho ;)

    Give me a detailed description of what you want and I see what I can do.
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Java errors
    They should, but it can be a problem with the class path too.
    Posted in: Mods Discussion
  • 0

    posted a message on Java errors
    Quote from Wirsbo

    Hey. Tried to start minecraft from Eclipse (decompiled from MCP).. When I start it, I get these errors:
    Exception in thread "main" java.lang.ExceptionInInitializerError
    	at net.minecraft.src.StatCollector.<clinit>(StatCollector.java:14)
    	at net.minecraft.src.StatList.<clinit>(StatList.java:23)
    	at net.minecraft.src.Item.<clinit>(Item.java:552)
    	at net.minecraft.src.Block.<clinit>(Block.java:956)
    	at net.minecraft.src.TextureWaterFX.<init>(TextureWaterFX.java:22)
    	at net.minecraft.client.Minecraft.<init>(Minecraft.java:210)
    	at net.minecraft.src.MinecraftImpl.<init>(MinecraftImpl.java:21)
    	at net.minecraft.client.Minecraft.startMainThread(Minecraft.java:1955)
    	at net.minecraft.client.Minecraft.startMainThread1(Minecraft.java:1941)
    	at net.minecraft.client.Minecraft.main(Minecraft.java:2001)
    Caused by: java.lang.NullPointerException
    	at java.util.Properties$LineReader.readLine(Unknown Source)
    	at java.util.Properties.load0(Unknown Source)
    	at java.util.Properties.load(Unknown Source)
    	at net.minecraft.src.StringTranslate.<init>(StringTranslate.java:22)
    	at net.minecraft.src.StringTranslate.<clinit>(StringTranslate.java:13)
    	... 10 more

    I tried installing the newest JDK and setting up the path. It didn't work. What is wrong?

    Prove me wrong, but I think I've experienced that problem when the language file(s) was missing.
    Posted in: Mods Discussion
  • 0

    posted a message on [1.2.5] Minecraft Console
    Quote from ragger

    Couldn't wait for an update so I tried this out. Works, though too bad it uses the font of the texturepack. HArd to see what's written sometimes in some texturepacks.

    Just me forgetting some of the new changes in FontRenderer.
    This version should work, haven't found any texturepack that messes it's up now.
    Posted in: Minecraft Mods
  • 0

    posted a message on Will this laptop work (Asus X53E-SX928V) ?
    Quote from tehCH33F1337

    No it isnt, you can custom build a PC far better for less than 500.

    Maybe, but not in Norway. And tho, I have a good custom built desktop, so the laptop will only be used at school, and when I'm at friends. When we're havin' lan parties, my did drives me so I can go with the desktop(it's a big tower, a "little" heavy).
    Posted in: Discussion
  • 0

    posted a message on Will this laptop work (Asus X53E-SX928V) ?
    Quote from Ed_Stickywicket

    DEFINATELY go for the GT 540M if you can afford it. It is a great GPU, especially when you are getting it for cheap and with an i5 to boot! You may even be able to play games like Skyrim on Medium settings with those specs.

    Okay, thanks for the info. Seems like one of the best computer in the class.
    It's an sale right now, so instead 920$ it now costs 750$, so it's a good deal yeah.
    Posted in: Discussion
  • 0

    posted a message on Will this laptop work (Asus X53E-SX928V) ?
    Aight, thanks.
    Will an Acer with Core i3 370M 2.40GHz and GeForce GT 520M be better?
    They got another one with Core i5 480M 2,66Ghz and GeForce GT 540M too.
    Posted in: Discussion
  • 0

    posted a message on Will this laptop work (Asus X53E-SX928V) ?
    I came over this little computer today, and it seems like a good choice, especially since it normally costs 780$ and now costs 580$ (new year sale as always ^^ ).
    I will primary use it for school, but I also want a computer that I can use to play Minecraft at friends.
    So here are some specs, which I wonder how good will work for it.
    CPU: Intel Core i5-2430M - 2,4 GHz
    RAM: 4 GB DDR3
    Graphics: Intel HD 3000
    HDD: 500GB
    OS: Windows 7 Home Premium 64 bit
    Posted in: Discussion
  • 0

    posted a message on [1.2.5] Minecraft Console
    Anyone except Xioyn having problems with my unofficial version?
    Posted in: Minecraft Mods
  • 4

    posted a message on [1.2.5] Minecraft Console
    I've made an unofficial update for this(only needed to update it to the newest mappings).

    Download:
    bit.ly/yB0mHd

    Source:
    bit.ly/xTi3ai
    Posted in: Minecraft Mods
  • 0

    posted a message on Will this laptop run Minecraft?
    Quote from tehCH33F1337

    Yeah, itd do well. but the 1.8 ghz could be far better

    Aight, ty.
    Yeah, but I compared this CPU with the one in a laptop I bought a couple of years ago(but the screen is defect), on cpubenchmark.net, and the old one got 1165 points and this one got 1632. In comparison my desktop's cpu got 3977 points(tho I have it overclocked, so it's probably a little higher), so it isn't to bad.

    I guess I know the answer if I'd asked which you would've prefer, this one, or the old one :tongue.gif:
    Posted in: Discussion
  • To post a comment, please .