Hi everyone, first I must say I'm new to modding minecraft and new to Java.
I'm trying to create a new redstone powered block that works like a springboard. It's intended for adventure maps so it's indestructible.
My problem is that when the block is activated by the player(right clicking) everything works fine and the player is launched to the air
but when it's activated by redstone every other entity is launched(pigs, mobs, etc..) EXCEPT for the player.
Anyone can tell me what I'm doing wrong?
I'm working on minecraft version 1.4.7 if that helps.
Here is the block class code: http://paste.minecraftforge.net/view/3677cf49
Here is the problematic function:
private void BumpEntities(World world, int x, int y, int z)
{
List<Entity> list = world.getEntitiesWithinAABB(Entity.class, AxisAlignedBB.getBoundingBox(x, y, z, x+1, y+1, z+1));
for(Entity entity : list)
{
entity.addVelocity(0, Force, 0);
}
}