Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

Часть функционала ColisionDisabler | Expensive 3.1

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
23 Сен 2024
Сообщения
305
Реакции
0
Выберите загрузчик игры
  1. Прочие моды
салют югейм, я перенёс с excellent recode кализион дизейблер на expensive 3.1, пастерки празднуйте, ориг тема - https://yougame.biz/threads/349576/
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.

код: ниже
люти пастер код:
Expand Collapse Copy
package vesence.dlc.modules.impl.player;

import com.google.common.eventbus.Subscribe;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.vector.Vector3d;
import vesence.dlc.events.EventUpdate;
import vesence.dlc.modules.api.Category;
import vesence.dlc.modules.api.Module;
import vesence.dlc.modules.api.ModuleSystem;
import vesence.dlc.modules.api.ServerCategory;
import vesence.dlc.modules.impl.player.MoveEvent;
import vesence.dlc.modules.settings.impl.BooleanSetting;
import vesence.dlc.modules.settings.impl.ModeListSetting;
import vesence.dlc.utils.render.PlayerUtil;


[USER=270918]@Getter[/USER]
@Accessors(fluent = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@ModuleSystem(name = "yougame салют салам", type = Category.Movement, description = "пиздец с югейма", server = ServerCategory.NO)
public class CollisionDisabler extends Module {

    public static CollisionDisabler getInstance() {

        return null;
    }

    private final ModeListSetting collisionSettings = new ModeListSetting("Не замедлятся в",
            new BooleanSetting("Паутине", true),
            new BooleanSetting("Сладких ягодах", true)
    );

    private boolean inWeb = false;
    private boolean inSweetBerries = false;

    [USER=1474073]@Subscribe[/USER]
    public void onUpdate(EventUpdate event) {
        if (mc.player == null || mc.world == null) return;

        BlockPos playerPos = new BlockPos(mc.player.getPosX(), mc.player.getPosY(), mc.player.getPosZ());
        inWeb = mc.world.getBlockState(playerPos).getBlock() == Blocks.COBWEB ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.COBWEB;

        inSweetBerries = mc.world.getBlockState(playerPos).getBlock() == Blocks.SWEET_BERRY_BUSH ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.SWEET_BERRY_BUSH;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdown();
        }
        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdown();
        }
    }

    [USER=1474073]@Subscribe[/USER]
    public void onMove(MoveEvent event) {
        if (mc.player == null) return;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdownMovement(event);
        }

        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdownMovement(event);
        }
    }

    private void preventWebSlowdown() {
        if (mc.player == null) return;
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }

    private void preventWebSlowdownMovement(MoveEvent event) {
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }
    private void preventSweetBerrySlowdown() {
        if (mc.player == null) return;
        Vector3d zeroVector = new Vector3d(0.0D, 0.0D, 0.0D);
        mc.player.setMotionMultiplier(Blocks.SWEET_BERRY_BUSH.getDefaultState(), zeroVector);
    }

    private void preventSweetBerrySlowdownMovement(MoveEvent event) {

    }

    [USER=1367676]@override[/USER]
    public boolean onDisable() {
        super.onDisable();
        inWeb = false;
        inSweetBerries = false;
        return false;
    }
}
 
салют югейм, я перенёс с excellent recode кализион дизейблер на expensive 3.1, пастерки празднуйте, ориг тема - https://yougame.biz/threads/349576/
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.

код: ниже
люти пастер код:
Expand Collapse Copy
package vesence.dlc.modules.impl.player;

import com.google.common.eventbus.Subscribe;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.vector.Vector3d;
import vesence.dlc.events.EventUpdate;
import vesence.dlc.modules.api.Category;
import vesence.dlc.modules.api.Module;
import vesence.dlc.modules.api.ModuleSystem;
import vesence.dlc.modules.api.ServerCategory;
import vesence.dlc.modules.impl.player.MoveEvent;
import vesence.dlc.modules.settings.impl.BooleanSetting;
import vesence.dlc.modules.settings.impl.ModeListSetting;
import vesence.dlc.utils.render.PlayerUtil;


