Ooooh ok, I didn't undertand the reply, i got it, you can give the entityId by passing it as one of the int parameters!
Sorry for disturbing and thanks for reply.
Then maybe you can use:
world.getBlockId(x, y, z)
You can scan the blocks arround the player (supposing you know the position of the player) and know if it's the block you want by the ID. To know the direction you should scan use the strategy i posted before.
Hope to help you now
There is a way to know if player look at +X -X +Z -Z
I do this:
int var6 = MathHelper.floor_double((double)(EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
The variable can take 4 values, from 0 to 3, each case is a direction that the player is looking at (can't remember which is everyone, just try them).
Hope this help
Hi, I have a problem with my entity, it works fine while testing but if i close minecraft (or back to title screen) and load again the same map the entity looks like disappeared but still in the same place, just don't shows the model i made for it and the texture, and more, it is rideable but if I try to ride it again it doesn't work, just if i place another new one.
Any help about this?
I solved it, it was as easy as ussing the function
setSize(float f1, float f2);
to set an appropiate size for the entity and now the player mounts at the high that I want.
Hi to all! I'm developing a mod with a new rideable entity and need some help. I need to know if is it possible to change the size of the entity or something like that becuase when a player rides the entity that i'm making it sits too high from the ground and i want to make it as high as half block high.
Thanks for any reply.