Geocraft - Minecraft 中的 GeoGuessr
Geocraft 是一款 Minecraft 插件,允许你在 Minecraft 中游玩 GeoGuessr。
当然,它与真正的 GeoGuessr 有所不同,但概念是相同的。
经过一些配置后,你将被传送至世界中的一个伪随机位置。
你需要猜测自己身处何地,并在猜测地图上放置一面旗帜。
你猜得越接近真实位置,获得的分数就越高。
安装
- 从 发布页面 下载最新版本(即将上线)
- 将 jar 文件放入你的
plugins 文件夹
- 启动服务器
配置
配置文件位于 plugins/Geocraft/config.yml。
以下是配置文件的示例:
database:
host: localhost
port: 3306
name: geocraft
user: geocraft
password: password
mapLocation:
x: 0
y: 255
z: 0
tools:
selection:
- PAPER
materials:
grass:
- GRASS_BLOCK
- OAK_LEAVES
water:
- WATER
building:
- STONE
- COBBLESTONE
road:
- GRAY_CONCRETE
- WHITE_CONCRETE
sand:
- SAND
- SANDSTONE
数据库
数据库部分用于配置数据库连接。如果你使用 MySQL,还需要将 MySQL 驱动程序添加到服务器中。
地图位置
地图位置是生成猜测地图的位置。默认位置是世界出生点。
工具
工具部分用于配置玩家用来保存位置的工具。默认工具是纸张。
材质
材质部分用于配置生成猜测地图所使用的材质。
开始游戏
配置
要开始游戏,首先需要在数据库中保存一些数据。
幸运的是,为此有一些命令可用。首先,你需要添加一个区域(Region)。
/geocraft-create region <name>
然后,你需要向该区域添加一个城市。
/geocraft-create city <region> <name>
接着,你需要向该城市添加一个街区。
/geocraft-create district <city> <name>
最后,你需要向该街区添加一个地点。
/geocraft-create road <district> <name>
每个地点都会保存到数据库中,并用于将你传送到你的世界中。我知道这有点繁琐,但这是我找到的在数据库中保存位置的唯一方法,它允许拥有大量的地点,并允许以某些设置开始游戏。
现在你需要创建地图,它将仅使用世界的边界来生成地图。你可以使用以下命令来创建地图。
/geocraft map create <minX> <minZ> <maxX> <maxZ> <zoneType> <zoneName>
区域类型可以是:region、city、district、road 或 world。区域名称是你想要用于生成地图的区域名称。
开始游戏
现在你已经保存了一些地点并创建了地图,可以开始游戏了。你可以使用以下命令来开始游戏。
/geocraft start <zoneType> <zoneName> <time>
区域类型可以是:region、city、district、road 或 world。区域名称是你想要用于开始游戏的区域名称。时间是玩家猜测自己所处位置的时间限制。
现在其他玩家可以通过以下方式加入游戏:
/geocraft join
当所有人都加入后,你可以使用以下命令开始游戏:
/geocraft start
现在猜测地图将被构建。目前这非常耗时。我将在未来尝试对其进行优化。一旦地图构建完成,玩家将被传送到世界中的一个伪随机位置。他们需要猜测自己身处何地,并在猜测地图上放置一面旗帜。
要前往猜测地图,你可以使用以下命令:
/geocraft-guess tp
使用相同的命令返回游戏。
计时结束后,游戏结束,玩家将被传送回他们之前的位置。在未来,他们将找回他们的物品栏。
命令
/geocraft-create region <name>:创建一个区域
/geocraft-create city <region> <name>:创建一个城市
/geocraft-create district <city> <name>:创建一个街区
/geocraft-create road <district> <name>:创建一个地点
/geocraft map create <minX> <minZ> <maxX> <maxZ> <zoneType> <zoneName>:创建一张地图
/geocraft start <zoneType> <zoneName> <time>:开始一场游戏
/geocraft join:加入一场游戏
/geocraft start:开始一场游戏
/geocraft-guess tp:传送至猜测地图(以及返回游戏)
/geocraft-reloaddb:重载数据库
Geocraft - Geoguessr but in Minecraft
Geocraft is a Minecraft plugin that allows you to play Geoguessr in Minecraft.
Of course, it's different from the real Geoguessr but the concept is the same.
After some configurations, you will be teleported to a pseudo-random location
in your world. You will have guess where you are and put a banner on the guess
map. The closer you are to the real location, the more points you will get.
Installation
- Download the latest release from the releases page (It will be available soon)
- Put the jar file in your plugins folder
- Start your server
Configuration
The configuration file is located in the plugins/Geocraft/config.yml file.
Here is an example of the configuration file:
database:
host: localhost
port: 3306
name: geocraft
user: geocraft
password: password
mapLocation:
x: 0
y: 255
z: 0
tools:
selection:
- PAPER
materials:
grass:
- GRASS_BLOCK
- OAK_LEAVES
water:
- WATER
building:
- STONE
- COBBLESTONE
road:
- GRAY_CONCRETE
- WHITE_CONCRETE
sand:
- SAND
- SANDSTONE
Database
The database section is used to configure the database connection. If you use
MySQL, you should also add the MySQL driver to your server.
Map Location
The map location is the location where the guess map will be generated. The
default location is the world spawn.
Tools
The tools section is used to configure the tools that the player can use to
save locations. The default tool is the paper.
Materials
The materials section is used to configure the materials that will be used to
generate the guess map.
Start a game
Configuration
To start a game, you will first need to save some data in the database.
Happily there are some commands for that purpose. First you will need to add
a Region.
/geocraft-create region <name>
Then you will need to add a city to the region.
/geocraft-create city <region> <name>
Then, you will need to add a district to the city.
/geocraft-create district <city> <name>
Finally, you will need to add a location to the district.
/geocraft-create road <district> <name>
Each location will be saved in the database and will be used to teleport you
in your world. I know that it's a bit long but it's the only way to save
locations in the database that I found and it allows to have a lot of
locations and to start a game with some settings.
Now you need to create the map, it's only the limit of your world that will
be used to generate the map. You can use the following command to create the
map.
/geocraft map create <minX> <minZ> <maxX> <maxZ> <zoneType> <zoneName>
The zone type can be : region, city, district or road, world. The zone name is
the name of the zone that you want to use to generate the map.
Start the game
Now that you have saved some locations and created the map, you can start the
game. You can use the following command to start the game.
/geocraft start <zoneType> <zoneName> <time>
The zone type can be : region, city, district or road, world. The zone name is
the name of the zone that you want to use to start the game. The time is the
time that the player will have to guess where he is.
Now the other players can join the game with :
/geocraft join
Once everyone has joined , you could start the game with :
/geocraft start
Now the guess map will be built. For now, it's very long. I will try to
optimize it in the future. Once the map is built, the players will be
teleported to a pseudo-random location in the world. They will have to guess
where they are and put a banner on the guess map.
To go to the guess map, you can use the following command :
/geocraft-guess tp
Use the same commands to go back to the game.
Once the timer is over, the game will be over and the players will be
teleported back to their previous location. In the future they will get back
their inventory too.
Commands
/geocraft-create region <name> : Create a region
/geocraft-create city <region> <name> : Create a city
/geocraft-create district <city> <name> : Create a district
/geocraft-create road <district> <name> : Create a location
/geocraft map create <minX> <minZ> <maxX> <maxZ> <zoneType> <zoneName> : Create a map
/geocraft start <zoneType> <zoneName> <time> : Start a game
/geocraft join : Join a game
/geocraft start : Start a game
/geocraft-guess tp : Teleport to the guess map (and back to the game)
/geocraft-reloaddb : Reload the database
评论 0
登录后参与评分
还没有评论,来抢沙发吧