Everything posted by thomassu
-
[1.7.2] how to disable mob water jumping? [Solved]
hello, i am creating a mod with a mob, I want the mob does not floats if he is on the water. i thought lets look in the EntityLiving class i found this part of code boolean flag1 = this.isInWater(); boolean flag = this.handleLavaMovement(); if (flag1 || flag) { this.isJumping = this.rand.nextFloat() < 0.8F; } i tried to use this for my code: protected void updateEntityActionState() { boolean flag1 = this.isInWater(); boolean flag = this.handleLavaMovement(); if (flag1 || flag) { this.isJumping = false; } } but it doesnt work, does anyone know how to do this?? thanks for reading
-
[1.7.2] mount entity underwater[Solved]
whatever fixed it
-
[1.7.2] mount entity underwater[Solved]
hello, i am trying to mount a entity, its just a very simple code: entityplayer.mountEntity(this); it works nice, but when the entity goes underwater, you'll dismount, does anyone know how to change this?
-
[1.7.2] custom biome inside another biome
hello, i am trying to create a custom biome inside another biome, just like forest and forestHills. i need help !
-
[1.7.2] world.destroyBlock not working [Solved]
Thanks man, i needed that code!
-
[1.7.2] world.destroyBlock not working [Solved]
hello i am trying with a fuction to destroy a block but the world.destroyBlock isnt there anymore public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6) { if (par1World.getBlock(par2, par3 + 1, par4) == Blocks.dirt) { par1World.destroyBlock(par2, par3 + 1, par4, true); } super.breakBlock(par1World, par2, par3, par4, par5, par6); } i tried par1World.removeTileEntity but that doesnt work as well
-
[1.7.2] Armor effects problem [Solved]
Thanks guys, it works
-
[1.7.2] Armor effects problem [Solved]
i thought that as well, but it doesnt work, and yea flipper are boots
-
[1.7.2] Armor effects problem [Solved]
hey, i updated my mod to 1.7.2, it had a armor effect function but it doesnt work anymore public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack itemStack) { ItemStack flipper = player.getCurrentArmor(1); if (flipper != null ) { if (flipper.getItem() == armorMod.Flippers) { if (player.isInWater()) { player.motionX *= 1.2; player.motionZ *= 1.2; player.jumpMovementFactor *= 1.2; } else { player.motionX *= 0.2; player.motionZ *= 0.2; } } } }
-
[1.7.2] Interact mob with a block [Solved]
thanks it works :DD
-
[1.7.2] Interact mob with a block [Solved]
i am creating a turtle and when you right click with a block there happens something so i tried this: public boolean interact(EntityPlayer par1EntityPlayer) { ItemStack itemstack = par1EntityPlayer.inventory.getCurrentItem(); if (itemstack != null && itemstack.getItem() == Blocks.chest && !par1EntityPlayer.capabilities.isCreativeMode) { } return true; } but it doesnt work because it is itemstack.getItem does anyone know how to do a interact function with a block
-
[1.7.2] How to create spawn eggs in minecraft forge 1.7.2
ok, i tried this in my code: EntityList.addMapping(EntityCrocodile.class, "Crocodile", 5, 113213, 3523523); the egg himself is working, but the name isnt, this was the egg: you can see the name is: entity.Crocodile.name so i thought lets make a .lang file and this is the text in my lang file: entity.Crocodile.name = Crocodile
-
[1.7.2] How to create spawn eggs in minecraft forge 1.7.2
does anyone know how to create spawn eggs with a correct name in minecraft forge 1.7.2? in 1.6.4 i used this code //Eggs public static int getUniqueEntityId() { do { startEntityId++; } while(EntityList.getStringFromID(startEntityId) !=null); return startEntityId; } public static void registerEntityEggs(Class<? extends Entity> entity, int primaryColor, int secundaryColor) { int id = getUniqueEntityId(); EntityList.IDtoClassMapping.put(id, entity); EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secundaryColor)); } but the class: EntityEggInfo is no longer used, so help me !!
-
[1.7.2] net.minecraft.launchwrapper.Launch not found
you may have to download the latest version of eclipse
-
[Tut] Gradle setup: How to setup gradle for Eclipse
thank you boy! you helped me so much, but the last step with the start_client and start_server didnt work for me, but i took that from another tutorial. but the rest was realy helpfull for me!
-
Minecraft 1.7 - News
is it always gonna be forgegradle or will it soon change to the old forgesetup
IPS spam blocked by CleanTalk.