A Minecraft server-side mod that adds various teleportation related commands
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

W.I.P, fixing for minecraft 1.21.2

MrSn0wy b0aec33d e0134825

+11 -11
+1 -1
common/src/main/java/dev/mrsnowy/teleport_commands/TeleportCommands.java
··· 182 182 183 183 long endFileSize = Files.size(StorageManager.STORAGE_FILE); 184 184 185 - LOGGER.info("Success! Cleaned: " + Math.round((startFileSize - endFileSize)) + "B"); 185 + LOGGER.info("Success! Cleaned: {}B", Math.round((startFileSize - endFileSize))); 186 186 } 187 187 } 188 188
+2 -2
common/src/main/java/dev/mrsnowy/teleport_commands/storage/StorageManager.java
··· 68 68 playerList.add(newPlayer); 69 69 70 70 StorageSaver(storage); 71 - TeleportCommands.LOGGER.info("Player '" + UUID + "' added successfully in storage!"); 71 + TeleportCommands.LOGGER.info("Player '{}' added successfully in storage!", UUID); 72 72 } else { 73 - TeleportCommands.LOGGER.info("Player '" + UUID + "' already exists!"); 73 + TeleportCommands.LOGGER.info("Player '{}' already exists!", UUID); 74 74 } 75 75 } 76 76
+3 -3
common/src/main/java/dev/mrsnowy/teleport_commands/utils/tools.java
··· 34 34 // before teleportation effects 35 35 world.sendParticles(ParticleTypes.SNOWFLAKE, player.getX(), player.getY() + 1, player.getZ(), 20, 0.0D, 0.0D, 0.0D, 0.01); 36 36 world.sendParticles(ParticleTypes.WHITE_SMOKE, player.getX(), player.getY(), player.getZ(), 15, 0.0D, 1.0D, 0.0D, 0.03); 37 - world.playSound(null, player.blockPosition(), SoundEvent.createVariableRangeEvent(ENDERMAN_TELEPORT.getLocation()), SoundSource.PLAYERS, 0.4f, 1.0f); 37 + world.playSound(null, player.blockPosition(), SoundEvent.createVariableRangeEvent(ENDERMAN_TELEPORT.location()), SoundSource.PLAYERS, 0.4f, 1.0f); 38 38 39 39 var flying = player.getAbilities().flying; 40 40 41 41 // teleport! 42 - player.teleportTo(world, coords.x, coords.y, coords.z, player.getYRot(), player.getXRot()); 42 + player.teleportTo(world, coords.x, coords.y, coords.z , player.getYRot(), player.getXRot(), false); 43 43 44 44 // Restore flying when teleporting dimensions 45 45 if (flying) { ··· 48 48 } 49 49 50 50 51 - world.playSound(null, player.blockPosition(), SoundEvent.createVariableRangeEvent(ENDERMAN_TELEPORT.getLocation()), SoundSource.PLAYERS, 0.4f, 1.0f); 51 + world.playSound(null, player.blockPosition(), SoundEvent.createVariableRangeEvent(ENDERMAN_TELEPORT.location()), SoundSource.PLAYERS, 0.4f, 1.0f); 52 52 Timer timer = new Timer(); 53 53 54 54 // delay visual effects so the player can see it when switching dimensions
+4 -4
gradle.properties
··· 7 7 java_version=21 8 8 9 9 # Common 10 - minecraft_version=1.21 10 + minecraft_version=1.21.2 11 11 mod_name=Teleport Commands 12 12 mod_author=Mr. Snowy 13 13 mod_id=teleport_commands 14 14 license=MIT 15 15 credits=Mr. Snowy 16 16 description=A server-side mod that adds various teleportation related commands. 17 - minecraft_version_range=[1.21] 17 + minecraft_version_range=[1.21.2-1.21.3] 18 18 19 19 # Fabric 20 20 fabric_loader_version=0.15.11 21 21 #fabric_api=0.97.0+1.20.4 22 - fabric_loom=1.6-SNAPSHOT 22 + fabric_loom=1.8-SNAPSHOT 23 23 24 24 # Quilt (Currently disabled since fabric port works better) 25 25 #quilt_loader_version=0.25.0 ··· 28 28 29 29 30 30 # NeoForge 31 - neoforge_version=21.0.0-beta 31 + neoforge_version=21.2.1-beta 32 32 neoforge_loader_version_range=[2,) 33 33 34 34 # Gradle
+1 -1
gradle/wrapper/gradle-wrapper.properties
··· 1 1 distributionBase=GRADLE_USER_HOME 2 2 distributionPath=wrapper/dists 3 - distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip 3 + distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip 4 4 networkTimeout=10000 5 5 validateDistributionUrl=true 6 6 zipStoreBase=GRADLE_USER_HOME