make it PG

This commit is contained in:
Sunglocto committed 2026-10-26 16:03:43 +00:00
1 parent 5c9b2c80e1
commit 53dc365c0a
1 file changed
+7 -7
@@ -18,7 +18,7 @@ public class MidgetifyCommand {
public static void register() { public static void register() {
CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> { CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> {
dispatcher.register( dispatcher.register(
Commands.literal("midgetify") Commands.literal("tiny")
.executes(context -> { .executes(context -> {
CommandSourceStack source = context.getSource(); CommandSourceStack source = context.getSource();
@@ -30,7 +30,7 @@ public class MidgetifyCommand {
if (player.getAttribute(Attributes.MAX_HEALTH).getBaseValue() == 10) { if (player.getAttribute(Attributes.MAX_HEALTH).getBaseValue() == 10) {
source.sendSystemMessage( source.sendSystemMessage(
Component.literal("You are already a midget.").withColor(TextColor.RED)); Component.literal("You are already tiny.").withColor(TextColor.RED));
return 0; return 0;
} }
@@ -41,11 +41,11 @@ public class MidgetifyCommand {
Component confirmBtn = Component.literal("[CONFIRM]").withStyle(style -> style Component confirmBtn = Component.literal("[CONFIRM]").withStyle(style -> style
.withColor(TextColor.RED) .withColor(TextColor.RED)
.withBold(true) .withBold(true)
.withClickEvent(new ClickEvent.RunCommand("/midgetify confirm"))); .withClickEvent(new ClickEvent.RunCommand("/tiny confirm")));
source.sendSystemMessage( source.sendSystemMessage(
Component.literal( 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)); .append(confirmBtn));
return 1; return 1;
@@ -61,7 +61,7 @@ public class MidgetifyCommand {
} }
if (player.getAttribute(Attributes.MAX_HEALTH).getBaseValue() == 10) { 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)); .withColor(TextColor.RED));
return 0; return 0;
} }
@@ -70,7 +70,7 @@ public class MidgetifyCommand {
if (!CONFIRMATION_CACHE.containsKey(playerUuid)) { if (!CONFIRMATION_CACHE.containsKey(playerUuid)) {
source.sendSystemMessage(Component source.sendSystemMessage(Component
.literal("Nuh uh uh. Wrong order, mate.") .literal("You need to run /tiny first before confirming.")
.withColor(TextColor.RED)); .withColor(TextColor.RED));
return 0; return 0;
} }
@@ -80,7 +80,7 @@ public class MidgetifyCommand {
player.getAttribute(Attributes.SCALE).setBaseValue(0.5); player.getAttribute(Attributes.SCALE).setBaseValue(0.5);
source.sendSystemMessage( source.sendSystemMessage(
Component.literal("Welcome to the midget life.") Component.literal("You are now tiny!")
.withColor(TextColor.GREEN)); .withColor(TextColor.GREEN));
return 1; return 1;
}))); })));