Jump to content

nidico100

Members
  • Posts

    41
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

nidico100's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. is it possible to get when a block is generally moved?
  2. I need an Blockevent when the block is pushed by an piston upwards
  3. 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
  4. i just found an 1.6 tutorial, which doesn't work in 1.7.10 and a coremod for 1.8
  5. i only knew that method how to do the other?
  6. 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
  7. 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
  8. but i need it for special model right?
  9. 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"); } }
  10. i got it, but now i need to know why the block can't be moved by a piston
  11. okay, thanks for your help today i will ask a friend of mine, which programs in his job with java
  12. yeah i will try, could you say me how to add something to original source code? like new methods?
  13. that's how it's defined in 1.8: public void onLanded(World worldIn, Entity entityIn) { entityIn.motionY = 0.0D; }
×
×
  • Create New...

Important Information

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