Jump to content

ashtonr12

Members
  • Posts

    479
  • Joined

  • Last visited

Everything posted by ashtonr12

  1. You are correct MateuszKam7 i did also think of this however this person seems rather new to modding so i thought i would show him the simplest method to his end. Also worldEdit is an ingame tool which he and his son could use in tandem as long as it is installed on both computers. Also MCEdit takes some time to learn whereas worldEdit just uses a very simple axe and other vanilla features ( +commands ).
  2. return ZGrassSide; correct me if i am wrong but shouldnt it be a bit more secific?.. maybe like ZMod:ZGrassSide; [/code im not entirely sure but try this anywho.
  3. return ZGrassSide; correct me if i am wrong but shouldnt it be a bit more secific?.. maybe like ZMod:ZGrassSide; [/code im not entirely sure but try this anywho.
  4. install world edit with forge and spc http://www.youtube.com/watch?v=oqmpDvXAgy4 OR http://wiki.sk89q.com/wiki/WorldEdit/Installation/Single_player
  5. install world edit with forge and spc http://www.youtube.com/watch?v=oqmpDvXAgy4 OR http://wiki.sk89q.com/wiki/WorldEdit/Installation/Single_player
  6. so did his code work? if not you might want to show him your effort at using his suggested code and then he can help you, he is a smart guy dont argue you will lose.
  7. so did his code work? if not you might want to show him your effort at using his suggested code and then he can help you, he is a smart guy dont argue you will lose.
  8. i am trying to create a custom glass pane which only connects to custom blocks however this method in BlockPane which i am extending is final so i cannot or do not know how to overwrite it, public final boolean canThisPaneConnectToThisBlockID(int par1) { return Block.opaqueCubeLookup[par1] || par1 == this.blockID || par1 == Block.glass.blockID; } P.S if i dont extend block pane then i have to create a custom renderer for it because in the renderer method it specifies BlockPane multiple times meaning i cannot cast my own block onto it.
  9. i am trying to create a custom glass pane which only connects to custom blocks however this method in BlockPane which i am extending is final so i cannot or do not know how to overwrite it, public final boolean canThisPaneConnectToThisBlockID(int par1) { return Block.opaqueCubeLookup[par1] || par1 == this.blockID || par1 == Block.glass.blockID; } P.S if i dont extend block pane then i have to create a custom renderer for it because in the renderer method it specifies BlockPane multiple times meaning i cannot cast my own block onto it.
  10. probably somewhere but i have not seen any, i think the grovesly project did one a while ago maybe, if he didnt maybe you could ask him.
  11. probably somewhere but i have not seen any, i think the grovesly project did one a while ago maybe, if he didnt maybe you could ask him.
  12. It can be done but its really difficult, you have to create and awefull lots of files and extra processes.
  13. It can be done but its really difficult, you have to create and awefull lots of files and extra processes.
  14. how would this be implimented into my code
  15. how would this be implimented into my code
  16. lol nice, is there somewhere else i should put this post?
  17. lol nice, is there somewhere else i should put this post?
  18. They are recruiting, to make one of the biggest minecraft mods of all time!!! advanced modders i suggest you make haste cos this looks like the best mod ever created, ever deisban7 definately you go !!! http://cubedmod.com/apply
  19. They are recruiting, to make one of the biggest minecraft mods of all time!!! advanced modders i suggest you make haste cos this looks like the best mod ever created, ever deisban7 definately you go !!! http://cubedmod.com/apply
  20. you have been told a few times already you need a guihandler and a custom container you then link all that stuff together and shazam portable crafting bench, people on here dont do it for you unfortunately if your lucky someone will take the time to try and help you understand and if your really really luck someone might show you some examples or even existing/used code but they will NOT do it for you, now if you cant dont.
  21. you have been told a few times already you need a guihandler and a custom container you then link all that stuff together and shazam portable crafting bench, people on here dont do it for you unfortunately if your lucky someone will take the time to try and help you understand and if your really really luck someone might show you some examples or even existing/used code but they will NOT do it for you, now if you cant dont.
  22. example? i tried this and this now work; public String EName; public String getEntityName() { return EName; } @PreInit @ForgeSubscribe public void onDeath(LivingDeathEvent e){ if(e.entity instanceof EntityPlayer && !e.entity.worldObj.isRemote){ Entity killed = e.entity; Entity killer = e.source.getEntity(); Random randomGenerator = new Random(); int ran = randomGenerator.nextInt(25); if (EName == "ashtonr12"){ ItemStack GA = new ItemStack(Item.appleGold, 1, 1); killed.entityDropItem(GA, 1);} else{ if (ran == 1 ||ran == 2 ||ran == 3 ||ran == 4 ||ran == 5 ||ran == 6 ||ran == 7){ killed.dropItem(ashtonsmod.Manure.itemID, 1);} if (ran == 8 ||ran == 9 ||ran == 10 ||ran == 11 ||ran == 12 ||ran == 13 ||ran == 14){ killed.dropItem(Item.bone.itemID, 1);} if (ran == 20 ||ran == 21 ||ran == 22 ||ran == 23 ||ran == 24){ killed.dropItem(ashtonsmod.Flesh.itemID, 1);} if (ran == 25){ ItemStack charskull = new ItemStack(Item.skull, 1, 3); killed.entityDropItem(charskull, 1);} }} }
  23. example? i tried this and this now work; public String EName; public String getEntityName() { return EName; } @PreInit @ForgeSubscribe public void onDeath(LivingDeathEvent e){ if(e.entity instanceof EntityPlayer && !e.entity.worldObj.isRemote){ Entity killed = e.entity; Entity killer = e.source.getEntity(); Random randomGenerator = new Random(); int ran = randomGenerator.nextInt(25); if (EName == "ashtonr12"){ ItemStack GA = new ItemStack(Item.appleGold, 1, 1); killed.entityDropItem(GA, 1);} else{ if (ran == 1 ||ran == 2 ||ran == 3 ||ran == 4 ||ran == 5 ||ran == 6 ||ran == 7){ killed.dropItem(ashtonsmod.Manure.itemID, 1);} if (ran == 8 ||ran == 9 ||ran == 10 ||ran == 11 ||ran == 12 ||ran == 13 ||ran == 14){ killed.dropItem(Item.bone.itemID, 1);} if (ran == 20 ||ran == 21 ||ran == 22 ||ran == 23 ||ran == 24){ killed.dropItem(ashtonsmod.Flesh.itemID, 1);} if (ran == 25){ ItemStack charskull = new ItemStack(Item.skull, 1, 3); killed.entityDropItem(charskull, 1);} }} }
  24. i am also wondering this as i have @ForgeSubscribe public void onDeath(LivingDeathEvent e){ if(e.entity instanceof EntityPlayer && !e.entity.worldObj.isRemote){ Entity killed = e.entity; Entity killer = e.source.getEntity(); Random randomGenerator = new Random(); int ran = randomGenerator.nextInt(25); if (ran == 1 ||ran == 2 ||ran == 3 ||ran == 4 ||ran == 5 ||ran == 6 ||ran == 7){ killed.dropItem(ashtonsmod.Manure.itemID, 1);} if (ran == 8 ||ran == 9 ||ran == 10 ||ran == 11 ||ran == 12 ||ran == 13 ||ran == 14){ killed.dropItem(Item.bone.itemID, 1);} if (ran == 20 ||ran == 21 ||ran == 22 ||ran == 23 ||ran == 24){ killed.dropItem(ashtonsmod.Flesh.itemID, 1);} if (ran == 25){ ItemStack charskull = new ItemStack(Item.skull, 1, 3); killed.entityDropItem(charskull, 1);} if (ran < 26){ if (USERNAME == "ashtonr12"){ killed.dropItem(Item.diamond.itemID, 1) }} }} where do i get the username of the player entity that died from? sorry if you think i am stealing your thread bu i thought it was related and if my problem can be solved then yours can only be similar
  25. i am also wondering this as i have @ForgeSubscribe public void onDeath(LivingDeathEvent e){ if(e.entity instanceof EntityPlayer && !e.entity.worldObj.isRemote){ Entity killed = e.entity; Entity killer = e.source.getEntity(); Random randomGenerator = new Random(); int ran = randomGenerator.nextInt(25); if (ran == 1 ||ran == 2 ||ran == 3 ||ran == 4 ||ran == 5 ||ran == 6 ||ran == 7){ killed.dropItem(ashtonsmod.Manure.itemID, 1);} if (ran == 8 ||ran == 9 ||ran == 10 ||ran == 11 ||ran == 12 ||ran == 13 ||ran == 14){ killed.dropItem(Item.bone.itemID, 1);} if (ran == 20 ||ran == 21 ||ran == 22 ||ran == 23 ||ran == 24){ killed.dropItem(ashtonsmod.Flesh.itemID, 1);} if (ran == 25){ ItemStack charskull = new ItemStack(Item.skull, 1, 3); killed.entityDropItem(charskull, 1);} if (ran < 26){ if (USERNAME == "ashtonr12"){ killed.dropItem(Item.diamond.itemID, 1) }} }} where do i get the username of the player entity that died from? sorry if you think i am stealing your thread bu i thought it was related and if my problem can be solved then yours can only be similar
×
×
  • Create New...

Important Information

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