
drok0920
Forge Modder-
Posts
443 -
Joined
-
Last visited
Everything posted by drok0920
-
it extends EntityMob, i want it to be a new villager but i cant seem to get EntityAgeable it work
-
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
-
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; }
-
wait would how would i get this to work ONLY if the player has my custom item?
-
Ok i will look into that.
-
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.
-
This is what i found on the forums but it does not seem to work and gives me an error http://pastebin.com/NbK68kJQ
-
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.
-
[1.7.10] Arrow Like Particle with keyBind and NBT??
drok0920 replied to drok0920's topic in Modder Support
Ah thank you that's why it wont work i will try that soon to see if it fixed it. -
@larsgerrits thank you it worked
-
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
-
[1.7.10] Arrow Like Particle with keyBind and NBT??
drok0920 replied to drok0920's topic in Modder Support
Ok i will do that. -
[1.7.10] Arrow Like Particle with keyBind and NBT??
drok0920 replied to drok0920's topic in Modder Support
Can someone please help? -
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.
-
How to make a block light up the area around it?
drok0920 replied to Toastrackenigma's topic in Modder Support
@Kriki98 Why does everyone spell my name wrong -
How to make a block light up the area around it?
drok0920 replied to Toastrackenigma's topic in Modder Support
@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. -
Thank you i actually tried that before but it didnt come up in Eclipse's sugestions box, it turns out i just misspelled it.
-
Ok like i said before i never worked with chat related thing until now so i dont know how i would do that.
-
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
-
Oh LOL but how do i get that player that killed it? EDIT: im not good with list ok im sorry!
-
@Mitchellbrine Ok so i was doing that but what list is it (theres four of them when i try to import it)
-
Ok i will mess around with it a little. If you happen to find out whats wrong please tell me.
-
here is my old and new classes respectively: http://pastebin.com/RV1JpA66 and http://pastebin.com/MbN1CVtZ
-
What would i use for the actual text i have never worked with text in MC Forge
-
Ikr could it be that fact that it uses the same class as my portal block?(i just realized this)