2 Commits
Author SHA1 Message Date
Jenny bcc9472b81 1.21.3 working 2025-03-14 09:41:16 +01:00
Jenny b80f430157 remove print statement 2025-03-13 13:26:20 +01:00
2 changed files with 6 additions and 7 deletions

No files matched your search

+6 -6
View File
@@ -1,17 +1,17 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
# The Minecraft version must agree with the Forge version to get a valid artifact
minecraft_version=1.21.4
minecraft_version=1.21.3
# The Minecraft version range can use any release version of Minecraft as bounds.
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.21.4,1.22)
minecraft_version_range=[1.21.3]
# The Forge version must agree with the Minecraft version to get a valid artifact
forge_version=54.1.0
forge_version=53.0.55
# The Forge version range can use any version of Forge as bounds or match the loader version range
forge_version_range=[54,)
forge_version_range=[53,)
# The loader version range can only use the major version of Forge/FML as bounds
loader_version_range=[54,)
loader_version_range=[53,)
# The mapping channel to use for mappings.
# The default set of supported mapping channels are ["official", "snapshot", "snapshot_nodoc", "stable", "stable_nodoc"].
# Additional mapping channels can be registered through the "channelProviders" extension in a Gradle plugin.
@@ -29,7 +29,7 @@ loader_version_range=[54,)
mapping_channel=official
# The mapping version to query from the mapping channel.
# This must match the format required by the mapping channel.
mapping_version=1.21.4
mapping_version=1.21.3
# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
# Must match the String constant located in the main mod class annotated with @Mod.
mod_id=xp2items
@@ -30,7 +30,6 @@ public class xpTalisman extends Item {
private static void spawnItem(Level level, ServerPlayer player) {
List<Item> itemList = ForgeRegistries.ITEMS.getValues().stream().toList();
int xpNeeded = ServerConfig.C_XP_AMOUNT.get();
System.out.println(getPlayerXP(player));
while (true) {
int expLevelBefore = player.experienceLevel;
float expProgressBefore = player.experienceProgress;