lethinh
Members-
Posts
191 -
Joined
-
Last visited
Everything posted by lethinh
-
I'm currently working on a block that its tile entity can automatically hit the mob. My problem is when I use the Vec3d dot product check if the entity is in the block tile entity hitbox, I realized that the block tile entity won't hit if the mob goes nearer the block. Here is my code: I would greatly appreciated your help! Thanks in advance.
-
it is replaced with worldRenderer.begin(7, DefaultVertexFormats.POSITION_TEX)
-
So far as I have known, there is a method called processRightClick in PlayerControllerMP class. But there is one parameter called hitVec, and I want to calculate it correctly, like this picture: I am wondering if there are anyways to do this. Thanks in advance!
-
[Forge 1.12.2] Some explainations about Tessellator and VertexBuffer?
lethinh replied to lethinh's topic in Modder Support
And how do the method functions in it work ? -
How to check whether there are any entities behind entity or not?
lethinh replied to lethinh's topic in Modder Support
Thanks for your reply. I have got the player and the entity look vec. So I wonder what to do next? -
How to check whether there are any entities behind entity or not?
lethinh replied to lethinh's topic in Modder Support
Thanks for your help but it doesn't seem to work. I saw the method canEntityBeSeen in EntityLivingBase but it is only for blocks.I wonder if there are anyways to make it check Entity? -
How to check whether there are any entities behind entity or not?
lethinh replied to lethinh's topic in Modder Support
No one? Again? -
How to check whether there are any entities behind entity or not?
lethinh replied to lethinh's topic in Modder Support
I have no ideas in this -
I have tried this code: https://pastebin.com/FJqx1RLi , but that doesn't seem to work when the player or the entity has moved. Please help me. Thanks in advance!
-
You should use Minecraft.getMinecraft().timer.timerSpeed