Compare commits

..
1 Commits
Author SHA256 Message Date
Sunglocto 53dc365c0a make it PG 2026-10-26 16:03:43 +00:00
@@ -18,7 +18,7 @@ public class MidgetifyCommand {
public static void register() {
CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> {
dispatcher.register(
Commands.literal("midgetify")
Commands.literal("tiny")
.executes(context -> {
CommandSourceStack source = context.getSource();
@@ -30,7 +30,7 @@ public class MidgetifyCommand {
if (player.getAttribute(Attributes.MAX_HEALTH).getBaseValue() == 10) {
source.sendSystemMessage(
Component.literal("You are already a midget.").withColor(TextColor.RED));
Component.literal("You are already tiny.").withColor(TextColor.RED));
return 0;
}
@@ -41,11 +41,11 @@ public class MidgetifyCommand {
Component confirmBtn = Component.literal("[CONFIRM]").withStyle(style -> style
.withColor(TextColor.RED)
.withBold(true)
.withClickEvent(new ClickEvent.RunCommand("/midgetify confirm")));
.withClickEvent(new ClickEvent.RunCommand("/tiny confirm")));
source.sendSystemMessage(
Component.literal(
"Are you sure you want to become a midget? This means being 1 block tall, but also having half health.\n\nYou cannot go back on this decision.\n")
"Are you sure you want to become tiny? This means being 1 block tall, but also having half health.\n\nYou cannot go back on this decision.\n")
.append(confirmBtn));
return 1;
@@ -61,7 +61,7 @@ public class MidgetifyCommand {
}
if (player.getAttribute(Attributes.MAX_HEALTH).getBaseValue() == 10) {
source.sendSystemMessage(Component.literal("You are already a midget.")
source.sendSystemMessage(Component.literal("You are already tiny.")
.withColor(TextColor.RED));
return 0;
}
@@ -70,7 +70,7 @@ public class MidgetifyCommand {
if (!CONFIRMATION_CACHE.containsKey(playerUuid)) {
source.sendSystemMessage(Component
.literal("Nuh uh uh. Wrong order, mate.")
.literal("You need to run /tiny first before confirming.")
.withColor(TextColor.RED));
return 0;
}
@@ -80,7 +80,7 @@ public class MidgetifyCommand {
player.getAttribute(Attributes.SCALE).setBaseValue(0.5);
source.sendSystemMessage(
Component.literal("Welcome to the midget life.")
Component.literal("You are now tiny!")
.withColor(TextColor.GREEN));
return 1;
})));