Jump to content

drok0920

Forge Modder
  • Posts

    443
  • Joined

  • Last visited

Everything posted by drok0920

  1. it extends EntityMob, i want it to be a new villager but i cant seem to get EntityAgeable it work
  2. Hello, I have been using this method of my mob's attributes but they don't seem to care what the speed is set to. Can someone help? Method public void applyEntityAtributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(10.0D); this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(100.0D); this.getEntityAttribute(SharedMonsterAttributes.knockbackResistance).setBaseValue(10.0D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(1.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D); } it doesn't matter what value i put in for speed it always is the same speed
  3. Well thank you, I figured out how to do it through the onUpdate method i did it like this. @Override public void onUpdate(ItemStack stack, World world, Entity entity, int i1, boolean b1) { if(stack.getItemDamage() == 1) { if(entity.fallDistance > 3F) { entity.fallDistance = 0.0F; }
  4. wait would how would i get this to work ONLY if the player has my custom item?
  5. Ok i will look into that.
  6. Hello MCF forums, I would like to know how to make the player take no fall damage while my custom item is in there inventory. I have tried entity.addVelocity() in my onUpdate Method. But it doesn't seed to do anything except me me jump higher. Please help.
  7. This is what i found on the forums but it does not seem to work and gives me an error http://pastebin.com/NbK68kJQ
  8. Hello MCF forums, I am making a slab block that has meta data. it appears that the meta data does not work. I also need each meta data to have its own texture. I have never worked with meta data blocks before so give me a break if this is a nooby question. Please help.
  9. Ah thank you that's why it wont work i will try that soon to see if it fixed it.
  10. @larsgerrits thank you it worked
  11. Hello MCF forums, I would like to know how to fix my block. It is supposed to act like a slab but ONLY the BOTTOM of the slab(so not stack-able). Here is my block class and a picture of how it actually renders. Picture: http://s1308.photobucket.com/user/Taco_Does_MC/media/Minecraft%20Pictures/Mods/2014-07-11_110707_zpsddfddb18.png.html Block Class package team.flock.drok0920.BOW.Blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; public class AlfitarianFloorBlock extends Block { protected AlfitarianFloorBlock(Material p_i45394_1_) { super(p_i45394_1_); this.setCreativeTab(CreativeTabs.tabBlock); this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F); } public boolean renderAsNormalBlock() { return false; } @SideOnly(Side.CLIENT) public int getRenderBlockPass() { return 1; } } Please help me i dont know what im doing wrong. Thank you, Drok
  12. Can someone please help?
  13. Hello MCF forum, I would like to know how i would make it so when a players nbt tag equals a certain int and the player presses "F" it fires fire particle like a flame thrower. I have no clue how i would go about doing this as i have used the key binding tut on the wiki but it just crashes on start up and i dont know how to send packets to allow this if nessesary.
  14. @Kriki98 Why does everyone spell my name wrong
  15. @Toastrackenigma i took a good hour one day and just messed around with the lighting for blocks and it turns out that anything higher than 1.0F darkens it and 0.0F(or mabey it was 0.1F) made the texture appear to glow.
  16. Thank you i actually tried that before but it didnt come up in Eclipse's sugestions box, it turns out i just misspelled it.
  17. Ok like i said before i never worked with chat related thing until now so i dont know how i would do that.
  18. Yeh i found that out by looking into some entity classes now it works but it comes up with this: http://s1308.photobucket.com/user/Taco_Does_MC/media/Minecraft%20Pictures/Mods/2014-07-08_151619_zpsb3162e0c.png.html here is the method that i used for it in my EntityClass: http://pastebin.com/vqFPf0hn
  19. Oh LOL but how do i get that player that killed it? EDIT: im not good with list ok im sorry!
  20. @Mitchellbrine Ok so i was doing that but what list is it (theres four of them when i try to import it)
  21. Ok i will mess around with it a little. If you happen to find out whats wrong please tell me.
  22. here is my old and new classes respectively: http://pastebin.com/RV1JpA66 and http://pastebin.com/MbN1CVtZ
  23. What would i use for the actual text i have never worked with text in MC Forge
  24. Ikr could it be that fact that it uses the same class as my portal block?(i just realized this)
×
×
  • Create New...

Important Information

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