-
[1.7.10] Is there an Event which define when a block is moved by a piston?
is it possible to get when a block is generally moved?
-
[1.7.10] Is there an Event which define when a block is moved by a piston?
I need an Blockevent when the block is pushed by an piston upwards
-
[1.7.10] Block can't be moved by piston
ISBRH is not available in 1.7.10 anymore. I tried it another way. I tried with overriding getmobilityflag 0= don't move 1= don't move just drops 2= don't move
-
[1.7.10] Block can't be moved by piston
i just found an 1.6 tutorial, which doesn't work in 1.7.10 and a coremod for 1.8
-
[1.7.10] Block can't be moved by piston
thanks bye
-
[1.7.10] Block can't be moved by piston
i only knew that method how to do the other?
-
[1.7.10] Block can't be moved by piston
no it doesn't that's the model: that's the block: that's tileentity of slimeblock: that's the renderer that's the item renderer
-
[1.7.10] On landing on Block flying back in the sky don't work
i got it, but now i need to know why the block can't be moved by a piston What material is it? Does it have a TileEntity? Both of these are very important questions you should have already asked yourself. it has tileentity because it has a special model
-
[1.7.10] Block can't be moved by piston
but i need it for special model right?
-
[1.7.10] Block can't be moved by piston
Why can't the block be moved with a piston? package net.bplaced.nidico100.Downgrade; import scala.tools.nsc.ConsoleWriter; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.bplaced.nidico100.Downgrade.DowngradeMod; import net.bplaced.nidico100.Downgrade.TileEntityBlockSlime; import net.bplaced.nidico100.Downgrade.Proxis.DowngradeModClientProxy; public class BlockSlime extends BlockContainer { public BlockSlime(Material material) { super(material); this.slipperiness = 0.8F; this.setHardness(0F); this.setResistance(0F); this.setStepSound(soundTypeCloth); } //FUNCTION BOUNCING public void onFallenUpon (World worldIn, int x, int y, int z, Entity entityIn, float fallDistance) { if (entityIn.isSneaking()) { super.onFallenUpon(worldIn, x, y, z, entityIn, fallDistance); } else { entityIn.moveEntity(0, fallDistance/2, 0); entityIn.fallDistance = 0.0F; } } public void onEntityCollidedWithBlock(World worldIn, int x, int y, int z, Entity entityIn) { if (Math.abs(entityIn.motionY) < 0.1D && !entityIn.isSneaking()) { double d0 = 0.4D + Math.abs(entityIn.motionY) * 0.2D; entityIn.motionX *= d0; entityIn.motionZ *= d0; } super.onEntityCollidedWithBlock(worldIn, x, y, z, entityIn); } //OVERRIDE @Override public int getRenderBlockPass() { return 1; } @Override public int getRenderType() { return -1; } @Override public boolean isOpaqueCube() { return false; } @Override public boolean renderAsNormalBlock() { return false; } @Override public boolean canRenderInPass(int pass) { DowngradeModClientProxy.renderPass = pass; return true; } @Override public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) { return new TileEntityBlockSlime(); } //BLOCK ICON @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconRegister) { this.blockIcon = iconRegister.registerIcon("downgrademod:slime"); } }
-
[1.7.10] On landing on Block flying back in the sky don't work
i got it, but now i need to know why the block can't be moved by a piston
-
[1.7.10] On landing on Block flying back in the sky don't work
okay, thanks for your help today i will ask a friend of mine, which programs in his job with java
-
[1.7.10] On landing on Block flying back in the sky don't work
yeah i will try, could you say me how to add something to original source code? like new methods?
-
[1.7.10] On landing on Block flying back in the sky don't work
is there any possibility?
-
[1.7.10] On landing on Block flying back in the sky don't work
that's how it's defined in 1.8: public void onLanded(World worldIn, Entity entityIn) { entityIn.motionY = 0.0D; }
IPS spam blocked by CleanTalk.