大型建筑项目的建造工具
这里有什么
这将是一组工具的集合,旨在让建造大型建筑或其他结构变得更加容易。这些工具被设计为临时性工具,类似于脚手架方块:你根据需要一直使用它们,用完后将其移除即可。
第一个工具是一个 datum(基准点)。
Datum(基准点)
在现实生活中,建筑师和施工队总是从一个参考点开始,也就是项目中的“零零点”。所有其他内容都从这个起始点进行测量。有时这被称为 benchmark(水准基点),有时则称为 datum(基准点)。我将使用术语 datum,因为它的字母更少。
在开发过程中,我发现当你在世界中探索时,datum 还可以作为“家”的标记点。
如何使用
在版本 0.0.1 中,你必须启用命令才能使用 datum。未来的版本将消除对命令的依赖。
创建 datum
命令 /datum 将在玩家站立的位置放置一个 datum。
命令 /datum xxx yyy zzz 将在坐标 (xxx, yyy, zzz) 放置一个数据点。例如,/datum 240 80 -35 将在 (240, 80, -35) 放置一个数据点。
该数据点方块无法通过左键或右键破坏。玩家可以穿过它。它可以悬浮在空中。实际上没有任何方式可以与该数据点方块进行交互。它仅用于指示数据点的位置。
当存在数据点时,右上角的叠加层会显示以下内容:
- 基准点 x、y 和 z 坐标。
- 玩家相对于基准点在 x、y 和 z 方向上的距离。该距离也指示了北、南、东、西、上和下六个方向。
- 玩家相对于基准点的水平距离。(即 x 和 z 轴构成的平面上的圆形半径。)
- 玩家相对于基准点的三维距离。这是一个球面半径。
- 从基准点到玩家的指南针方位角。作者注:我不喜欢这个功能。我觉得它笨拙且几乎毫无用处。我将会用一个更好的功能来替换它。
移除数据
命令 /datum remove 会移除数据块并清除覆盖层。
移动数据
你不需要先移除现有的 datum,才能在其他位置放置新的 datum。只需使用命令 \datum 或 \datum xxx yyy zzz,即可移除现有的 datum 并在新位置创建一个新的 datum,实质上等同于移动该 datum。
使用远程控制器
在版本 0.0.2 中,添加了一个 datum 远程控制器,允许玩家在生存模式下使用 datum——即无需启用命令或作弊模式。
该远程控制器由两块秘银锭和一块魔法石水晶制作而成。秘矿是一种耀眼的白色矿石,其光芒之盛足以在黑暗中发光。魔法石则是一种多色晶体。此遥控器可像其他任何物品一样被处理和使用。
将遥控器握在右手中,右键点击即可打开一个包含三个按钮的图形界面:
- 创建 datum
- 移动 datum
- 移除 datum
这些按钮的功能与 /datum 和 /datum remove 命令完全相同。不过,目前尚无法通过遥控器执行 /datum xxx yyy zzz 命令(未来可能支持)。
关于同时拥有多个 datum?
我曾考虑添加对多个 datum 的支持,但这比我当前需求要复杂得多。我认为,拥有多个 datum 所带来的额外功能,并不值得为此投入额外的开发精力。
一次只能有一个 datum。
那如果多个玩家各自拥有 datum 呢?
截至目前,这仍是一个单人项目。我需要为 datum 方块添加“所有者”属性,以确保每个玩家的 datum 都是独立的,防止一名玩家干扰另一名玩家的 datum。现阶段,依然是一次只能有一个 datum。
在多人游戏环境中,版本 0.0.1 下的 datum 行为未知、不可预测且不受支持。目前仅限一人一 datum。
其他工具
在版本 0.0.1 中,datum 是唯一的工具。我总得有个起点。后续将会推出更多工具。欢迎提供建议。
版本 0.0.2 是我与孙子合作的作品,旨在让 datum 能在生存模式下使用。
我为什么要费心做这个?
我想建造一个巨大的球体——一个超级大的、球形死星。我写了一个简单的 Python 程序,用于计算给定半径的球体的整数 (x, y) 坐标,并尝试根据打印出的 (x, y) 坐标列表,逐层放置方块。我当时心想:“肯定有更好的方法来做这件事。” 而数据包(datum)就是那个更好的方法——它让这一切变得简单得多。
致谢
MCreator:用于创建和构建模组。
Blockbench:用于在版本 0.0.2 中构建 datum 方块。
Construction tools for large building projects
What's in here
This will end up being a collection of tools, to make it easier to build large buildings or other structures. The tools are intended to be ephemeral tools, like the scaffolding block: you use them for as long as you need them, and then you get rid of them.
The first tool is a datum.
Datum
In real life, architects and builders always start with a reference point, a zero-zero point in the project. Everything else is measured from that starting point. Sometimes this is called a benchmark, and sometimes it's called a datum. I'm going to use the term datum because it's fewer letters.
During development, I discovered that the datum also works as a "home" marker when you're exploring a world.
How to use it
In version 0.0.1, you must have commands enabled to use the datum. A future version will eliminate the need for commands.
Create a datum
The command /datum will place a datum where the player is standing.
The command /datum xxx yyy zzz will place a datum at the coordinates (xxx, yyy, zzz). For example, /datum 240 80 -35 will place a datum at (240, 80, -35).
The datum block cannot be destroyed using left click or right click. Players can walk through it. It can hang in the air. There's really no way to interact with the datum block. It only exists to show you where the datum point is.
When a datum point exists, an overlay in the upper right shows you the following items:
- The datum x, y, and z coordinates.
- The player's distance from the datum, in directions x, y, and z. The distances also show north, south, east, west, up, and down.
- The player's horizontal distance from the datum. (You know, a circular radius in x and z.)
- The player's 3D distance from the datum. This is a spherical radius.
- The compass heading from the datum to the player. Note from the author: I don't like this. I think it's clumsy and almost useless. I will replace it with something better.
Remove the datum
The command /datum remove removes the datum block and erases the overlay.
Move the datum
You don't have to remove the datum in order to place a new one somewhere else. Simply using the command \datum or \datum xxx yyy zzz will remove the existing datum and create a new one in the new location, essentially moving the datum.
Use the remote
In version 0.0.2, a datum remote is added that allows players to use the datum in survival mode - that is, without having to enable commands or cheats.
The datum remote is crafted from two mithril ingots and a magichite crystal. Mithril ore is a brilliant white ore, so brilliant that it glows in the dark. Magichite is a multicolored crystal. The remote can be treated just like any other item.
With the remote in the right hand, right-click to see a gui with three buttons:
- Create datum
- Move datum
- Remove datum
These buttons work identical to the /datum and /datum remove commands. The /datum xxx yyy zzz command is not accessible (yet) from the remote.
What about having multiple datums?
I thought of adding support for multiple datums, but that's more complicated than what I need. I don't think that the additional functionality of having multiple datums is worth the additional effort required to support multiple datums.
One datum at a time.
Yeah, but what about multiple players with datums?
So far, this is a one-player project. I would need to add an "owner" attribute to the datum block, so that each player's datum would be unique, and one player couldn't mess with another player's datum. For now, just one datum at a time.
Datum behavior in a multiplayer environment, for version 0.0.1 is unknown, unpredictable, and unsupported. For now, it's one datum, one player.
Other tools
In version 0.0.1, the datum is the only tool. I had to start somewhere. Other tools will follow. Suggestions are welcome.
Version 0.0.2 is a collaboration with my grandson to all the datum to be used in survival mode.
Why did you bother doing this?
I wanted to build a giant sphere. A freakin' huge, spherical, Death Star. I wrote a little Python program that would calculate integer (x, y) coordinates for a sphere of a given radius, and I tried to place the blocks according to the printed list of (x, y) coordinates, slice by slice. I thought, "Man, there has to be a better way to do this." The datum is the better way -- it makes it so much easier.
Credits
MCreator to create and build the mod.
Blockbench to build the datum block in Version 0.0.2.
评论 0
登录后参与评分
还没有评论,来抢沙发吧