跳到正文

Spawn Travel

作者:gkaze77

A Simple Server-Side Mod With Simple Commands...

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

 

SERVER ONLY MOD (DOES NOTHING  IN SINGLEPLAYER)

Most of my mods, I typically just make for myself.. The useful ones I tend to put on curse!

 

For now this mod adds a command that will randomly teleport the player a certain distance away from there location.. The only catch is that this command only works at spawn so teleportation can’t really be abused much…

 

Usage: /travel (distance)

Example: /travel 500
The above example will teleport the user randomly 500 blocks away from their current position..

Code breakdown:

Basically whenever a player attempts to travel, the mod checks the config if the command meets the requirements, after it verifies it does, it then proceeds to do calculations to determine the best 'random' location to teleport the player to that's on the surface.. afterwards it has the server issue the /tp command to the player. So instead of just teleporting the player, having the sever command teleport might leave logs in case the location of teleportation is needed...

 

Config: (Allows setting of the following);

 

Control The Min/Max Possible Distance
How Close A Player Must Be To Spawn In Order To Travel
Does The Player Need To Be At Spawn To Travel

Recommended Config Settings:

I:"Max Teleportation Distance"=800
I:"Min Teleportation Distance"=400
I:"Must Be Within 'X' Blocks of Spawn To Teleport"=30
B:"Teleport From Spawn Only"=true
 

常见问题

Spawn Travel 支持哪些 Minecraft 版本?

Spawn Travel 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Spawn Travel 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

gkaze77 的其他作品

查看全部 →