Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bd31971a0 | ||
|
|
3010b164ab | ||
|
|
6cb4656365 |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# jenny's mod 2 100% real
|
||||
|
||||
mod para Minecraft Fabric 26.1.2 que añade algunas cosas QOL, mayormente relacionadas a la cámara.
|
||||
mod para Minecraft Fabric 26.2 que añade algunas cosas QOL, mayormente relacionadas a la cámara.
|
||||
|
||||
## instalación
|
||||
|
||||
@@ -10,7 +10,7 @@ mod para Minecraft Fabric 26.1.2 que añade algunas cosas QOL, mayormente relaci
|
||||
3. descargar el .jar
|
||||
4. moverlo a tu directorio de mods (probablemente `%appdata%/.minecraft/mods`)
|
||||
|
||||
asegúrate de tener una version de Minecraft y Fabric compatibles con el mod (MC `26.1.2`; Fabric `0.19.2`)
|
||||
asegúrate de tener una version de Minecraft y Fabric compatibles con el mod (MC `26.2`; Fabric `0.19.3`)
|
||||
es posible que haya problemas al usarlo junto a otros mods, especialmente junto a otros clientes, pues pueden conflictar entre ellos.
|
||||
|
||||
### para frikis de 200 de iq
|
||||
@@ -56,7 +56,7 @@ algunos módulos tienen teclas asignadas por defecto, asígnales `ESC` para desa
|
||||
<img src="screenshots/hudeditor.png" alt="editor de HUD">
|
||||
<img src="screenshots/colorpicker.png" alt="selector de colores">
|
||||
|
||||
## contibuciones
|
||||
## contribuciones
|
||||
|
||||
sí por favor
|
||||
|
||||
|
||||
+5
-16
@@ -1,31 +1,20 @@
|
||||
# v5.7
|
||||
# v6.0
|
||||
|
||||
## novedades
|
||||
|
||||
actualización a gradle 9.7.0
|
||||
|
||||
interfaz reorganizada en pestañas: módulos, hud, perfiles y macros
|
||||
|
||||
perfiles de configuración: guarda varias configs con nombre y cambia entre ellas sin reiniciar
|
||||
|
||||
macros: asigna una tecla a una lista de comandos o mensajes
|
||||
|
||||
### adiciones
|
||||
|
||||
#### módulos nuevos:
|
||||
|
||||
- cancelador de paquetes: evita que se envíen o reciban ciertos paquetes
|
||||
|
||||
#### comandos nuevos:
|
||||
|
||||
- `$?`: muestra los comandos disponibles y los describe
|
||||
- `$perfil`: gestiona los perfiles de configuración
|
||||
- `$macro`: gestiona las macros
|
||||
#### elementos del HUD nuevos:
|
||||
|
||||
- imagen custom: imagen custom.
|
||||
|
||||
### arreglos / mejoras
|
||||
|
||||
- las rotaciones de los módulos se reparten por prioridad en vez de pisarse entre ellas
|
||||
- el editor del hud ya es una pestaña más de la interfaz, además de su propia pantalla
|
||||
- ahora se guardan correctamente los ajustes de archivo
|
||||
|
||||
## problemas reconocidos
|
||||
|
||||
|
||||
+1
-1
@@ -10,6 +10,6 @@ discord_rpc_version=1.0.3
|
||||
neutrino_version=1.1.0
|
||||
jdk_version=25
|
||||
|
||||
mod_version=5.7
|
||||
mod_version=6.0
|
||||
maven_group=me.retucio
|
||||
archives_base_name=sputnik
|
||||
@@ -26,6 +26,7 @@ import me.retucio.sputnik.ui.hud.HudEditorScreen;
|
||||
import me.retucio.sputnik.ui.screen.UpdateScreen;
|
||||
import me.retucio.sputnik.ui.widgets.buttons.settings.BindButton;
|
||||
import me.retucio.sputnik.ui.widgets.buttons.SettingButton;
|
||||
import me.retucio.sputnik.ui.widgets.buttons.settings.FileButton;
|
||||
import me.retucio.sputnik.ui.widgets.buttons.settings.TextButton;
|
||||
import me.retucio.sputnik.ui.widgets.panels.settings.ClientSettingsPanel;
|
||||
import me.retucio.sputnik.ui.widgets.panels.SettingsPanel;
|
||||
@@ -181,10 +182,15 @@ public class Sputnik implements ClientModInitializer {
|
||||
|
||||
// verifica si algún botón de ajustes está escuchando
|
||||
private boolean isAnySettingButtonFocused() {
|
||||
if (ClickGui.INSTANCE == null) return false;
|
||||
for (SettingsPanel sf : ClickGui.INSTANCE.getSettingsPanels())
|
||||
for (Button sb : sf.getButtons())
|
||||
if ((sb instanceof BindButton b && b.isFocused()) || (sb instanceof TextButton t && t.isFocused()))
|
||||
if ((sb instanceof BindButton b && b.isFocused())
|
||||
|| (sb instanceof TextButton t && t.isFocused())
|
||||
|| (sb instanceof FileButton f && f.isFocused())
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -208,6 +214,7 @@ public class Sputnik implements ClientModInitializer {
|
||||
for (SettingsPanel sf : ClickGui.INSTANCE.getSettingsPanels()) {
|
||||
for (SettingButton<?> sb : sf.getButtons()) {
|
||||
if (sb instanceof BindButton bb) bb.onKey(key, action);
|
||||
if (sb instanceof FileButton fb) fb.onKey(key, action);
|
||||
if (sb instanceof TextButton tb) tb.onKey(key, action);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@ public class ClientConfig {
|
||||
case ListSetting l: value = l.getConfigValues(); break;
|
||||
case ColorSetting c: value = c.getConfigValue(); break;
|
||||
case OptionSetting o: value = o.getConfigName(); break;
|
||||
case FileSetting f: value = f.getValue(); break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
||||
@@ -362,6 +362,7 @@ public class ConfigManager {
|
||||
case ListSetting listSetting -> applyListSetting(listSetting, value);
|
||||
case ColorSetting colorSetting -> applyColorSetting(colorSetting, value);
|
||||
case OptionSetting optionSetting -> applyOptionSetting(optionSetting, value);
|
||||
case FileSetting fileSetting -> applyFileSetting(fileSetting, value);
|
||||
default -> Sputnik.LOGGER.warn(I18nUtil.fmt("sputnik.config.warn.unknownsetting",
|
||||
"watafac queseso: %s", setting.getClass().getSimpleName()));
|
||||
}
|
||||
@@ -477,8 +478,8 @@ public class ConfigManager {
|
||||
}
|
||||
|
||||
private static void applyStringSetting(StringSetting setting, Object value) {
|
||||
if (value instanceof String) {
|
||||
setting.setValue((String) value);
|
||||
if (value instanceof String v) {
|
||||
setting.setValue(v);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -539,6 +540,12 @@ public class ConfigManager {
|
||||
}
|
||||
}
|
||||
|
||||
private static void applyFileSetting(FileSetting setting, Object value) {
|
||||
if (value instanceof String v) {
|
||||
setting.setValue(v);
|
||||
}
|
||||
}
|
||||
|
||||
private static <T> void applyOptionalProperty(Map<?, ?> map, String key, Class<T> type, Consumer<T> setter) {
|
||||
Object value = map.get(key);
|
||||
if (type.isInstance(value)) {
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package me.retucio.sputnik.event.interact;
|
||||
|
||||
import com.github.retucio.neutrino.Event;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class UpdateInventoryEvent extends Event {
|
||||
|
||||
private final List<ItemStack> prev;
|
||||
|
||||
public UpdateInventoryEvent(List<ItemStack> prev) {
|
||||
this.prev = prev;
|
||||
}
|
||||
|
||||
public List<ItemStack> getPrev() {
|
||||
return prev;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package me.retucio.sputnik.mixin.mixins.player;
|
||||
|
||||
import me.retucio.sputnik.Sputnik;
|
||||
import me.retucio.sputnik.event.interact.UpdateInventoryEvent;
|
||||
import net.minecraft.core.NonNullList;
|
||||
import net.minecraft.world.entity.player.Inventory;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
|
||||
@Mixin(Inventory.class)
|
||||
public abstract class InventoryMixin {
|
||||
|
||||
@Shadow @Final
|
||||
private NonNullList<ItemStack> items;
|
||||
|
||||
@Inject(method = "setChanged", at = @At("HEAD"))
|
||||
private void onChange(CallbackInfo ci) {
|
||||
Sputnik.EVENT_BUS.post(new UpdateInventoryEvent(items));
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import me.retucio.sputnik.module.modules.inventory.*;
|
||||
import me.retucio.sputnik.module.modules.misc.*;
|
||||
import me.retucio.sputnik.module.modules.movement.*;
|
||||
import me.retucio.sputnik.module.modules.network.*;
|
||||
import me.retucio.sputnik.module.modules.network.PacketLogger;
|
||||
import me.retucio.sputnik.module.modules.player.*;
|
||||
import me.retucio.sputnik.module.modules.render.*;
|
||||
import me.retucio.sputnik.module.modules.render.CritsPlus;
|
||||
@@ -90,6 +91,7 @@ public class ModuleManager {
|
||||
add(new ChestplateSwitch());
|
||||
add(new CrystalAura());
|
||||
add(new HoldAttack());
|
||||
add(new KillAura());
|
||||
add(new MaceKill());
|
||||
add(new ProjectileTrajectories());
|
||||
add(new SpearKill());
|
||||
@@ -128,6 +130,7 @@ public class ModuleManager {
|
||||
add(new Headhitters());
|
||||
add(new HitboxDesync());
|
||||
add(new InfiniteElytra());
|
||||
add(new ItemMagnet());
|
||||
add(new Jesus());
|
||||
add(new Parkour());
|
||||
add(new ReverseStep());
|
||||
@@ -144,6 +147,7 @@ public class ModuleManager {
|
||||
add(new LogoutSpots());
|
||||
add(new PacketCanceller());
|
||||
add(new PacketDelay());
|
||||
add(new PacketLogger());
|
||||
add(new PacketMine());
|
||||
add(new Reconnect());
|
||||
add(new RPackBypass());
|
||||
@@ -152,6 +156,7 @@ public class ModuleManager {
|
||||
private void addPlayer() {
|
||||
add(new AirPlace());
|
||||
add(new AntiHunger());
|
||||
add(new AutoEat());
|
||||
add(new AutoFish());
|
||||
add(new Capes());
|
||||
add(new FastUse());
|
||||
|
||||
@@ -7,6 +7,7 @@ import me.retucio.sputnik.module.setting.settings.*;
|
||||
import me.retucio.sputnik.ui.hud.HudElement;
|
||||
import me.retucio.sputnik.ui.hud.HudRenderer;
|
||||
import me.retucio.sputnik.ui.hud.HudEditorScreen;
|
||||
import me.retucio.sputnik.ui.hud.elements.CustomImageElement;
|
||||
import me.retucio.sputnik.ui.hud.elements.DynoElement;
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
|
||||
@@ -126,6 +127,12 @@ public class Hud extends Module {
|
||||
Dynosaurs.class, Dynosaurs.SPINOSAURUS
|
||||
));
|
||||
|
||||
public FileSetting customImagePath = sgElements.add(new FileSetting(
|
||||
"ruta de imagen",
|
||||
"ruta de la imagen a renderizar en el elemento de imagen custom",
|
||||
""
|
||||
));
|
||||
|
||||
public Hud() {
|
||||
super("HUD",
|
||||
"superposición de la pantalla con info. adicional",
|
||||
@@ -137,6 +144,11 @@ public class Hud extends Module {
|
||||
DynoElement element = (DynoElement) HudRenderer.INSTANCE.getElement(DynoElement.class);
|
||||
if (element != null) element.reloadTexture();
|
||||
});
|
||||
|
||||
customImagePath.onUpdate(v -> {
|
||||
CustomImageElement element = (CustomImageElement) HudRenderer.INSTANCE.getElement(CustomImageElement.class);
|
||||
if (element != null) element.reloadTexture();
|
||||
});
|
||||
}
|
||||
|
||||
public enum TimeFormat {
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
package me.retucio.sputnik.module.modules.combat;
|
||||
|
||||
import me.retucio.sputnik.module.Category;
|
||||
import me.retucio.sputnik.module.Module;
|
||||
import me.retucio.sputnik.module.setting.SettingGroup;
|
||||
import me.retucio.sputnik.module.setting.settings.BooleanSetting;
|
||||
import me.retucio.sputnik.module.setting.settings.EnumSetting;
|
||||
import me.retucio.sputnik.module.setting.settings.ListSetting;
|
||||
import me.retucio.sputnik.module.setting.settings.NumberSetting;
|
||||
import me.retucio.sputnik.util.Lists;
|
||||
|
||||
import net.minecraft.world.InteractionHand;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
|
||||
|
||||
public class KillAura extends Module {
|
||||
|
||||
private final SettingGroup sgEntities = addSg(new SettingGroup("entidades", true));
|
||||
|
||||
private final NumberSetting reach = sgGeneral.add(new NumberSetting(
|
||||
"alcance", "qué tan lejos extender el brazo",
|
||||
3.0f, 0.1f, 64.0f, 0.1f
|
||||
));
|
||||
|
||||
private final EnumSetting<AttackMode> attackMode = sgGeneral.add(new EnumSetting<>(
|
||||
"modo de ataque", "elige de qué manera atacar",
|
||||
AttackMode.class, AttackMode.TIMED
|
||||
));
|
||||
|
||||
private final NumberSetting cooldownPercentage = sgGeneral.add(new NumberSetting(
|
||||
"porcentaje de cooldown", "cuánto esperar a que se llene la barrita de ataque",
|
||||
100, 0, 100, 1
|
||||
));
|
||||
|
||||
private final BooleanSetting swingHand = sgGeneral.add(new BooleanSetting(
|
||||
"mover la mano", "mover la mano al atacar",
|
||||
true
|
||||
));
|
||||
|
||||
private final EnumSetting<ListMode> listMode = sgEntities.add(new EnumSetting<>(
|
||||
"modo de lista", "cómo interpretar la lista",
|
||||
ListMode.class, ListMode.WHITELIST
|
||||
));
|
||||
|
||||
private final ListSetting<EntityType<? extends Entity>> whitelist = sgEntities.add(new ListSetting<>(
|
||||
"entidades", "qué entidades atacar",
|
||||
Lists.entityList, Lists.allFalse(Lists.entityList), Lists.entityNames
|
||||
)).visibility(() -> listMode.is(ListMode.WHITELIST));
|
||||
|
||||
private final ListSetting<EntityType<? extends Entity>> blacklist = sgEntities.add(new ListSetting<>(
|
||||
"entidades ", "qué entidades NO atacar",
|
||||
Lists.entityList, Lists.allFalse(Lists.entityList), Lists.entityNames
|
||||
)).visibility(() -> listMode.is(ListMode.BLACKLIST));
|
||||
|
||||
public KillAura() {
|
||||
super("killaura", "si la violencia no funciona, es porque no has aplicado la suficiente", Category.COMBAT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if (mc.player == null || mc.level == null) return;
|
||||
|
||||
for (Entity entity : mc.level.getEntities().getAll()) {
|
||||
if (shouldAttack(entity)) {
|
||||
attack(entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void attack(Entity entity) {
|
||||
if (swingHand.getValue()) {
|
||||
mc.player.swing(InteractionHand.MAIN_HAND);
|
||||
}
|
||||
|
||||
if (attackMode.is(AttackMode.TIMED)) {
|
||||
if (mc.player.getAttackStrengthScale(0) < cooldownPercentage.getNormalizedValue()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (mc.level.isTickingEntity(entity)) {
|
||||
mc.gameMode.attack(mc.player, entity);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean shouldAttack(Entity entity) {
|
||||
if (entity.is(mc.player)) return false;
|
||||
if (!entity.isAlive()) return false;
|
||||
if (entity.distanceToSqr(mc.player) > reach.getValue() * reach.getValue()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return switch (listMode.getValue()) {
|
||||
case WHITELIST -> whitelist.isEnabled(entity.getType());
|
||||
case BLACKLIST -> !blacklist.isEnabled(entity.getType());
|
||||
};
|
||||
}
|
||||
|
||||
private enum AttackMode {
|
||||
TIMED("timeado"),
|
||||
SPAM("spam");
|
||||
|
||||
private final String name;
|
||||
AttackMode(String name) { this.name = name; }
|
||||
@Override public String toString() { return name; }
|
||||
}
|
||||
|
||||
private enum ListMode {
|
||||
WHITELIST("lista blanca (incluir)"),
|
||||
BLACKLIST("lista negra (excluir)");
|
||||
|
||||
private final String name;
|
||||
ListMode(String name) { this.name = name; }
|
||||
@Override public String toString() { return name; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package me.retucio.sputnik.module.modules.movement;
|
||||
|
||||
import com.github.retucio.neutrino.EventListener;
|
||||
import me.retucio.sputnik.event.interact.UpdateInventoryEvent;
|
||||
import me.retucio.sputnik.module.Category;
|
||||
import me.retucio.sputnik.module.Module;
|
||||
import me.retucio.sputnik.module.setting.settings.NumberSetting;
|
||||
import me.retucio.sputnik.util.InventoryUtil;
|
||||
|
||||
import net.minecraft.network.protocol.game.ServerboundMovePlayerPacket;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.item.ItemEntity;
|
||||
import net.minecraft.world.phys.AABB;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class ItemMagnet extends Module {
|
||||
|
||||
private final NumberSetting range = sgGeneral.add(new NumberSetting(
|
||||
"rango", "rango de recogida de items",
|
||||
6, 1, 32, 0.5f
|
||||
));
|
||||
|
||||
@Nullable
|
||||
private ItemEntity current = null;
|
||||
|
||||
private AABB box = null;
|
||||
|
||||
private final List<ItemEntity> cannotPickUp = new ArrayList<>();
|
||||
|
||||
private int cooldown = 0;
|
||||
|
||||
public ItemMagnet() {
|
||||
super("imán de items", "recoge items distantes rápidamente mediante paquetes de movimiento", Category.MOVEMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
current = null;
|
||||
cooldown = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
current = null;
|
||||
cooldown = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if (mc.player == null || mc.level == null || mc.getConnection() == null) return;
|
||||
|
||||
if (current != null && !current.isAlive()) {
|
||||
current = null;
|
||||
cooldown = 0;
|
||||
}
|
||||
|
||||
if (current != null) {
|
||||
box = mc.player.getVehicle() == null
|
||||
? mc.player.getBoundingBox()
|
||||
: mc.player.getVehicle().getBoundingBox().minmax(mc.player.getBoundingBox()).inflate(1.0, 0, 1.0);
|
||||
|
||||
if (!box.intersects(current.getBoundingBox())) {
|
||||
if (cooldown > 0) {
|
||||
cooldown--;
|
||||
return;
|
||||
}
|
||||
|
||||
Vec3 realPos = mc.player.position();
|
||||
|
||||
// tparse al item
|
||||
mc.getConnection().send(new ServerboundMovePlayerPacket.Pos(
|
||||
current.getX(), current.getY(), current.getZ(),
|
||||
mc.player.onGround(),
|
||||
mc.player.horizontalCollision
|
||||
));
|
||||
|
||||
// para evitar desync
|
||||
mc.getConnection().send(new ServerboundMovePlayerPacket.Pos(
|
||||
realPos.x, realPos.y, realPos.z,
|
||||
mc.player.onGround(),
|
||||
mc.player.horizontalCollision
|
||||
));
|
||||
|
||||
// pequeño margen antes de reintentar con el mismo ítem
|
||||
cooldown = 2;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
for (Entity entity : mc.level.getEntities().getAll()) {
|
||||
if (entity.is(mc.player)) continue;
|
||||
if (entity.distanceToSqr(mc.player) > range.getFloatValue() * range.getFloatValue()) continue;
|
||||
|
||||
if (entity instanceof ItemEntity item) {
|
||||
if (cannotPickUp.contains(item)) continue;
|
||||
|
||||
if (InventoryUtil.findSlot(stack -> stack.is(item.getItem().getItem()) && stack.getCount() < stack.getMaxStackSize()) == -1
|
||||
&& mc.player.getInventory().getFreeSlot() == -1
|
||||
) {
|
||||
cannotPickUp.add(item);
|
||||
continue;
|
||||
}
|
||||
|
||||
current = item;
|
||||
cooldown = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventListener
|
||||
private void onInventoryChange(UpdateInventoryEvent event) {
|
||||
cannotPickUp.clear();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -14,12 +14,12 @@ import org.jspecify.annotations.NonNull;
|
||||
public class PacketCanceller extends Module {
|
||||
|
||||
private final ListSetting<PacketType<? extends @NonNull Packet<?>>> c2s = sgGeneral.add(new ListSetting(
|
||||
"cliente > servidor", "paquetes a cancelar, dirección servidor",
|
||||
"C2S", "paquetes a cancelar, dirección servidor",
|
||||
Lists.c2sPacketList, Lists.allFalse(Lists.c2sPacketList), Lists.c2sPacketNames
|
||||
));
|
||||
|
||||
private final ListSetting<PacketType<? extends @NonNull Packet<?>>> s2c = sgGeneral.add(new ListSetting(
|
||||
"servidor > cliente", "paquetes a cancelar, dirección cliente",
|
||||
"S2C", "paquetes a cancelar, dirección cliente",
|
||||
Lists.s2cPacketList, Lists.allFalse(Lists.s2cPacketList), Lists.s2cPacketNames
|
||||
));
|
||||
|
||||
|
||||
@@ -0,0 +1,212 @@
|
||||
package me.retucio.sputnik.module.modules.network;
|
||||
|
||||
import com.github.retucio.neutrino.EventListener;
|
||||
import me.retucio.sputnik.event.network.PacketEvent;
|
||||
import me.retucio.sputnik.module.Category;
|
||||
import me.retucio.sputnik.module.Module;
|
||||
import me.retucio.sputnik.module.setting.settings.EnumSetting;
|
||||
import me.retucio.sputnik.module.setting.settings.FileSetting;
|
||||
import me.retucio.sputnik.module.setting.settings.ListSetting;
|
||||
import me.retucio.sputnik.ui.hud.HudRenderer;
|
||||
import me.retucio.sputnik.util.ChatUtil;
|
||||
import me.retucio.sputnik.util.Lists;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.network.protocol.Packet;
|
||||
import net.minecraft.network.protocol.PacketType;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.StandardOpenOption;
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneId;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
|
||||
public class PacketLogger extends Module {
|
||||
|
||||
private static final DateTimeFormatter TIME = DateTimeFormatter
|
||||
.ofPattern("HH:mm:ss.SSS")
|
||||
.withZone(ZoneId.systemDefault());
|
||||
|
||||
private static final int QUEUE_CAPACITY = 8192;
|
||||
private static final int BATCH_SIZE = 256;
|
||||
|
||||
private final ListSetting<PacketType<? extends Packet<?>>> packets = sgGeneral.add(new ListSetting<>(
|
||||
"paquetes", "paquetes a loguear",
|
||||
Lists.packetList, Lists.allFalse(Lists.packetList), Lists.packetNames
|
||||
));
|
||||
|
||||
private final EnumSetting<LogMode> mode = sgGeneral.add(new EnumSetting<>(
|
||||
"modo de logueo", "de qué manera loguear los paquetes",
|
||||
LogMode.class, LogMode.FILE
|
||||
));
|
||||
|
||||
private final FileSetting file = sgGeneral.add(new FileSetting(
|
||||
"archivo", "archivo donde loguear los paquetes",
|
||||
"sputnik/packets.log"
|
||||
)).visibility(() -> mode.is(LogMode.FILE));
|
||||
|
||||
private final BlockingQueue<String> queue = new ArrayBlockingQueue<>(QUEUE_CAPACITY);
|
||||
private final AtomicInteger dropped = new AtomicInteger();
|
||||
|
||||
private volatile boolean running;
|
||||
private volatile Thread writer;
|
||||
|
||||
public PacketLogger() {
|
||||
super("logger de paquetes", "loguea paquetes", Category.NETWORK);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
startWriter();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
stopWriter();
|
||||
}
|
||||
|
||||
@EventListener
|
||||
private void onPacketSend(PacketEvent.Send event) {
|
||||
handle("OUT", event.getPacket());
|
||||
}
|
||||
|
||||
@EventListener
|
||||
private void onPacketReceive(PacketEvent.Receive event) {
|
||||
handle("IN", event.getPacket());
|
||||
}
|
||||
|
||||
private void handle(String direction, Packet<?> packet) {
|
||||
if (packet == null || !packets.isEnabled(packet.type())) return;
|
||||
|
||||
String name = nameOf(packet);
|
||||
String body = describe(packet);
|
||||
|
||||
switch (mode.getValue()) {
|
||||
case CHAT -> onGameThread(() -> ChatUtil.info("[" + direction + "] " + body));
|
||||
case NOTIFICATION -> onGameThread(() -> HudRenderer.INSTANCE.pushNotification(name, body));
|
||||
case FILE -> enqueue("[" + TIME.format(Instant.now()) + "] [" + direction + "] " + name + " " + body);
|
||||
}
|
||||
}
|
||||
|
||||
private static void onGameThread(Runnable action) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc.isSameThread()) action.run();
|
||||
else mc.execute(action);
|
||||
}
|
||||
|
||||
private static String nameOf(Packet<?> packet) {
|
||||
PacketType<?> type = packet.type();
|
||||
return type.id().toString();
|
||||
}
|
||||
|
||||
private static String describe(Packet<?> packet) {
|
||||
try {
|
||||
return String.valueOf(packet);
|
||||
} catch (Throwable t) {
|
||||
return packet.getClass().getSimpleName() + " <toString failed: " + t + ">";
|
||||
}
|
||||
}
|
||||
|
||||
private void enqueue(String line) {
|
||||
if (!running) return;
|
||||
if (!queue.offer(line)) dropped.incrementAndGet();
|
||||
}
|
||||
|
||||
private void startWriter() {
|
||||
if (running) return;
|
||||
|
||||
Path path = file.getPath().toAbsolutePath();
|
||||
|
||||
queue.clear();
|
||||
dropped.set(0);
|
||||
running = true;
|
||||
|
||||
Thread thread = new Thread(() -> writerLoop(path), "sputnik-packet-logger");
|
||||
thread.setDaemon(true);
|
||||
thread.setPriority(Thread.MIN_PRIORITY);
|
||||
writer = thread;
|
||||
thread.start();
|
||||
}
|
||||
|
||||
private void stopWriter() {
|
||||
if (!running) return;
|
||||
running = false;
|
||||
|
||||
Thread thread = writer;
|
||||
writer = null;
|
||||
if (thread == null) return;
|
||||
|
||||
try {
|
||||
thread.join(2000);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
int lost = dropped.getAndSet(0);
|
||||
if (lost > 0) {
|
||||
onGameThread(() -> ChatUtil.warn("se descartaron " + lost + " paquetes (cola llena)"));
|
||||
}
|
||||
}
|
||||
|
||||
private void writerLoop(Path path) {
|
||||
try {
|
||||
Path parent = path.getParent();
|
||||
if (parent != null) Files.createDirectories(parent);
|
||||
|
||||
try (BufferedWriter out = Files.newBufferedWriter(
|
||||
path, StandardCharsets.UTF_8,
|
||||
StandardOpenOption.CREATE, StandardOpenOption.APPEND)) {
|
||||
|
||||
out.write("--- sesión iniciada " + Instant.now() + " ---");
|
||||
out.newLine();
|
||||
out.flush();
|
||||
|
||||
List<String> batch = new ArrayList<>(BATCH_SIZE);
|
||||
|
||||
while (running || !queue.isEmpty()) {
|
||||
String first = queue.poll(250, TimeUnit.MILLISECONDS);
|
||||
if (first == null) continue;
|
||||
|
||||
batch.add(first);
|
||||
queue.drainTo(batch, BATCH_SIZE - 1);
|
||||
|
||||
for (String line : batch) {
|
||||
out.write(line);
|
||||
out.newLine();
|
||||
}
|
||||
batch.clear();
|
||||
out.flush();
|
||||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
} catch (IOException e) {
|
||||
running = false;
|
||||
queue.clear();
|
||||
onGameThread(() -> {
|
||||
ChatUtil.error("no se pudo escribir el log: " + e.getMessage());
|
||||
toggle();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private enum LogMode {
|
||||
CHAT("chat"),
|
||||
NOTIFICATION("notis"),
|
||||
FILE("archivo");
|
||||
|
||||
private final String name;
|
||||
LogMode(String name) { this.name = name; }
|
||||
@Override public String toString() { return name; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package me.retucio.sputnik.module.modules.player;
|
||||
|
||||
import me.retucio.sputnik.module.Category;
|
||||
import me.retucio.sputnik.module.Module;
|
||||
import me.retucio.sputnik.module.setting.settings.NumberSetting;
|
||||
import me.retucio.sputnik.util.InventoryUtil;
|
||||
|
||||
import net.minecraft.core.component.DataComponents;
|
||||
import net.minecraft.world.entity.player.Inventory;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class AutoEat extends Module {
|
||||
|
||||
private final NumberSetting hunger = sgGeneral.add(new NumberSetting(
|
||||
"hambre", "cuánta hambre es necesaria para comer (puntos de comida)",
|
||||
6, 0, 19, 1
|
||||
));
|
||||
|
||||
private boolean eating;
|
||||
|
||||
public AutoEat() {
|
||||
super("puto gordo", "come automáticamente al tener hambre", Category.PLAYER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if (mc.player == null) return;
|
||||
|
||||
if (eating) {
|
||||
if (mc.player.getUseItemRemainingTicks() > 0) {
|
||||
return;
|
||||
} else {
|
||||
stopEating();
|
||||
}
|
||||
}
|
||||
|
||||
if (mc.player.getFoodData().getFoodLevel() <= hunger.getIntValue()) {
|
||||
List<ItemStack> sorted = InventoryUtil.findAllStacks(
|
||||
stack -> stack.getItem().components().get(DataComponents.FOOD) != null
|
||||
);
|
||||
sorted.sort(Comparator.comparingInt(stack -> stack.getItem().components().get(DataComponents.FOOD).nutrition()));
|
||||
if (sorted.isEmpty()) return;
|
||||
|
||||
boolean inHotbar = false;
|
||||
for (ItemStack stack : sorted) {
|
||||
int slot = InventoryUtil.findSlot(s -> stack == s);
|
||||
if (Inventory.isHotbarSlot(slot)) {
|
||||
mc.player.getInventory().setSelectedSlot(slot);
|
||||
inHotbar = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!inHotbar) {
|
||||
int free = mc.player.getInventory().getFreeSlot();
|
||||
|
||||
InventoryUtil.move(InventoryUtil.findSlot(stack -> stack == sorted.getFirst()), free != -1
|
||||
? free
|
||||
: mc.player.getInventory().getSelectedSlot());
|
||||
|
||||
if (free != -1) {
|
||||
mc.player.getInventory().setSelectedSlot(free);
|
||||
}
|
||||
}
|
||||
|
||||
startEating();
|
||||
}
|
||||
}
|
||||
|
||||
private void startEating() {
|
||||
eating = true;
|
||||
mc.options.keyUse.setDown(true);
|
||||
}
|
||||
|
||||
private void stopEating() {
|
||||
eating = false;
|
||||
mc.options.keyUse.setDown(false);
|
||||
}
|
||||
}
|
||||
@@ -143,7 +143,8 @@ public abstract class Setting<T> {
|
||||
|
||||
public void fireUpdateEvent() {
|
||||
Sputnik.EVENT_BUS.post(
|
||||
new UpdateSettingEvent(this, getModule().shouldSaveSettings()));
|
||||
new UpdateSettingEvent(this, getModule().shouldSaveSettings())
|
||||
);
|
||||
}
|
||||
|
||||
public void onUpdate(Consumer<T> listener) {
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
package me.retucio.sputnik.module.setting.settings;
|
||||
|
||||
import me.retucio.sputnik.module.setting.Setting;
|
||||
import me.retucio.sputnik.util.ChatUtil;
|
||||
import me.retucio.sputnik.util.I18nUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
|
||||
public class FileSetting extends Setting<String> {
|
||||
|
||||
private File file;
|
||||
|
||||
public FileSetting(String name, String description, String defaultValue) {
|
||||
super(name, description, defaultValue);
|
||||
file = new File(defaultValue);
|
||||
}
|
||||
|
||||
public boolean isDirectory() {
|
||||
return file.isDirectory();
|
||||
}
|
||||
|
||||
public boolean exists() {
|
||||
return file.exists();
|
||||
}
|
||||
|
||||
public boolean canWrite() {
|
||||
return file.canWrite();
|
||||
}
|
||||
|
||||
public File getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public String getFilename() {
|
||||
return file.getName();
|
||||
}
|
||||
|
||||
public Path getPath() {
|
||||
return Path.of(file.getPath());
|
||||
}
|
||||
|
||||
public String getAbsPathStr() {
|
||||
return file.getAbsolutePath();
|
||||
}
|
||||
|
||||
public String getRelPathStr() {
|
||||
return file.getPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String value) {
|
||||
super.setValue(value);
|
||||
file = new File(value);
|
||||
if (!exists()) {
|
||||
ChatUtil.error(I18nUtil.fmt(
|
||||
"sputnik.filesetting.doesnotexist",
|
||||
"el archivo \"%s\" no existe!".formatted(value),
|
||||
value
|
||||
));
|
||||
}
|
||||
|
||||
if (!canWrite()) {
|
||||
if (!exists()) {
|
||||
ChatUtil.warn(I18nUtil.fmt(
|
||||
"sputnik.filesetting.cannotwrite",
|
||||
"no se puede escribir a \"%s\"!".formatted(value),
|
||||
value
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,9 +88,7 @@ public class OptionSetting<T> extends Setting<T> {
|
||||
return displayNames;
|
||||
}
|
||||
|
||||
// OJO: nombre interno de la opción, o sea la clave de la config. (ver ClientConfig
|
||||
// #onUpdateSetting). igual que en ListSetting, para las listas del juego es la clave
|
||||
// de traducción. no traducir
|
||||
// no traducir.
|
||||
public String getConfigName(T key) {
|
||||
if (displayNames != null && displayNames.containsKey(key)) return displayNames.get(key);
|
||||
return key != null ? key.toString() : "?";
|
||||
|
||||
@@ -49,6 +49,7 @@ public class HudRenderer {
|
||||
addElement(new EchestElement(), positions, visibilities);
|
||||
addElement(new TotemsElement(), positions, visibilities);
|
||||
addElement(new ArmorElement(), positions, visibilities);
|
||||
addElement(new CustomImageElement(), positions, visibilities);
|
||||
|
||||
HudEditor.INSTANCE.setElements(elements);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package me.retucio.sputnik.ui.hud;
|
||||
import com.mojang.blaze3d.platform.NativeImage;
|
||||
import me.retucio.sputnik.Sputnik;
|
||||
import me.retucio.sputnik.module.modules.client.Hud;
|
||||
import me.retucio.sputnik.util.ChatUtil;
|
||||
import me.retucio.sputnik.util.Colors;
|
||||
import net.minecraft.client.gui.GuiGraphicsExtractor;
|
||||
import net.minecraft.client.renderer.RenderPipelines;
|
||||
@@ -35,7 +36,9 @@ public abstract class ImageHudElement extends HudElement {
|
||||
public void reloadTexture() {
|
||||
textureLoaded = false;
|
||||
String imagePath = getImagePath();
|
||||
if (imagePath == null || imagePath.isEmpty()) return;
|
||||
if (imagePath == null || imagePath.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
// cargar
|
||||
@@ -65,12 +68,18 @@ public abstract class ImageHudElement extends HudElement {
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Sputnik.LOGGER.error(Component.translatable("sputnik.hud.error.texture", getId(), e.getMessage()).getString());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderInGame(GuiGraphicsExtractor gui, float delta, Hud hud) {
|
||||
if (!textureLoaded || !isVisible()) return;
|
||||
if (getImagePath() == null || getImagePath().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
if (!textureLoaded || !isVisible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
gui.blit(
|
||||
RenderPipelines.GUI_TEXTURED,
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
package me.retucio.sputnik.ui.hud.elements;
|
||||
|
||||
import me.retucio.sputnik.Sputnik;
|
||||
import me.retucio.sputnik.module.ModuleManager;
|
||||
import me.retucio.sputnik.module.modules.client.Hud;
|
||||
import me.retucio.sputnik.ui.hud.ImageHudElement;
|
||||
|
||||
import com.mojang.blaze3d.platform.NativeImage;
|
||||
import net.minecraft.client.renderer.texture.DynamicTexture;
|
||||
import net.minecraft.network.chat.Component;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
|
||||
public class CustomImageElement extends ImageHudElement {
|
||||
|
||||
public CustomImageElement() {
|
||||
super("customimage", 200, 200);
|
||||
reloadTexture();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getImagePath() {
|
||||
Hud hud = ModuleManager.INSTANCE.getModuleByClass(Hud.class);
|
||||
if (hud != null && hud.customImagePath != null && !hud.customImagePath.getValue().isEmpty()) {
|
||||
return hud.customImagePath.getValue();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reloadTexture() {
|
||||
textureLoaded = false;
|
||||
String imagePath = getImagePath();
|
||||
if (imagePath == null || imagePath.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
File file = new File(imagePath);
|
||||
if (!file.exists() || !file.isFile()) {
|
||||
Sputnik.LOGGER.error(Component.translatable(
|
||||
"sputnik.hud.error.texture", getId(), "file not found: " + imagePath).getString()
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
try (InputStream stream = new FileInputStream(file)) {
|
||||
NativeImage image = NativeImage.read(stream);
|
||||
|
||||
if (texture != null) texture.close();
|
||||
mc.getTextureManager().getTexture(textureId);
|
||||
mc.getTextureManager().release(textureId);
|
||||
|
||||
Supplier<String> nameSupplier = () -> textureId.toString();
|
||||
texture = new DynamicTexture(nameSupplier, image);
|
||||
|
||||
this.imageWidth = image.getWidth();
|
||||
this.imageHeight = image.getHeight();
|
||||
this.w = imageWidth;
|
||||
this.h = imageHeight;
|
||||
|
||||
mc.getTextureManager().register(textureId, texture);
|
||||
textureLoaded = true;
|
||||
|
||||
Sputnik.LOGGER.info(Component.translatable("sputnik.hud.info.textureloaded", getId()).getString());
|
||||
} catch (Exception e) {
|
||||
Sputnik.LOGGER.error(Component.translatable(
|
||||
"sputnik.hud.error.texture", getId(), e.getMessage()).getString()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Component> getTooltip() {
|
||||
return List.of(
|
||||
Component.translatable("sputnik.hud.element.customimage.name"),
|
||||
Component.translatable("sputnik.hud.element.customimage.desc")
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -23,8 +23,9 @@ public class CustomTextElement extends TextHudElement {
|
||||
@Override
|
||||
public String getPreviewText() {
|
||||
Hud hud = ModuleManager.INSTANCE.getModuleByClass(Hud.class);
|
||||
if (hud != null && hud.customText != null && !hud.customText.getValue().isEmpty())
|
||||
if (hud != null && hud.customText != null && !hud.customText.getValue().isEmpty()) {
|
||||
return hud.customText.getValue();
|
||||
}
|
||||
|
||||
return "texto custom";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
package me.retucio.sputnik.ui.widgets.buttons.settings;
|
||||
|
||||
import me.retucio.sputnik.module.setting.settings.FileSetting;
|
||||
import me.retucio.sputnik.ui.screen.ClickGui;
|
||||
import me.retucio.sputnik.ui.widgets.buttons.SettingButton;
|
||||
import me.retucio.sputnik.ui.widgets.panels.SettingsPanel;
|
||||
import me.retucio.sputnik.util.Colors;
|
||||
import me.retucio.sputnik.util.KeyUtil;
|
||||
import me.retucio.sputnik.util.MiscUtil;
|
||||
|
||||
import net.minecraft.client.gui.GuiGraphicsExtractor;
|
||||
import net.minecraft.client.resources.language.I18n;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
import org.lwjgl.util.tinyfd.TinyFileDialogs;
|
||||
|
||||
import java.awt.*;
|
||||
import java.nio.file.Path;
|
||||
|
||||
|
||||
public class FileButton extends SettingButton<FileSetting> {
|
||||
|
||||
private boolean typing;
|
||||
private final FileSetting setting;
|
||||
private final StringBuilder buffer = new StringBuilder();
|
||||
|
||||
public FileButton(FileSetting setting, SettingsPanel parent, int offset) {
|
||||
super(setting, parent, offset);
|
||||
this.setting = setting;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(GuiGraphicsExtractor gui, int mouseX, int mouseY, float delta) {
|
||||
// fondo
|
||||
int bgColor = isHovered(mouseX, mouseY)
|
||||
? Colors.buttonColor.brighter().getRGB()
|
||||
: Colors.buttonColor.getRGB();
|
||||
gui.fill(x, y, x + w - 20, y + h, bgColor);
|
||||
|
||||
// botón de navegar
|
||||
int browseButtonColor = isBrowseButtonHovered(mouseX, mouseY)
|
||||
? Colors.buttonColor.brighter().getRGB()
|
||||
: Colors.buttonColor.getRGB();
|
||||
gui.fill(x + w - 20, y, x + w, y + h, browseButtonColor);
|
||||
gui.text(mc.font, "...", x + w - 20 + (20 - mc.font.width("...")) / 2, y + 3, -1, true);
|
||||
|
||||
// texto
|
||||
String label = setting.getName() + ": " + (typing ? buffer + "_" : setting.getValue());
|
||||
gui.text(mc.font, label, x + 5, y + 3, -1, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseClicked(int mouseX, int mouseY, int button) {
|
||||
if (isHovered(mouseX, mouseY) && ClickGui.INSTANCE.trySelect(this)) {
|
||||
if (button == 0) {
|
||||
typing = true;
|
||||
buffer.setLength(0);
|
||||
buffer.append(setting.getValue()); // precargar valor anterior
|
||||
} else if (button == 1 && KeyUtil.isShiftDown()) {
|
||||
typing = false;
|
||||
setting.reset();
|
||||
}
|
||||
} else {
|
||||
typing = false;
|
||||
if (isBrowseButtonHovered(mouseX, mouseY)) {
|
||||
Path path = pickFile();
|
||||
if (path != null) {
|
||||
setting.setValue(path.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onKey(int key, int action) {
|
||||
if (!typing || action == GLFW.GLFW_RELEASE) return;
|
||||
|
||||
// pegar con ctrl + v
|
||||
if (key == GLFW.GLFW_KEY_V && KeyUtil.isKeyDown(GLFW.GLFW_KEY_LEFT_CONTROL)) {
|
||||
paste();
|
||||
return;
|
||||
}
|
||||
|
||||
switch (key) { // casos para teclas especiales como enter, escape o borrar
|
||||
case GLFW.GLFW_KEY_ENTER -> {
|
||||
setting.setValue(buffer.toString());
|
||||
typing = false;
|
||||
} case GLFW.GLFW_KEY_BACKSPACE -> {
|
||||
onBackspace();
|
||||
} case GLFW.GLFW_KEY_ESCAPE -> {
|
||||
typing = false;
|
||||
} case GLFW.GLFW_KEY_SPACE -> {
|
||||
charTyped(' ');
|
||||
} default -> {
|
||||
String c = KeyUtil.getKeyName(key);
|
||||
if (c.length() == 1) {
|
||||
if (KeyUtil.isShiftDown())
|
||||
charTyped(KeyUtil.shiftKey(c).charAt(0));
|
||||
else
|
||||
charTyped(c.toLowerCase().charAt(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void charTyped(char c) {
|
||||
if (!typing) return;
|
||||
buffer.append(c);
|
||||
|
||||
if (mc.font.width(setting.getName() + ": " + buffer + "_") > w - 8) {
|
||||
onBackspace();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isFocused() {
|
||||
return typing;
|
||||
}
|
||||
|
||||
public void onBackspace() {
|
||||
MiscUtil.backspace(buffer);
|
||||
}
|
||||
|
||||
public void paste() {
|
||||
buffer.append(MiscUtil.getPasteContent(100));
|
||||
}
|
||||
|
||||
private boolean isBrowseButtonHovered(int mx, int my) {
|
||||
return mx >= x + w - 20 && mx <= x + w
|
||||
&& my >= y && my <= y + h;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHovered(int mx, int my) {
|
||||
return mx > x && mx < x + w - 20
|
||||
&& my > y && my <= y + h;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Path pickFile() {
|
||||
String result = TinyFileDialogs.tinyfd_openFileDialog(
|
||||
I18n.get("sputnik.filesetting.choose"),
|
||||
setting.isDirectory()
|
||||
? setting.getValue()
|
||||
: setting.getPath().getParent().toString(),
|
||||
null,
|
||||
I18n.get("sputnik.filesetting.supportedfiles"),
|
||||
false);
|
||||
return result == null ? null : Path.of(result);
|
||||
}
|
||||
}
|
||||
@@ -221,6 +221,7 @@ public class SettingsPanel extends CloseablePanel<SettingButton<? extends Settin
|
||||
case SliderButton sliderButton -> text += ": " + sliderButton.df.format((sliderButton.getSetting()).getValue());
|
||||
case CycleButton<?> cycleButton -> text += ": " + cycleButton.getSetting().getValue();
|
||||
case BindButton bindButton -> text += ": " + bindButton.getSetting().getKeyName();
|
||||
case FileButton fileButton -> text += ": " + fileButton.getSetting().getValue() + " ...";
|
||||
case TextButton textButton -> text += ": " + textButton.getSetting().getValue();
|
||||
case ColorButton colorButton -> text += colorButton.getSetting().getTooltipText();
|
||||
default -> {}
|
||||
@@ -307,6 +308,7 @@ public class SettingsPanel extends CloseablePanel<SettingButton<? extends Settin
|
||||
case BooleanSetting b -> new ToggleButton(b, this, offset);
|
||||
case NumberSetting n -> new SliderButton(n, this, offset);
|
||||
case EnumSetting<?> e -> new CycleButton<>(e, this, offset);
|
||||
case FileSetting f -> new FileButton(f, this, offset);
|
||||
case KeySetting k -> new BindButton(k, this, offset);
|
||||
case StringSetting s -> new TextButton(s, this, offset);
|
||||
case ListSetting<?> l -> new ListButton<>(l, this, offset);
|
||||
|
||||
@@ -46,6 +46,8 @@ public class Lists {
|
||||
public static final List<MenuType<?>> screenList = BuiltInRegistries.MENU.stream().toList();
|
||||
public static Map<MenuType<?>, String> screenNames;
|
||||
|
||||
public static List<PacketType<? extends Packet<?>>> packetList = new ArrayList<>();
|
||||
public static Map<PacketType<? extends @NonNull Packet<?>>, String> packetNames = new HashMap<>();
|
||||
public static List<PacketType<? extends @NonNull Packet<?>>> c2sPacketList = new ArrayList<>();
|
||||
public static Map<PacketType<? extends @NonNull Packet<?>>, String> c2sPacketNames = new HashMap<>();
|
||||
public static List<PacketType<? extends @NonNull Packet<?>>> s2cPacketList = new ArrayList<>();
|
||||
@@ -116,6 +118,11 @@ public class Lists {
|
||||
c2sPacketList.add(type);
|
||||
c2sPacketNames.put(type, type.id().toShortString());
|
||||
}));
|
||||
|
||||
packetList.addAll(c2sPacketList);
|
||||
packetList.addAll(s2cPacketList);
|
||||
packetNames.putAll(c2sPacketNames);
|
||||
packetNames.putAll(s2cPacketNames);
|
||||
}
|
||||
|
||||
public static <T> Map<T, Boolean> allTrue(List<T> options) {
|
||||
|
||||
@@ -127,6 +127,10 @@
|
||||
"sputnik.enum.module.modules.client.hud.timeformat.twenty_four_hour": "24h",
|
||||
"sputnik.enum.module.modules.combat.holdattack.attackmode.spam": "spam",
|
||||
"sputnik.enum.module.modules.combat.holdattack.attackmode.time": "time",
|
||||
"sputnik.enum.module.modules.combat.killaura.attackmode.spam": "spam",
|
||||
"sputnik.enum.module.modules.combat.killaura.attackmode.timed": "time",
|
||||
"sputnik.enum.module.modules.combat.killaura.listmode.whitelist": "whitelist",
|
||||
"sputnik.enum.module.modules.combat.killaura.listmode.blacklist": "blacklist",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorystyle.dashed": "dashed",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorystyle.dotted": "points",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorystyle.solid": "solid",
|
||||
@@ -135,7 +139,7 @@
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorytargets.entities": "entities",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorytargets.none": "none",
|
||||
"sputnik.enum.module.modules.misc.anvilfont.fontmode.circled": "round",
|
||||
"sputnik.enum.module.modules.misc.anvilfont.fontmode.cursed": "well weird",
|
||||
"sputnik.enum.module.modules.misc.anvilfont.fontmode.cursed": "cursed",
|
||||
"sputnik.enum.module.modules.misc.anvilfont.fontmode.greek": "greek",
|
||||
"sputnik.enum.module.modules.misc.anvilfont.fontmode.normal": "normal",
|
||||
"sputnik.enum.module.modules.misc.anvilfont.fontmode.uppercase": "uppercase",
|
||||
@@ -152,6 +156,9 @@
|
||||
"sputnik.enum.module.modules.network.packetdelay.packets.all": "all",
|
||||
"sputnik.enum.module.modules.network.packetdelay.packets.keep_alive": "KeepAlive packets",
|
||||
"sputnik.enum.module.modules.network.packetdelay.packets.others": "all but KeepAlive",
|
||||
"sputnik.enum.module.modules.network.packetlogger.logmode.chat": "chat",
|
||||
"sputnik.enum.module.modules.network.packetlogger.logmode.notification": "notification",
|
||||
"sputnik.enum.module.modules.network.packetlogger.logmode.file": "save to file",
|
||||
"sputnik.enum.module.modules.network.packetmine.clickaction.add_priority": "add priority",
|
||||
"sputnik.enum.module.modules.network.packetmine.clickaction.none": "nothing",
|
||||
"sputnik.enum.module.modules.network.packetmine.clickaction.unselect": "unselect",
|
||||
@@ -214,6 +221,10 @@
|
||||
"sputnik.enum.module.modules.world.timechanger.moonphases.waning_gibbous": "waning gibbous",
|
||||
"sputnik.enum.module.modules.world.timechanger.moonphases.waxing_crescent": "waxing crescent",
|
||||
"sputnik.enum.module.modules.world.timechanger.moonphases.waxing_gibbous": "waxing gibbous",
|
||||
"sputnik.filesetting.cannotwrite": "cannot write to \"%s\"!",
|
||||
"sputnik.filesetting.choose": "choose a file",
|
||||
"sputnik.filesetting.supportedfiles": "supported files",
|
||||
"sputnik.filesetting.doesnotexist": "file \"%s\" does not exist!",
|
||||
"sputnik.group.andamios.bloques": "blocks",
|
||||
"sputnik.group.andamios.puente": "bridge",
|
||||
"sputnik.group.andamios.renderizado": "render",
|
||||
@@ -242,6 +253,7 @@
|
||||
"sputnik.group.interfaz.widgets": "widgets",
|
||||
"sputnik.group.jesus.bloques": "blocks",
|
||||
"sputnik.group.jkrowling.libro": "book",
|
||||
"sputnik.group.killaura.entidades": "entities",
|
||||
"sputnik.group.manos.animaciones": "animations",
|
||||
"sputnik.group.manos.brazo": "arm",
|
||||
"sputnik.group.manos.manoprincipal": "main hand",
|
||||
@@ -286,6 +298,8 @@
|
||||
"sputnik.hud.editor.title": "HUD editor",
|
||||
"sputnik.hud.element.armor.desc": "armor status",
|
||||
"sputnik.hud.element.coords.desc": "shows your XYZ position in the world",
|
||||
"sputnik.hud.element.customimage.desc": "an image of your choosing",
|
||||
"sputnik.hud.element.customimage.name": "custom image",
|
||||
"sputnik.hud.element.customtext.desc": "text of your choosing",
|
||||
"sputnik.hud.element.customtext.name": "custom text",
|
||||
"sputnik.hud.element.dyno.desc": "long live autism goddamn",
|
||||
@@ -395,9 +409,9 @@
|
||||
"sputnik.module.cocaina.desc": "changes the speed of everything in the game",
|
||||
"sputnik.module.cocaina.name": "cocaine",
|
||||
"sputnik.module.colocarenaire.desc": "lets you place blocks in the air",
|
||||
"sputnik.module.colocarenaire.name": "place in air",
|
||||
"sputnik.module.colocarenaire.name": "airplace",
|
||||
"sputnik.module.conejo.desc": "do the elytra bounce by holding space",
|
||||
"sputnik.module.conejo.name": "rabbit",
|
||||
"sputnik.module.conejo.name": "ebounce",
|
||||
"sputnik.module.confetti.desc": "changes the color of the totem pop particles",
|
||||
"sputnik.module.confetti.name": "confetti",
|
||||
"sputnik.module.contorno.desc": "customizes the block outline",
|
||||
@@ -406,13 +420,13 @@
|
||||
"sputnik.module.criticos.name": "crits",
|
||||
"sputnik.module.delaydepaquetes.desc": "applies a delay to packets",
|
||||
"sputnik.module.delaydepaquetes.name": "packet delay",
|
||||
"sputnik.module.delfin.desc": "*dolphin noise*",
|
||||
"sputnik.module.delfin.desc": "*dolphin noises*",
|
||||
"sputnik.module.delfin.name": "dolphin",
|
||||
"sputnik.module.destellodeenchants.desc": "changes the color of the enchantment glint",
|
||||
"sputnik.module.destellodeenchants.name": "enchant glint",
|
||||
"sputnik.module.desyncdehitbox.desc": "chinese exploit",
|
||||
"sputnik.module.desyncdehitbox.name": "hitbox desync",
|
||||
"sputnik.module.discordrpc.desc": "customizes your activity on dishcord",
|
||||
"sputnik.module.discordrpc.desc": "customizes your activity on dickord",
|
||||
"sputnik.module.discordrpc.disconnected": "disconnected: %s - %s",
|
||||
"sputnik.module.discordrpc.error": "error: %s - %s",
|
||||
"sputnik.module.discordrpc.initerror": "error initializing rpc: %s",
|
||||
@@ -426,7 +440,7 @@
|
||||
"sputnik.module.dupedebundle.desc": "dupes items using a bundle and a book",
|
||||
"sputnik.module.dupedebundle.name": "bundle dupe",
|
||||
"sputnik.module.elytras.desc": "fly with elytra",
|
||||
"sputnik.module.elytras.name": "elytra",
|
||||
"sputnik.module.elytras.name": "elytrafly",
|
||||
"sputnik.module.escalerasveloces.desc": "climb ladders faster",
|
||||
"sputnik.module.escalerasveloces.name": "fast ladders",
|
||||
"sputnik.module.escalones.desc": "makes the step-up height whatever you want",
|
||||
@@ -448,6 +462,8 @@
|
||||
"sputnik.module.hotkeysinvcreativo.name": "creative inv. hotkeys",
|
||||
"sputnik.module.hud.desc": "screen overlay with extra info",
|
||||
"sputnik.module.hud.name": "HUD",
|
||||
"sputnik.module.imandeitems.name": "item magnet",
|
||||
"sputnik.module.imandeitems.desc": "picks up distant items quickly via movement packets",
|
||||
"sputnik.module.infodebloque.desc": "shows the nbt contents of the block you're looking at",
|
||||
"sputnik.module.infodebloque.name": "block info",
|
||||
"sputnik.module.interfaz.desc": "gui settings, and other miscellaneous ones",
|
||||
@@ -463,8 +479,12 @@
|
||||
"sputnik.module.jugadorfalso.desc": "spawns a fake player entity for testing purposes",
|
||||
"sputnik.module.jugadorfalso.name": "fake player",
|
||||
"sputnik.module.keypearl.nopearls": "you have no pearls",
|
||||
"sputnik.module.killaura.name": "killaura",
|
||||
"sputnik.module.killaura.desc": "if violence doesn't work, you haven't applied enough of it.",
|
||||
"sputnik.module.lsd.desc": "what the actual FUCK",
|
||||
"sputnik.module.lsd.name": "lsd",
|
||||
"sputnik.module.loggerdepaquetes.name": "packet logger",
|
||||
"sputnik.module.loggerdepaquetes.desc": "logs packets",
|
||||
"sputnik.module.macekill.oops": "oops: %s",
|
||||
"sputnik.module.manos.desc": "changes the way hands are rendered",
|
||||
"sputnik.module.manos.name": "hands",
|
||||
@@ -512,7 +532,9 @@
|
||||
"sputnik.module.progresodeminado.name": "mining progress",
|
||||
"sputnik.module.puntosdedesconexion.desc": "shows you the spots where other players log out",
|
||||
"sputnik.module.puntosdedesconexion.name": "logout spots",
|
||||
"sputnik.module.racismo.desc": "gimme a smoke bro",
|
||||
"sputnik.module.putogordo.name": "fatass",
|
||||
"sputnik.module.putogordo.desc": "automatically eats when hungry",
|
||||
"sputnik.module.racismo.desc": "detroit moment",
|
||||
"sputnik.module.racismo.name": "racism",
|
||||
"sputnik.module.reconectar.desc": "adds a button to reconnect to a server after being disconnected",
|
||||
"sputnik.module.reconectar.name": "reconnect",
|
||||
@@ -563,13 +585,13 @@
|
||||
"sputnik.module.tenedormagico.desc": "bro thinks he's Poseidon",
|
||||
"sputnik.module.tenedormagico.name": "magic fork",
|
||||
"sputnik.module.tobillosfuertes.desc": "avoids fall damage",
|
||||
"sputnik.module.tobillosfuertes.name": "strong ankles",
|
||||
"sputnik.module.tobillosfuertes.name": "no fall",
|
||||
"sputnik.module.toggled.off": "%s was disabled",
|
||||
"sputnik.module.toggled.on": "%s was enabled",
|
||||
"sputnik.module.trayectoria.desc": "shows the trajectory of projectiles",
|
||||
"sputnik.module.trayectoria.name": "trajectory",
|
||||
"sputnik.module.trazos.desc": "draw lines from the camera to the selected entities",
|
||||
"sputnik.module.trazos.name": "trails",
|
||||
"sputnik.module.trazos.name": "tracers",
|
||||
"sputnik.module.trianguladordestrongholds.desc": "uses fancy math to work out where the closest stronghold is",
|
||||
"sputnik.module.trianguladordestrongholds.name": "stronghold triangulator",
|
||||
"sputnik.module.yunquesconpluma.desc": "lets you use different typefaces when renaming items in an anvil",
|
||||
@@ -743,6 +765,10 @@
|
||||
"sputnik.setting.camaralibre.velocidad.tecladelscroll.name": "scroll key",
|
||||
"sputnik.setting.camaralibre.velocidad.velocidad.desc": "camera movement speed",
|
||||
"sputnik.setting.camaralibre.velocidad.velocidad.name": "speed",
|
||||
"sputnik.setting.canceladordepaquetes.general.c2s.name": "C2S",
|
||||
"sputnik.setting.canceladordepaquetes.general.c2s.desc": "serverbound packets to cancel",
|
||||
"sputnik.setting.canceladordepaquetes.general.s2c.name": "S2C",
|
||||
"sputnik.setting.canceladordepaquetes.general.s2c.desc": "clientbound packets to cancel",
|
||||
"sputnik.setting.capas.general.capa.desc": "which cape to wear",
|
||||
"sputnik.setting.capas.general.capa.name": "cape",
|
||||
"sputnik.setting.capturasdepantalla.botones.botondeabrir.desc": "show a button to open the screenshot file",
|
||||
@@ -783,7 +809,7 @@
|
||||
"sputnik.setting.cielocustom.cuerposceleste.sol.name": "sun",
|
||||
"sputnik.setting.cielocustom.general.hora.desc": "in-game time",
|
||||
"sputnik.setting.cielocustom.general.hora.name": "time",
|
||||
"sputnik.setting.cocaina.general.multi.desc": "like in Balatro",
|
||||
"sputnik.setting.cocaina.general.multi.desc": "is that a MOTHERFUCKING Balatro reference?!?",
|
||||
"sputnik.setting.cocaina.general.multi.name": "multi",
|
||||
"sputnik.setting.colocarenaire.general.colocarconnormalidad.desc": "place normally if already looking at a block in range",
|
||||
"sputnik.setting.colocarenaire.general.colocarconnormalidad.name": "place normally",
|
||||
@@ -928,6 +954,8 @@
|
||||
"sputnik.setting.hud.elementos.formatodelahora.name": "time format",
|
||||
"sputnik.setting.hud.elementos.mododecoordenadas.desc": "which coordinates to show",
|
||||
"sputnik.setting.hud.elementos.mododecoordenadas.name": "coords mode",
|
||||
"sputnik.setting.hud.elementos.rutadeimagen.name": "path",
|
||||
"sputnik.setting.hud.elementos.rutadeimagen.desc": "path to custom image",
|
||||
"sputnik.setting.hud.elementos.textocustom.desc": "watermark (leave empty to remove)",
|
||||
"sputnik.setting.hud.elementos.textocustom.name": "custom text",
|
||||
"sputnik.setting.hud.elementos.zonahoraria.desc": "timezone as UTC+n",
|
||||
@@ -940,6 +968,8 @@
|
||||
"sputnik.setting.hud.visualizacion.mostrarenf3.name": "show in F3",
|
||||
"sputnik.setting.hud.visualizacion.sombra.desc": "text with shadow",
|
||||
"sputnik.setting.hud.visualizacion.sombra.name": "shadow",
|
||||
"sputnik.setting.imandeitems.general.rango.name": "range",
|
||||
"sputnik.setting.imandeitems.general.rango.desc": "how far to reach out for items",
|
||||
"sputnik.setting.infodebloque.general.copiar.desc": "copy to clipboard",
|
||||
"sputnik.setting.infodebloque.general.copiar.name": "copy",
|
||||
"sputnik.setting.infodebloque.general.liquidos.desc": "also include liquids in the raycast",
|
||||
@@ -1007,6 +1037,26 @@
|
||||
"sputnik.setting.jugadorfalso.general.nombre.desc": "what name to give the player",
|
||||
"sputnik.setting.jugadorfalso.general.nombre.name": "name",
|
||||
"sputnik.setting.key.reset": "keybind for module %s reset",
|
||||
"sputnik.setting.killaura.general.alcance.name": "reach",
|
||||
"sputnik.setting.killaura.general.alcance.desc": "how far to reach",
|
||||
"sputnik.setting.killaura.general.mododeataque.name": "attack mode",
|
||||
"sputnik.setting.killaura.general.mododeataque.desc": "how to attack",
|
||||
"sputnik.setting.killaura.general.moverlamano.name": "swing",
|
||||
"sputnik.setting.killaura.general.moverlamano.desc": "whether to swing the hand when attacking",
|
||||
"sputnik.setting.killaura.general.porcentajedecooldown.name": "cooldown percentage",
|
||||
"sputnik.setting.killaura.general.porcentajedecooldown.desc": "how long to wait for the cooldown bar to fill",
|
||||
"sputnik.setting.killaura.entidades.entidades.name": "entities",
|
||||
"sputnik.setting.killaura.entidades.entidades.desc": "entities to attack",
|
||||
"sputnik.setting.killaura.entidades.entidades1.name": "entities",
|
||||
"sputnik.setting.killaura.entidades.entidades1.desc": "entities NOT to attack",
|
||||
"sputnik.setting.killaura.entidades.mododelista.name": "list mode",
|
||||
"sputnik.setting.killaura.entidades.mododelista.desc": "how to interpret the list",
|
||||
"sputnik.setting.loggerdepaquetes.general.paquetes.name": "packets",
|
||||
"sputnik.setting.loggerdepaquetes.general.paquetes.desc": "packets to log",
|
||||
"sputnik.setting.loggerdepaquetes.general.mododelogueo.name": "logging mode",
|
||||
"sputnik.setting.loggerdepaquetes.general.mododelogueo.desc": "how to log packets",
|
||||
"sputnik.setting.loggerdepaquetes.general.archivo.name": "file",
|
||||
"sputnik.setting.loggerdepaquetes.general.archivo.desc": "file to use as log file",
|
||||
"sputnik.setting.lsd.general.intensidad.desc": "how much the image is distorted and tinted",
|
||||
"sputnik.setting.lsd.general.intensidad.name": "strength",
|
||||
"sputnik.setting.lsd.general.rotaciones.desc": "how much the offset swirls; higher = more whirls",
|
||||
@@ -1281,6 +1331,8 @@
|
||||
"sputnik.setting.puntosdedesconexion.relleno.colordelrelleno.name": "fill color",
|
||||
"sputnik.setting.puntosdedesconexion.relleno.relleno.desc": "render the box fill (faces)",
|
||||
"sputnik.setting.puntosdedesconexion.relleno.relleno.name": "fill",
|
||||
"sputnik.setting.putogordo.general.hambre.name": "hunger",
|
||||
"sputnik.setting.putogordo.general.hambre.desc": "how hungry you have to be to eat (food points)",
|
||||
"sputnik.setting.recorrido.general.color.desc": "color to use",
|
||||
"sputnik.setting.recorrido.general.color.name": "color",
|
||||
"sputnik.setting.recorrido.general.esperanzadevida.desc": "how long the trails last",
|
||||
|
||||
@@ -127,6 +127,10 @@
|
||||
"sputnik.enum.module.modules.client.hud.timeformat.twenty_four_hour": "24h",
|
||||
"sputnik.enum.module.modules.combat.holdattack.attackmode.spam": "spamear",
|
||||
"sputnik.enum.module.modules.combat.holdattack.attackmode.time": "timear",
|
||||
"sputnik.enum.module.modules.combat.killaura.attackmode.spam": "spamear",
|
||||
"sputnik.enum.module.modules.combat.killaura.attackmode.timed": "timear",
|
||||
"sputnik.enum.module.modules.combat.killaura.listmode.whitelist": "lista blanca (incluir)",
|
||||
"sputnik.enum.module.modules.combat.killaura.listmode.blacklist": "lista negra (excluir)",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorystyle.dashed": "discontinua",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorystyle.dotted": "puntos",
|
||||
"sputnik.enum.module.modules.combat.projectiletrajectories.trajectorystyle.solid": "continua",
|
||||
@@ -152,6 +156,9 @@
|
||||
"sputnik.enum.module.modules.network.packetdelay.packets.all": "todos",
|
||||
"sputnik.enum.module.modules.network.packetdelay.packets.keep_alive": "paquetes KeepAlive",
|
||||
"sputnik.enum.module.modules.network.packetdelay.packets.others": "todos menos KeepAlive",
|
||||
"sputnik.enum.module.modules.network.packetlogger.logmode.chat": "chat",
|
||||
"sputnik.enum.module.modules.network.packetlogger.logmode.notification": "notis",
|
||||
"sputnik.enum.module.modules.network.packetlogger.logmode.file": "archivo",
|
||||
"sputnik.enum.module.modules.network.packetmine.clickaction.add_priority": "agregar prioridad",
|
||||
"sputnik.enum.module.modules.network.packetmine.clickaction.none": "nada",
|
||||
"sputnik.enum.module.modules.network.packetmine.clickaction.unselect": "deseleccionar",
|
||||
@@ -214,6 +221,10 @@
|
||||
"sputnik.enum.module.modules.world.timechanger.moonphases.waning_gibbous": "menguante gibosa",
|
||||
"sputnik.enum.module.modules.world.timechanger.moonphases.waxing_crescent": "creciente",
|
||||
"sputnik.enum.module.modules.world.timechanger.moonphases.waxing_gibbous": "creciente gibosa",
|
||||
"sputnik.filesetting.cannotwrite": "no se puede escribir a \"%s\"!",
|
||||
"sputnik.filesetting.choose": "elige un archivo",
|
||||
"sputnik.filesetting.supportedfiles": "archivos soportados",
|
||||
"sputnik.filesetting.doesnotexist": "el archivo \"%s\" no existe!",
|
||||
"sputnik.group.andamios.bloques": "bloques",
|
||||
"sputnik.group.andamios.puente": "puente",
|
||||
"sputnik.group.andamios.renderizado": "renderizado",
|
||||
@@ -242,6 +253,7 @@
|
||||
"sputnik.group.interfaz.widgets": "widgets",
|
||||
"sputnik.group.jesus.bloques": "bloques",
|
||||
"sputnik.group.jkrowling.libro": "libro",
|
||||
"sputnik.group.killaura.entidades": "entidades",
|
||||
"sputnik.group.manos.animaciones": "animaciones",
|
||||
"sputnik.group.manos.brazo": "brazo",
|
||||
"sputnik.group.manos.manoprincipal": "mano principal",
|
||||
@@ -286,6 +298,8 @@
|
||||
"sputnik.hud.editor.title": "editor del HUD",
|
||||
"sputnik.hud.element.armor.desc": "estado de la armadura",
|
||||
"sputnik.hud.element.coords.desc": "te muestra tu posición XYZ en el mundo",
|
||||
"sputnik.hud.element.customimage.desc": "imagen que tú eliges",
|
||||
"sputnik.hud.element.customimage.name": "imagen custom",
|
||||
"sputnik.hud.element.customtext.desc": "texto que tú eliges",
|
||||
"sputnik.hud.element.customtext.name": "texto custom",
|
||||
"sputnik.hud.element.dyno.desc": "que viva el autismo joder",
|
||||
@@ -448,6 +462,8 @@
|
||||
"sputnik.module.hotkeysinvcreativo.name": "hotkeys inv. creativo",
|
||||
"sputnik.module.hud.desc": "superposición de la pantalla con info. adicional",
|
||||
"sputnik.module.hud.name": "HUD",
|
||||
"sputnik.module.imandeitems.name": "imán de items",
|
||||
"sputnik.module.imandeitems.desc": "recoge items distantes rápidamente mediante paquetes de movimiento",
|
||||
"sputnik.module.infodebloque.desc": "muestra el contenido nbt del bloque al que se está apuntando",
|
||||
"sputnik.module.infodebloque.name": "info. de bloque",
|
||||
"sputnik.module.interfaz.desc": "ajustes de la interfaz, y otros misceláneos",
|
||||
@@ -463,8 +479,12 @@
|
||||
"sputnik.module.jugadorfalso.desc": "invoca una entidad de jugador falsa por motivos de testeo",
|
||||
"sputnik.module.jugadorfalso.name": "jugador falso",
|
||||
"sputnik.module.keypearl.nopearls": "no tienes perlas",
|
||||
"sputnik.module.killaura.name": "killaura",
|
||||
"sputnik.module.killaura.desc": "si la violencia no funciona, es porque no has aplicado la suficiente",
|
||||
"sputnik.module.lsd.desc": "distorsiona y tiñe la pantalla",
|
||||
"sputnik.module.lsd.name": "lsd",
|
||||
"sputnik.module.loggerdepaquetes.name": "logger de paquetes",
|
||||
"sputnik.module.loggerdepaquetes.desc": "loguea paquetes",
|
||||
"sputnik.module.macekill.oops": "upsi: %s",
|
||||
"sputnik.module.manos.desc": "modifica la manera en la que se renderizan las manos",
|
||||
"sputnik.module.manos.name": "manos",
|
||||
@@ -492,6 +512,8 @@
|
||||
"sputnik.module.notificaciones.name": "notificaciones",
|
||||
"sputnik.module.packetdelay.singleplayer": "delay de paquetes no funciona en un solo jugador",
|
||||
"sputnik.module.packetmine.pickbreaking": "pico por romperse",
|
||||
"sputnik.module.canceladordepaquetes.name": "cancelador de paquetes",
|
||||
"sputnik.module.canceladordepaquetes.desc": "cancela paquetes.",
|
||||
"sputnik.module.parkour.desc": "salta automáticamente en el último tick posible, en la esquina del bloque",
|
||||
"sputnik.module.parkour.name": "parkour",
|
||||
"sputnik.module.particulas.desc": "emite particulas artificiales",
|
||||
@@ -510,6 +532,8 @@
|
||||
"sputnik.module.progresodeminado.name": "progreso de minado",
|
||||
"sputnik.module.puntosdedesconexion.desc": "te muestra los puntos donde otros jugadores se desconectan",
|
||||
"sputnik.module.puntosdedesconexion.name": "puntos de desconexión",
|
||||
"sputnik.module.putogordo.name": "puto gordo",
|
||||
"sputnik.module.putogordo.desc": "come automáticamente al tener hambre",
|
||||
"sputnik.module.racismo.desc": "amego segarro",
|
||||
"sputnik.module.racismo.name": "racismo",
|
||||
"sputnik.module.reconectar.desc": "añade un botón para reconectarse a un servidor tras ser desconectado",
|
||||
@@ -741,6 +765,10 @@
|
||||
"sputnik.setting.camaralibre.velocidad.tecladelscroll.name": "tecla del scroll",
|
||||
"sputnik.setting.camaralibre.velocidad.velocidad.desc": "velocidad de movimiento de la cámara",
|
||||
"sputnik.setting.camaralibre.velocidad.velocidad.name": "velocidad",
|
||||
"sputnik.setting.canceladordepaquetes.general.c2s.name": "C2S",
|
||||
"sputnik.setting.canceladordepaquetes.general.c2s.desc": "paquetes a cancelar, dirección servidor",
|
||||
"sputnik.setting.canceladordepaquetes.general.s2c.name": "S2C",
|
||||
"sputnik.setting.canceladordepaquetes.general.s2c.desc": "paquetes a cancelar, dirección cliente",
|
||||
"sputnik.setting.capas.general.capa.desc": "qué capa llevar puesta",
|
||||
"sputnik.setting.capas.general.capa.name": "capa",
|
||||
"sputnik.setting.capturasdepantalla.botones.botondeabrir.desc": "mostrar botón para abrir el archivo de la captura",
|
||||
@@ -926,6 +954,8 @@
|
||||
"sputnik.setting.hud.elementos.formatodelahora.name": "formato de la hora",
|
||||
"sputnik.setting.hud.elementos.mododecoordenadas.desc": "qué coordenadas mostrar",
|
||||
"sputnik.setting.hud.elementos.mododecoordenadas.name": "modo de coordenadas",
|
||||
"sputnik.setting.hud.elementos.rutadeimagen.name": "ruta de imagen",
|
||||
"sputnik.setting.hud.elementos.rutadeimagen.desc": "ruta de la imagen a renderizar en el elemento de imagen custom",
|
||||
"sputnik.setting.hud.elementos.textocustom.desc": "marca de agua (dejar vacío para quitar)",
|
||||
"sputnik.setting.hud.elementos.textocustom.name": "texto custom",
|
||||
"sputnik.setting.hud.elementos.zonahoraria.desc": "zona horaria en UTC+n",
|
||||
@@ -938,6 +968,8 @@
|
||||
"sputnik.setting.hud.visualizacion.mostrarenf3.name": "mostrar en F3",
|
||||
"sputnik.setting.hud.visualizacion.sombra.desc": "texto con sombra",
|
||||
"sputnik.setting.hud.visualizacion.sombra.name": "sombra",
|
||||
"sputnik.setting.imandeitems.general.rango.name": "rango",
|
||||
"sputnik.setting.imandeitems.general.rango.desc": "rango de recogida de items",
|
||||
"sputnik.setting.infodebloque.general.copiar.desc": "copiar al portapapeles",
|
||||
"sputnik.setting.infodebloque.general.copiar.name": "copiar",
|
||||
"sputnik.setting.infodebloque.general.liquidos.desc": "también incluir líquidos en el raycast",
|
||||
@@ -1005,6 +1037,26 @@
|
||||
"sputnik.setting.jugadorfalso.general.nombre.desc": "qué nombre asignarle al jugador",
|
||||
"sputnik.setting.jugadorfalso.general.nombre.name": "nombre",
|
||||
"sputnik.setting.key.reset": "tecla del módulo %s restablecida",
|
||||
"sputnik.setting.killaura.general.alcance.name": "alcance",
|
||||
"sputnik.setting.killaura.general.alcance.desc": "qué tan lejos extender el brazo",
|
||||
"sputnik.setting.killaura.general.mododeataque.name": "modo de ataque",
|
||||
"sputnik.setting.killaura.general.mododeataque.desc": "elige de qué manera atacar",
|
||||
"sputnik.setting.killaura.general.moverlamano.name": "mover la mano",
|
||||
"sputnik.setting.killaura.general.moverlamano.desc": "mover la mano al atacar",
|
||||
"sputnik.setting.killaura.general.porcentajedecooldown.name": "porcentaje de cooldown",
|
||||
"sputnik.setting.killaura.general.porcentajedecooldown.desc": "cuánto esperar a que se llene la barrita de ataque",
|
||||
"sputnik.setting.killaura.entidades.entidades.name": "entidades",
|
||||
"sputnik.setting.killaura.entidades.entidades.desc": "qué entidades atacar",
|
||||
"sputnik.setting.killaura.entidades.entidades1.name": "entidades",
|
||||
"sputnik.setting.killaura.entidades.entidades1.desc": "qué entidades NO atacar",
|
||||
"sputnik.setting.killaura.entidades.mododelista.name": "modo de lista",
|
||||
"sputnik.setting.killaura.entidades.mododelista.desc": "cómo interpretar la lista",
|
||||
"sputnik.setting.loggerdepaquetes.general.paquetes.name": "paquetes",
|
||||
"sputnik.setting.loggerdepaquetes.general.paquetes.desc": "paquetes a loguear",
|
||||
"sputnik.setting.loggerdepaquetes.general.mododelogueo.name": "modo de logueo",
|
||||
"sputnik.setting.loggerdepaquetes.general.mododelogueo.desc": "de qué manera loguear los paquetes",
|
||||
"sputnik.setting.loggerdepaquetes.general.archivo.name": "archivo",
|
||||
"sputnik.setting.loggerdepaquetes.general.archivo.desc": "archivo al que loguear los paquetes",
|
||||
"sputnik.setting.lsd.general.intensidad.desc": "cuánto se distorsiona y se tiñe la imagen",
|
||||
"sputnik.setting.lsd.general.intensidad.name": "intensidad",
|
||||
"sputnik.setting.lsd.general.rotaciones.desc": "cuántas vueltas da el desplazamiento; más = más remolinos",
|
||||
@@ -1279,6 +1331,8 @@
|
||||
"sputnik.setting.puntosdedesconexion.relleno.colordelrelleno.name": "color del relleno",
|
||||
"sputnik.setting.puntosdedesconexion.relleno.relleno.desc": "renderizar relleno de la caja (caras)",
|
||||
"sputnik.setting.puntosdedesconexion.relleno.relleno.name": "relleno",
|
||||
"sputnik.setting.putogordo.general.hambre.name": "hambre",
|
||||
"sputnik.setting.putogordo.general.hambre.desc": "cuánta hambre es necesaria para comer (puntos de comida)",
|
||||
"sputnik.setting.recorrido.general.color.desc": "color a usar",
|
||||
"sputnik.setting.recorrido.general.color.name": "color",
|
||||
"sputnik.setting.recorrido.general.esperanzadevida.desc": "cuánto duran los trazos",
|
||||
@@ -1509,4 +1563,4 @@
|
||||
"sputnik.version.info.uptodate": "el mod está al día: v%s",
|
||||
"sputnik.version.warn.check": "no se pudo comprobar si el mod está actualizado: %s",
|
||||
"sputnik.version.warn.metadata": "no se pudo construir gradle.properties desde la metadata"
|
||||
}
|
||||
}
|
||||
@@ -7,10 +7,6 @@ uniform sampler2D InSampler;
|
||||
in vec2 texCoord;
|
||||
out vec4 fragColor;
|
||||
|
||||
// 26.2 pasó los samplers con nombre a bind groups; los uniforms van en un bloque std140
|
||||
// que rellena LsdPostProcessor cada frame. el tiempo se lleva aquí en vez de leerlo de
|
||||
// Globals.GameTime porque ese es una fracción del día (se reinicia cada 24000 ticks) y
|
||||
// animaría la distorsión lentísimo con un salto cada 20 minutos
|
||||
layout(std140) uniform LsdConfig {
|
||||
float strength;
|
||||
float seed;
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
"mixins.network.ServerConnectorMixin",
|
||||
"mixins.network.YggdrasilUserApiServiceMixin",
|
||||
"mixins.player.InputMixin",
|
||||
"mixins.player.InventoryMixin",
|
||||
"mixins.player.PlayerInventoryMixin",
|
||||
"mixins.player.PlayerMixin",
|
||||
"mixins.world.BlockCollisionsMixin"
|
||||
|
||||
Reference in new issue
Block a user