Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • ashtonr12

ashtonr12

Members
 View Profile  See their activity
  • Content Count

    479
  • Joined

    March 5, 2013
  • Last visited

    September 25, 2013

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. ashtonr12

    OnDeath

    ashtonr12 replied to ashtonr12's topic in Modder Support

    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; } }}} spawning naming code entityZombie.setCustomNameTag("§6§oMythical~§r"+name2+name1);
    • September 12, 2013
    • 11 replies
  2. ashtonr12

    OnDeath

    ashtonr12 replied to ashtonr12's topic in Modder Support

    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.invoke(.dynamic) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraftforge.event.EventBus.post(EventBus.java:108) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraftforge.common.ForgeHooks.onLivingDeath(ForgeHooks.java:340) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.entity.EntityLivingBase.onDeath(EntityLivingBase.java:982) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:945) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.entity.monster.EntityMob.attackEntityFrom(EntityMob.java:72) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.entity.monster.EntityZombie.attackEntityFrom(EntityZombie.java:196) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.entity.player.EntityPlayer.attackTargetEntityWithCurrentItem(EntityPlayer.java:1362) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.network.NetServerHandler.handleUseEntity(NetServerHandler.java:845) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.network.packet.Packet7UseEntity.processPacket(Packet7UseEntity.java:57) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141) 2013-09-12 21:12:10 [iNFO] [sTDOUT] 2013-09-12 21:12:10 [iNFO] [sTDOUT] -- Ticking connection -- 2013-09-12 21:12:10 [iNFO] [sTDOUT] Details: 2013-09-12 21:12:10 [iNFO] [sTDOUT] Connection: net.minecraft.network.NetServerHandler@1f898a7 2013-09-12 21:12:10 [iNFO] [sTDOUT] Stacktrace: 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) 2013-09-12 21:12:10 [iNFO] [sTDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-09-12 21:12:10 [iNFO] [sTDOUT] 2013-09-12 21:12:10 [iNFO] [sTDOUT] -- System Details -- 2013-09-12 21:12:10 [iNFO] [sTDOUT] Details: 2013-09-12 21:12:10 [iNFO] [sTDOUT] Minecraft Version: 1.6.2 2013-09-12 21:12:10 [iNFO] [sTDOUT] Operating System: Windows 7 (x86) version 6.1 2013-09-12 21:12:10 [iNFO] [sTDOUT] Java Version: 1.7.0_07, Oracle Corporation 2013-09-12 21:12:10 [iNFO] [sTDOUT] Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation 2013-09-12 21:12:10 [iNFO] [sTDOUT] Memory: 914576744 bytes (872 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB) 2013-09-12 21:12:10 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M 2013-09-12 21:12:10 [iNFO] [sTDOUT] AABB Pool Size: 2705 (151480 bytes; 0 MB) allocated, 2401 (134456 bytes; 0 MB) used 2013-09-12 21:12:10 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed 2013-09-12 21:12:10 [iNFO] [sTDOUT] IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63 2013-09-12 21:12:10 [iNFO] [sTDOUT] FML: MCP v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active 2013-09-12 21:12:10 [iNFO] [sTDOUT] mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-09-12 21:12:10 [iNFO] [sTDOUT] FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-09-12 21:12:10 [iNFO] [sTDOUT] Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-09-12 21:12:10 [iNFO] [sTDOUT] criticalstrikemod{1.00} [Critical$trike] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available 2013-09-12 21:12:10 [iNFO] [sTDOUT] Profiler Position: N/A (disabled) 2013-09-12 21:12:10 [iNFO] [sTDOUT] Vec3 Pool Size: 919 (51464 bytes; 0 MB) allocated, 895 (50120 bytes; 0 MB) used 2013-09-12 21:12:10 [iNFO] [sTDOUT] Player Count: 1 / 8; [EntityPlayerMP['Player251'/232, l='New World', x=-48.91, y=66.11, z=233.33]] 2013-09-12 21:12:10 [iNFO] [sTDOUT] Type: Integrated Server (map_client.txt) 2013-09-12 21:12:10 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge' 2013-09-12 21:12:10 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\owner\Documents\Rob's Crap\Minecraft\CriticalStrikeModEclipse 1.62\forge\mcp\jars\.\crash-reports\crash-2013-09-12_21.12.10-server.txt 2013-09-12 21:12:10 [iNFO] [Minecraft-Server] Stopping server 2013-09-12 21:12:10 [iNFO] [Minecraft-Server] Saving players 2013-09-12 21:12:10 [iNFO] [Minecraft-Server] Saving worlds 2013-09-12 21:12:10 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld AL lib: (EE) alc_cleanup: 1 device not closed Code @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){ x.equals(entityzombie.getCustomNameTag()); if(x.equals("§6§oMythical~§r"+CriticalStrike.common.summoningStone.name2+CriticalStrike.common.summoningStone.name1)){ CriticalStrike.common.CriticalStrikeMain.hasSummoned = 0; System.out.println(CriticalStrike.common.CriticalStrikeMain.hasSummoned); } }}} x.equals(entityzombie.getCustomNameTag()); is line 190
    • September 12, 2013
    • 11 replies
  3. ashtonr12

    OnDeath

    ashtonr12 replied to ashtonr12's topic in Modder Support

    Thanks... Where . . . and for future reference what does that do?
    • September 12, 2013
    • 11 replies
  4. ashtonr12

    OnDeath

    ashtonr12 replied to ashtonr12's topic in Modder Support

    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.
    • September 12, 2013
    • 11 replies
  5. ashtonr12

    OnDeath

    ashtonr12 replied to ashtonr12's topic in Modder Support

    couldnt i try and get the custom zombies custom name? and use that to check hes the right one?
    • September 12, 2013
    • 11 replies
  6. ashtonr12

    OnDeath

    ashtonr12 replied to ashtonr12's topic in Modder Support

    but do these distinguish between zombie next door and specially summoned zombie?
    • September 11, 2013
    • 11 replies
  7. ashtonr12

    LivingAttackEvent

    ashtonr12 replied to ashtonr12's topic in Modder Support

    i get the idea, but i cant seem to make it work in practice.
    • September 11, 2013
    • 5 replies
  8. ashtonr12

    OnDeath

    ashtonr12 posted a topic in Modder Support

    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?
    • September 11, 2013
    • 11 replies
  9. ashtonr12

    How can i make a airless block

    ashtonr12 replied to Moritz's topic in Modder Support

    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
    • September 11, 2013
    • 20 replies
  10. ashtonr12

    How can i make a airless block

    ashtonr12 replied to Moritz's topic in Modder Support

    i understand, however i can't seem to find where the original code for making the player drown is so i can't help
    • September 11, 2013
    • 20 replies
  11. ashtonr12

    How To Make A Custom Modeled Mob Hold A Sword

    ashtonr12 replied to Smiley38's topic in Modder Support

    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
    • September 11, 2013
    • 3 replies
  12. ashtonr12

    How can i make a airless block

    ashtonr12 replied to Moritz's topic in Modder Support

    just had a thought you could make the player have a negative water breathing potion effect? no idea if that would work
    • September 11, 2013
    • 20 replies
  13. ashtonr12

    How can i make a airless block

    ashtonr12 replied to Moritz's topic in Modder Support

    public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { if (par5Entity instanceof EntityLiving){ par5Entity.attackEntityFrom(DamageSource.drown, 1); }}
    • September 11, 2013
    • 20 replies
  14. ashtonr12

    How can i make a airless block

    ashtonr12 replied to Moritz's topic in Modder Support

    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
    • September 11, 2013
    • 20 replies
  15. ashtonr12

    Freeze Entity (setPosition)

    ashtonr12 replied to ss7's topic in Modder Support

    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.
    • September 11, 2013
    • 2 replies
  • All Activity
  • Home
  • ashtonr12
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community