Update to MC 1.21.5

This commit is contained in:
MrLetsplay 2025-04-19 18:57:44 +02:00
parent d528081b3d
commit 31a3d6b41c
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
3 changed files with 11 additions and 12 deletions

View File

@ -39,7 +39,7 @@ dependencies {
implementation "me.mrletsplay:MrCore:4.3" implementation "me.mrletsplay:MrCore:4.3"
compileOnly 'de.bluecolored:bluemap-api:2.7.3' compileOnly 'de.bluecolored:bluemap-api:2.7.4'
} }
processResources { processResources {

View File

@ -2,16 +2,16 @@
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true org.gradle.parallel=true
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.3
yarn_mappings=1.21.3+build.2
loader_version=0.16.9
# Mod Properties # Mod Properties
mod_version=1.0.0 mod_version=1.0.0
maven_group=me.mrletsplay.bmareas maven_group=me.mrletsplay.bmareas
archives_base_name=bmareas archives_base_name=bmareas
# Dependencies # Fabric Properties
fabric_version=0.112.0+1.21.3 # check these on https://fabricmc.net/develop
minecraft_version=1.21.5
yarn_mappings=1.21.5+build.1
loader_version=0.16.13
# Fabric API
fabric_version=0.120.0+1.21.5

View File

@ -5,13 +5,12 @@ import me.mrletsplay.mrcore.fabric.command.FabricCommand;
import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.ClickEvent; import net.minecraft.text.ClickEvent;
import net.minecraft.text.HoverEvent; import net.minecraft.text.HoverEvent;
import net.minecraft.text.HoverEvent.Action;
import net.minecraft.text.Text; import net.minecraft.text.Text;
import net.minecraft.util.Formatting; import net.minecraft.util.Formatting;
public class AreaCreateCommand extends FabricCommand { public class AreaCreateCommand extends FabricCommand {
private static final HoverEvent CLICK_ME = new HoverEvent(Action.SHOW_TEXT, Text.literal("Click me!")); private static final HoverEvent CLICK_ME = new HoverEvent.ShowText(Text.literal("Click me!"));
public AreaCreateCommand() { public AreaCreateCommand() {
super("create"); super("create");
@ -35,7 +34,7 @@ public class AreaCreateCommand extends FabricCommand {
p.sendMessage(Text.literal("To create an area:")); p.sendMessage(Text.literal("To create an area:"));
p.sendMessage(Text.literal("1. ").formatted(Formatting.GOLD) p.sendMessage(Text.literal("1. ").formatted(Formatting.GOLD)
.append(Text.literal("[Add]").formatted(Formatting.GREEN).styled(style -> style.withClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/area addcorner")).withHoverEvent(CLICK_ME))) .append(Text.literal("[Add]").formatted(Formatting.GREEN).styled(style -> style.withClickEvent(new ClickEvent.RunCommand("/area addcorner")).withHoverEvent(CLICK_ME)))
.append(Text.literal(" all corners of your area (or use ").formatted(Formatting.WHITE)) .append(Text.literal(" all corners of your area (or use ").formatted(Formatting.WHITE))
.append(Text.literal("/area addcorner [offset]").formatted(Formatting.GRAY)) .append(Text.literal("/area addcorner [offset]").formatted(Formatting.GRAY))
.append(Text.literal(")").formatted(Formatting.WHITE))); .append(Text.literal(")").formatted(Formatting.WHITE)));