[USER=270918]@Getter[/USER]
@Accessors(fluent = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@ModuleSystem(name = "yougame салют салам", type = Category.Movement, description = "пиздец с югейма", server = ServerCategory.NO)
public class CollisionDisabler extends Module {

    public static CollisionDisabler getInstance() {

        return null;
    }

    private final ModeListSetting collisionSettings = new ModeListSetting("Не замедлятся в",
            new BooleanSetting("Паутине", true),
            new BooleanSetting("Сладких ягодах", true)
    );

    private boolean inWeb = false;
    private boolean inSweetBerries = false;

    [USER=1474073]@Subscribe[/USER]
    public void onUpdate(EventUpdate event) {
        if (mc.player == null || mc.world == null) return;

        BlockPos playerPos = new BlockPos(mc.player.getPosX(), mc.player.getPosY(), mc.player.getPosZ());
        inWeb = mc.world.getBlockState(playerPos).getBlock() == Blocks.COBWEB ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.COBWEB;

        inSweetBerries = mc.world.getBlockState(playerPos).getBlock() == Blocks.SWEET_BERRY_BUSH ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.SWEET_BERRY_BUSH;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdown();
        }
        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdown();
        }
    }

    [USER=1474073]@Subscribe[/USER]
    public void onMove(MoveEvent event) {
        if (mc.player == null) return;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdownMovement(event);
        }

        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdownMovement(event);
        }
    }

    private void preventWebSlowdown() {
        if (mc.player == null) return;
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }

    private void preventWebSlowdownMovement(MoveEvent event) {
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }
    private void preventSweetBerrySlowdown() {
        if (mc.player == null) return;
        Vector3d zeroVector = new Vector3d(0.0D, 0.0D, 0.0D);
        mc.player.setMotionMultiplier(Blocks.SWEET_BERRY_BUSH.getDefaultState(), zeroVector);
    }

    private void preventSweetBerrySlowdownMovement(MoveEvent event) {

    }

    [USER=1367676]@override[/USER]
    public boolean onDisable() {
        super.onDisable();
        inWeb = false;
        inSweetBerries = false;
        return false;
    }
}
не в ту сторону сделал
 
салют югейм, я перенёс с excellent recode кализион дизейблер на expensive 3.1, пастерки празднуйте, ориг тема - https://yougame.biz/threads/349576/
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.

код: ниже
люти пастер код:
Expand Collapse Copy
package vesence.dlc.modules.impl.player;

import com.google.common.eventbus.Subscribe;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.vector.Vector3d;
import vesence.dlc.events.EventUpdate;
import vesence.dlc.modules.api.Category;
import vesence.dlc.modules.api.Module;
import vesence.dlc.modules.api.ModuleSystem;
import vesence.dlc.modules.api.ServerCategory;
import vesence.dlc.modules.impl.player.MoveEvent;
import vesence.dlc.modules.settings.impl.BooleanSetting;
import vesence.dlc.modules.settings.impl.ModeListSetting;
import vesence.dlc.utils.render.PlayerUtil;


[USER=270918]@Getter[/USER]
@Accessors(fluent = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@ModuleSystem(name = "yougame салют салам", type = Category.Movement, description = "пиздец с югейма", server = ServerCategory.NO)
public class CollisionDisabler extends Module {

    public static CollisionDisabler getInstance() {

        return null;
    }

    private final ModeListSetting collisionSettings = new ModeListSetting("Не замедлятся в",
            new BooleanSetting("Паутине", true),
            new BooleanSetting("Сладких ягодах", true)
    );

    private boolean inWeb = false;
    private boolean inSweetBerries = false;

    [USER=1474073]@Subscribe[/USER]
    public void onUpdate(EventUpdate event) {
        if (mc.player == null || mc.world == null) return;

        BlockPos playerPos = new BlockPos(mc.player.getPosX(), mc.player.getPosY(), mc.player.getPosZ());
        inWeb = mc.world.getBlockState(playerPos).getBlock() == Blocks.COBWEB ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.COBWEB;

        inSweetBerries = mc.world.getBlockState(playerPos).getBlock() == Blocks.SWEET_BERRY_BUSH ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.SWEET_BERRY_BUSH;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdown();
        }
        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdown();
        }
    }

    [USER=1474073]@Subscribe[/USER]
    public void onMove(MoveEvent event) {
        if (mc.player == null) return;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdownMovement(event);
        }

        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdownMovement(event);
        }
    }

    private void preventWebSlowdown() {
        if (mc.player == null) return;
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }

    private void preventWebSlowdownMovement(MoveEvent event) {
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }
    private void preventSweetBerrySlowdown() {
        if (mc.player == null) return;
        Vector3d zeroVector = new Vector3d(0.0D, 0.0D, 0.0D);
        mc.player.setMotionMultiplier(Blocks.SWEET_BERRY_BUSH.getDefaultState(), zeroVector);
    }

    private void preventSweetBerrySlowdownMovement(MoveEvent event) {

    }

    [USER=1367676]@override[/USER]
    public boolean onDisable() {
        super.onDisable();
        inWeb = false;
        inSweetBerries = false;
        return false;
    }
}
Если напастишь Phase/noclip на exp 3.1 то будет рили круто если оно на хвхбудет работать
 
