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

ashtonr12

Members
  • Content Count

    479
  • Joined

  • Last visited

Community Reputation

3 Neutral

About ashtonr12

  • Rank
    Diamond Finder

Converted

  • Gender
    Undisclosed

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. ok i am a moron is this better? no errors but it doesnt work... event @ForgeSubscribe public void onDeath(LivingDeathEvent e){ Entity killed = e.entity; Entity killer = e.source.getEntity(); EntityZombie entityzombie = new EntityZombie(e.entity.worldObj); if(killer instanceof EntityPlayer && !e.entity.worldObj.isRemote){ if(e.entity instanceof EntityZombie){ if(entityzombie.getCustomNameTag().equals("§6§oMythical~§r"+CriticalStrike.common.summoningStone.name2+CriticalStrike.common.summoningStone.name1)){ CriticalStrike.common.CriticalStrikeMain.hasSummoned = 0;
  2. Error A detailed walkthrough of the error, its code path and all known details is as follows: 2013-09-12 21:12:10 [iNFO] [sTDOUT] --------------------------------------------------------------------------------------- 2013-09-12 21:12:10 [iNFO] [sTDOUT] 2013-09-12 21:12:10 [iNFO] [sTDOUT] -- Head -- 2013-09-12 21:12:10 [iNFO] [sTDOUT] Stacktrace: 2013-09-12 21:12:10 [iNFO] [sTDOUT] at CriticalStrike.common.CriticalStrikeMain.onDeath(CriticalStrikeMain.java:190) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraftforge.event.ASMEventHandler_5_CriticalStrikeMain_onDeath_LivingDeathEvent.
  3. Thanks... Where . . . and for future reference what does that do?
  4. ok so have done it with the custom name and it seems to work but i cant get the names to match up, in one class i have "entityZombie.setCustomNameTag("Mythical"+name2+name1);" and name1 and name2 and random names. and in my onDeath event i have "x = entityzombie.getCustomNameTag(); if(x == ("Mythical"+CriticalStrike.common.summoningStone.name2+CriticalStrike.common.summoningStone.name1)){ but it doesnt work, i have checked that the event is working i just cant seem to get the zombie? oh and x is a typical string just btw.
  5. couldnt i try and get the custom zombies custom name? and use that to check hes the right one?
  6. but do these distinguish between zombie next door and specially summoned zombie?
  7. i get the idea, but i cant seem to make it work in practice.
  8. i have made an event that spawns a modified zombie, potion effects items, etc. and i have seen that there is the forgehook onlivingdeath and in the zombie class there is an ondeath event, bu i cant seem to figure out how to use them. i want check (from a seperate class that the zombie is created from) that the zombie is dead before i allow somthing, how would i do this? nbt's?
  9. i couldnt see anything in that class, but i have done some digging to try and help and i found that you can maybe use "AttributeModifier" i found this is the potion code, because if you can modify it up for a potion, surely you can modify it down when the player enters the block? not really sure, i am not a very advanced coder
  10. i understand, however i can't seem to find where the original code for making the player drown is so i can't help
  11. you want the entity to actually have a sword or just to look like it does? this might work? protected void addRandomArmor() { this.setCurrentItemOrArmor(0, new ItemStack(Item.swordGold)); } in entity class
  12. just had a thought you could make the player have a negative water breathing potion effect? no idea if that would work
  13. public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { if (par5Entity instanceof EntityLiving){ par5Entity.attackEntityFrom(DamageSource.drown, 1); }}
  14. just had a quick kin through water and dmg files, cant see how to use the bublles bar like in water but you could just set the bounding box to zero and have on entitycolllide with and then make them take suffocation dmg
  15. you could just give the entity potion effect of move slow with power 10 the only problem is that its less effective against other players because they can still move slowly when they jump.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.