Начинающий
-
Автор темы
- #1
сука я ебал хули это дерьмо не работает блять
Java:
@FunctionRegister(name = "TargetItem", type = Category.Player)
public class TargetItem extends Function {
private ItemEntity itemEntity;
private ItemEntity target;
private Vector3d vector3d;
public void RotateHead(Entity entity) {
if (itemEntity.getItem().getItem().getName().toString().equals(Items.DIAMOND));
}
public void setTarget(TickEvent tickEvent) {
if (mc.player != null && mc.world != null)
if (target != null) {
Vector3d itemPos = target.getPositionVec();
Vector3d direction = player.getLookVec().normalize();
Vector3d cameraPos = itemPos.add(direction.scale(-mc.player.getDistanceEyePos(mc.player)));
mc.renderViewEntity.setPosition(cameraPos.x, cameraPos.y + target.getHeight() / 2.0, cameraPos.z);
mc.renderViewEntity.rotationYaw = player.rotationYaw;
mc.renderViewEntity.rotationPitch = player.rotationPitch;
this.RotateHead(mc.player);
}
}
}