салют югейм, я перенёс с excellent recode кализион дизейблер на expensive 3.1, пастерки празднуйте, ориг тема - https://yougame.biz/threads/349576/
ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.

код: ниже
люти пастер код:
Expand Collapse Copy
package vesence.dlc.modules.impl.player;

import com.google.common.eventbus.Subscribe;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.vector.Vector3d;
import vesence.dlc.events.EventUpdate;
import vesence.dlc.modules.api.Category;
import vesence.dlc.modules.api.Module;
import vesence.dlc.modules.api.ModuleSystem;
import vesence.dlc.modules.api.ServerCategory;
import vesence.dlc.modules.impl.player.MoveEvent;
import vesence.dlc.modules.settings.impl.BooleanSetting;
import vesence.dlc.modules.settings.impl.ModeListSetting;
import vesence.dlc.utils.render.PlayerUtil;


[USER=270918]@Getter[/USER]
@Accessors(fluent = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@ModuleSystem(name = "yougame салют салам", type = Category.Movement, description = "пиздец с югейма", server = ServerCategory.NO)
public class CollisionDisabler extends Module {

    public static CollisionDisabler getInstance() {

        return null;
    }

    private final ModeListSetting collisionSettings = new ModeListSetting("Не замедлятся в",
            new BooleanSetting("Паутине", true),
            new BooleanSetting("Сладких ягодах", true)
    );

    private boolean inWeb = false;
    private boolean inSweetBerries = false;

    [USER=1474073]@Subscribe[/USER]
    public void onUpdate(EventUpdate event) {
        if (mc.player == null || mc.world == null) return;

        BlockPos playerPos = new BlockPos(mc.player.getPosX(), mc.player.getPosY(), mc.player.getPosZ());
        inWeb = mc.world.getBlockState(playerPos).getBlock() == Blocks.COBWEB ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.COBWEB;

        inSweetBerries = mc.world.getBlockState(playerPos).getBlock() == Blocks.SWEET_BERRY_BUSH ||
                mc.world.getBlockState(playerPos.up()).getBlock() == Blocks.SWEET_BERRY_BUSH;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdown();
        }
        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdown();
        }
    }

    [USER=1474073]@Subscribe[/USER]
    public void onMove(MoveEvent event) {
        if (mc.player == null) return;
        if (inWeb && collisionSettings.getValueByName("Паутине").get()) {
            preventWebSlowdownMovement(event);
        }

        if (inSweetBerries && collisionSettings.getValueByName("Сладких ягодах").get()) {
            preventSweetBerrySlowdownMovement(event);
        }
    }

    private void preventWebSlowdown() {
        if (mc.player == null) return;
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }

    private void preventWebSlowdownMovement(MoveEvent event) {
        if (PlayerUtil.isPlayerInWeb()) {
        }
    }
    private void preventSweetBerrySlowdown() {
        if (mc.player == null) return;
        Vector3d zeroVector = new Vector3d(0.0D, 0.0D, 0.0D);
        mc.player.setMotionMultiplier(Blocks.SWEET_BERRY_BUSH.getDefaultState(), zeroVector);
    }

    private void preventSweetBerrySlowdownMovement(MoveEvent event) {

    }

    [USER=1367676]@override[/USER]
    public boolean onDisable() {
        super.onDisable();
        inWeb = false;
        inSweetBerries = false;
        return false;
    }
}
Это нихуя не дизайблер а ты просто лимит повышаешь
 
Назад
Сверху Снизу