Начинающий
- Статус
- Оффлайн
- Регистрация
- 6 Янв 2024
- Сообщения
- 85
- Реакции
- 1
- Выберите загрузчик игры
- Fabric
Пожалуйста, авторизуйтесь для просмотра ссылки.
хз фановая функция может где-то будет полезной, работает по принциму
java:
@Native(type = Native.Type.VMProtectBeginUltra)
private void handlePistonBoost() {
if (mc.world == null || mc.player == null) return;
BlockPos playerPos = mc.player.getBlockPos();
int radius = 4;
for (int x = -radius; x <= radius; x++) {
for (int y = -radius; y <= radius; y++) {
for (int z = -radius; z <= radius; z++) {
BlockPos checkPos = playerPos.add(x, y, z);
BlockEntity entity = mc.world.getBlockEntity(checkPos);
if (entity instanceof PistonBlockEntity piston) {
if (piston.isExtending()) {
if (mc.player.getBoundingBox().expand(0.2).intersects(piston.getCollisionShape(mc.world, checkPos).getBoundingBox().offset(checkPos))) {
Vec3d currentVel = mc.player.getVelocity();
mc.player.setVelocity(currentVel.x, 0, currentVel.z);
mc.player.jump();
float speed = 1.2F;
mc.player.addVelocity(0, speed, 0);
return;
}
}
}
}
}
}
}