Вопрос Таргетитем

Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2024
Сообщения
126
Реакции[?]
2
Поинты[?]
0
сука я ебал хули это дерьмо не работает блять
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);
}
}
}
 
Начинающий
Статус
Оффлайн
Регистрация
30 Май 2024
Сообщения
52
Реакции[?]
0
Поинты[?]
0
Начинающий
Статус
Оффлайн
Регистрация
8 Мар 2024
Сообщения
562
Реакции[?]
2
Поинты[?]
2K
сука я ебал хули это дерьмо не работает блять
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);
}
}
}
это пиздец
за 300 руб продам идеальный код
за 100 рублей продам реади код
 
Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2024
Сообщения
126
Реакции[?]
2
Поинты[?]
0
Сверху Снизу