minecraft
Minecraft is a game that begs for creative play and customization of elements big and small. Leave no detail unattended to by following along with our simple tutorial to customize the yellow splash screen text found on the game’s main menu with whatever quotes, quips, or information you desire.
《我的世界》是一款游戏,旨在大大小小的创意玩法和元素定制。 跟随我们的简单教程,不遗余力地使用任何引号,技巧或所需信息自定义在游戏主菜单上找到的黄色启动画面文本。
为什么要自定义初始文本? (Why Customize The Splash Text?)
You’re in the body of the article at this point which means you have more than just a passing interest in tinkering with Minecraft. While changing the splash screen text isn’t exactly installing a game changing mod or even a custom map, it’s a fun little way to personalize the game.
您目前处于本文的正文中,这意味着您对修补Minecraft的兴趣不仅仅只是过去。 虽然更改初始屏幕文本并不能完全安装更改游戏的mod甚至是自定义地图,但这是一种个性化游戏的有趣小方法。
In fact, it’s a perfect way to sneak in a message into the game to surprise your Minecraft loving kid on their birthday, play a light-hearted prank on a friend, or inject a bit of your own humor into your personal Minecraft installation.
实际上,这是一种潜入游戏的消息的完美方法,可让您的Minecraft小孩在他们的生日那天感到惊喜,对朋友发个轻松的恶作剧或向自己的Minecraft装置中注入一点自己的幽默感。
Further, it’s very easy to do and totally reversible with no permanent modification to the game necessary. How easy? Not only is it very easy to create and modify the necessary files from scratch (we’re about to explain how it all works and show you how) but at the end of the tutorial we’ll give you a veritable easy-button way to do it by providing a custom HTG download pack to get you started immediately.
此外,它非常容易做到且完全可逆,无需对游戏进行永久性修改。 有多容易? 从头开始创建和修改必要的文件不仅非常容易(我们将解释它们的工作原理并向您展示如何操作),而且在本教程结束时,我们将为您提供一种名副其实的便捷按钮,为此,请提供自定义的HTG下载包,以立即开始使用。
If you’re super impatient you can jump ahead to just grab the pack but we’d recommend you read the whole guide start to finish first because there are a few critical points (even if you’re not building the pack from scratch) that will trip up the unaware.
如果您急躁不安,可以直接抓住包装,但是我们建议您先阅读整个指南,因为有一些关键点(即使您不是从头开始构建包装),将不知不觉中绊倒。
Let’s dig in and learn a little about resource packs by crafting our own as a vehicle for loading our custom splash text.
让我们通过精心制作自己的工具来加载自定义的初始文字,来深入了解并了解一些资源包。
构造您的启动文本资源包 (Constructing Your Splash Text Resource Pack)
Before the advent of resource packs, the only way to pull off the modification we’re about to perform (and many other modifications for that matter) was to manually edit the Minecraft.jar file. This file was, and remains, an archive of Minecraft’s core files that includes game code and assets like in-game graphics, menu backgrounds, and the splash text we’re interested in changing.
在资源包出现之前,实现我们将要执行的修改(以及与此相关的许多其他修改)的唯一方法是手动编辑Minecraft.jar文件。 该文件曾经(也是现在)是Minecraft核心文件的存档,其中包括游戏代码和资产,例如游戏中的图形,菜单背景以及我们有兴趣更改的初始文本。
The original way to edit the splash text and other in-game assets was to open the Minecraft.jar file with a suitable archive tool like 7-Zip and replace the existing asset with the new asset. You can still edit the Minecraft.jar in this fashion if you really wish to (in Minecraft 1.8 the splash text file is located in the archive at \assets\minecrafts\texts\splashes.txt if you’d like to look at the master list or manually replace it).
编辑初始文本和其他游戏资产的原始方法是使用合适的存档工具(如7-Zip)打开Minecraft.jar文件,然后用新资产替换现有资产。 如果您确实愿意,仍可以以这种方式编辑Minecraft.jar(在Minecraft 1.8中,如果您希望查看母版,则初始文本文件位于\ assets \ minecrafts \ texts \ splashes.txt中的存档中。列出或手动替换它)。
While you’re certainly welcome to manually edit the file and swap out the splashes.txt, we strongly recommend you follow along with us and use a resource pack instead. Why a resource pack? Since Minecraft 1.6.1 resource packs have allowed you to easily swap out Minecraft assets for third-party assets without necessitating any Minecraft.jar editing. You can load the resource pack with a mouse click or two, you can unload it the same way, and you never have to worry about screwing up anything while you’re in the guts of the Minecraft.jar.
当然,欢迎您手动编辑文件并换出splashes.txt,但我们强烈建议您与我们一起使用,而是使用资源包。 为什么要使用资源包? 自从Minecraft 1.6.1资源包以来,您可以轻松地将Minecraft资产换成第三方资产,而无需进行任何Minecraft.jar编辑。 您可以通过单击鼠标一次或两次来加载资源包,也可以用相同的方式卸载它,而您不必担心在Minecraft.jar内时搞砸任何东西。
The only real reason we can think of to manually edit the jar file as opposed to using a resource pack is if you were bent on pranking a friend while leaving no evidence behind. Barring that, the resource pack is the way to go so let’s walk you through building a simple resource pack now.
我们可以想到手动编辑jar文件而不是使用资源包的唯一真实原因是,如果您一心想恶作剧,而又不留下任何证据。 除非如此,否则资源包是必经之路,所以让我们现在逐步构建一个简单的资源包。
创建资源包的结构 (Creating Your Resource Pack’s Structure)
The structure of resource packs big and small is quite simple. The resource pack is just a nested set of folders (which can be zipped up for easy storage or distribution) that mimics the folder structure and file names of the Minecraft assets found inside the Minecraft.jar.
大大小小的资源包的结构都非常简单。 资源包只是一组嵌套的文件夹(可以压缩以方便存储或分发),它们模仿Minecraft.jar中的Minecraft资产的文件夹结构和文件名。
When you load a resource pack the Minecraft app simply looks over the resource pack directories and uses any new assets available (for those items which have no new assets, it just uses the default assets like usual). As such we can create an ultra-simple resource pack that only has one new asset in it: the replacement splashes text.
当您加载资源包时,Minecraft应用程序仅查看资源包目录并使用任何可用的新资产(对于那些没有新资产的项目,它仅像往常一样使用默认资产)。 这样,我们可以创建一个超简单的资源包,其中仅包含一项新资产:替换内容会飞溅文本。
To get started, navigate to the resource pack folder of your current Minecraft installation. The resource pack folder is found in the following locations based on your OS:
首先,请导航到当前Minecraft安装的资源包文件夹。 根据您的操作系统,可以在以下位置找到该资源包文件夹:
Windows: %appdata%/.minecraft/resourcepacks
Windows:%appdata%/。minecraft / resourcepacks
OS X: ~/Library/Application Support/minecraft/resourcepacks
OS X:〜/ Library / Application Support / minecraft / resourcepacks
Linux: ~/.minecraft/resourcepacks/
Linux:〜/ .minecraft / resourcepacks /
Once you’ve navigated to that location, create a folder with the name you want to use for your resource pack. We like simple and direct names so let’s title the folder “Custom Splashes.”
导航到该位置后,创建一个文件夹,其名称要用于资源包。 我们喜欢简单直接的名称,因此我们将文件夹命名为“ Custom Splashes”。
Inside the “Custom Splashes” folder, create the following folders one by one, nesting each subsequent folder inside the previous folder “assets” -> “minecraft” -> “texts”. Your folder structure should look like, with including the master “resourcepacks” folder, like this:
在“ Custom Splashes”文件夹中,一个接一个地创建以下文件夹,将每个后续文件夹嵌套在上一个文件夹“ assets”->“ minecraft”->“ texts”中。 您的文件夹结构应该看起来像,包括主“ resourcepacks”文件夹,如下所示:
/resourcepacks/
/resourcepacks/
... /Custom Splashes/
... /Custom Splashes/
...... /assets/
...... /assets/
......... /minecraft/
......... /minecraft/
............ /texts/
............ /texts/
With that structure in place, it’s time to populate the folders with the necessary (and optional) asset files.
有了适当的结构,该是时候用必要的(和可选的)资产文件填充文件夹了。
填充资源包 (Populating Your Resource Pack)
Because our resource pack is so simple we only need to populate it with two required files and one optional file. The most important file in a resource pack is the MCMeta file that tells Minecraft that the collection of files is, in fact, a resource pack.
因为我们的资源包非常简单,所以我们只需要用两个必需文件和一个可选文件来填充它即可。 资源包中最重要的文件是MCMeta文件,该文件告诉Minecraft文件集合实际上是资源包。
创建元文件 (Creating the Meta File)
The MCmeta file is just a text document with a modified extension. While in the base folder of your resource pack, in our case “Custom Splashes” create a new text document and past the following text into it:
MCmeta文件只是扩展名经过修改的文本文档。 在资源包的基本文件夹中,在我们的案例中,“自定义启动”创建一个新的文本文档,并将以下文本粘贴到其中:
{
"pack":{
"pack_format":1,
"description":"Custom Splashes"
}
}
{
"pack":{
"pack_format":1,
"description":"Custom Splashes"
}
}
Save the file as “pack.mcmeta”; make sure that you save or rename it so that the mcmeta part is the actual file extension and not part of the file name (e.g. pack.mcmeta.txt won’t work).
将文件另存为“ pack.mcmeta”; 确保保存或重命名它,以便mcmeta部分是实际的文件扩展名,而不是文件名的一部分(例如pack.mcmeta.txt将不起作用)。
创建启动TXT (Creating the Splashes TXT)
The next step is to create the splashes.txt file with your custom splash text phrase in it. This step is extremely simple but there is one very big catch so listen closely.
下一步是使用您的自定义启动文本短语创建splashes.txt文件。 这一步非常简单,但是有一个很大的收获,因此请仔细听。
The splashes.txt file is just a plain old text file but you need to set the encoding correctly or else you’ll end up with annoying artifacts in your splash text. If you use a basic text editor like Notepad to create and edit the document, you’ll end up with this seemingly mysterious artifact at the beginning of your splash text.
splashes.txt文件只是一个普通的旧文本文件,但是您需要正确设置编码,否则最终您的飞溅文本中会出现令人讨厌的工件。 如果使用诸如记事本之类的基本文本编辑器来创建和编辑文档,则在初始文本的开头将出现这个看似神秘的工件。
That tiny little box contains the letters “ZWN BSP” which is a curious little artifact created when you use a text document that is UTF-8 encoded (like simple Notepad text documents are) but contains a byte order marker (BOM).
这个小小的方框包含字母“ ZWN BSP”,这是一个奇怪的小工件,当您使用经过UTF-8编码的文本文档(就像简单的记事本文本文档一样)但包含字节顺序标记(BOM)时,会创建一个奇怪的小工件。
The BOM is an invisible (to the user) and optional unicode character that appears in front of the first line of UTF encoded text to signal to the application reading the text whether the text document is encoded using 16 or 32-bit integers so that the application can set the byte order correctly.
BOM是(对于用户而言)不可见和可选的unicode字符,它出现在UTF编码文本的第一行的前面,以向应用程序发出信号,告知该文本是使用16位还是32位整数编码的文本文档,以便应用程序可以正确设置字节顺序。
Why does the Minecraft text engine spit out a little tiny block labeled “ZWN BSP” though? The unicode BOM is a character literally called the “Zero-Width No-Break SPace” and the Minecraft text engine actually displays the character that is supposed to be invisible to the end user.
为什么Minecraft文本引擎会吐出一个标记为“ ZWN BSP”的小块? Unicode BOM是一个字符,字面上被称为“零宽度无间断空格”,而Minecraft文本引擎实际上显示了最终用户不希望看到的字符。
That bit of trivia aside, it’s very simple to work around it and keep your splash text pretty. All you need to do is use a text editor that allows you to set the encoding to “UTF-8 without BOM”. Here’s a screenshot of what this looks like in the popular text editor Notepad++.
除了琐碎的琐事,解决它并保持漂亮的初始文字非常简单。 您需要做的就是使用文本编辑器,该编辑器允许您将编码设置为“不带BOM的UTF-8”。 这是流行的文本编辑器Notepad ++中的屏幕截图。
Armed with an editor that allows you to encode the text document in UTF-8 without the BOM, the rest is very simple. Navigate to the subdirectory in your new resource pack \assets\minecrafts\texts\ and create a document labeled splashes.txt. Enter as many catchy phrases or slogans as you want, one phrase per line. For testing purposes we used a single line:
配备了一个编辑器,使您可以在没有BOM的情况下以UTF-8编码文本文档,其余的操作非常简单。 导航到新资源包\ assets \ minecrafts \ texts \中的子目录,并创建一个标签为splashes.txt的文档。 根据需要输入尽可能多的吸引人的短语或口号,每行一个短语。 为了进行测试,我们使用了一行:
How-To Geek ♥'s Minecraft
How-To Geek ♥'s Minecraft
If you want to ensure that a phrase will be displayed prominently (such as a happy birthday message) limit yourself to a one-line splashes.txt so that the displayed text is limited to just that message.
如果要确保显眼地显示一个短语(例如生日快乐消息),请将您自己限制为一行的splashes.txt,以便将显示的文本限制为仅显示该消息。
创建资源包图标 (Creating a Resource Pack Icon)
Resource packs get a generic icon unless you include one. This step is completely optional but we like easy visual identifiers so we opted to take advantage of it.
资源包将获得一个通用图标,除非您将其包括在内。 此步骤是完全可选的,但是我们喜欢简单的视觉标识符,因此我们选择利用它。
To include a custom icon with your resource pack you just need to place a 128 x 128 pixel PNG file in the base directory of your resource pack with the label “pack.png”. We snagged a free Creative-Commons licensed water drop icon and modified it slightly to stand out from the generic resource pack icons. As long as you keep it within the size and file format parameters, you can use whatever you want.
要在资源包中包含自定义图标,您只需要在资源包的基本目录中放置一个128 x 128像素的PNG文件,标签为“ pack.png”。 我们获得了一个免费的Creative-Commons许可水滴图标,并对其进行了一些修改,以使其从通用资源包图标中脱颖而出。 只要将其保留在size和file format参数内,就可以使用任何所需的内容。
文件结构审查 (File Structure Review)
Let’s take a quick second to review our file structure to make sure everything is where it belongs. Your new resource pack should have the following file structure with the files exactly where we have them noted. The files we added since we created the original file structure are bolded.
让我们花点时间回顾一下我们的文件结构,以确保所有内容都在其中。 您的新资源包应具有以下文件结构,其文件应与我们注明的位置完全相同。 自创建原始文件结构以来,我们添加的文件以粗体显示。
... /Custom Splashes/
... /Custom Splashes/
...... pack.mcmeta
...... pack.mcmeta
...... pack.png
...... pack.png
...... /assets/
...... /assets/
......... /minecraft/
......... /minecraft/
............ /texts/
............ /texts/
............... splashes.txt
............... splashes.txt
If the files in your resource pack are where they belong and you made sure to edit your text document with the whole no-byte-marker trick, it’s time to try your resource pack out.
如果资源包中的文件属于它们,并且您确保使用完整的无字节标记技巧来编辑文本文档,那么现在该尝试使用资源包了。
加载资源包 (Loading Your Resource Pack)
With our resource pack created, there’s only one thing left to do: try it out! Fire up Minecraft to get started.
创建我们的资源包后,只剩下一件事要做:尝试一下! 启动Minecraft,开始使用。
Right now, without the resource pack, the splash text is pulled from the splashes.txt inside the Minecraft.jar. Click on the “Options” button at the bottom of the screen. In the “Options” menu select the “Resource Packs…” button on the lower left.
现在,没有资源包,启动文本将从Minecraft.jar中的splashes.txt中提取。 单击屏幕底部的“选项”按钮。 在“选项”菜单中,选择左下方的“资源包…”按钮。
The resource pack we just created (as well as any other resource packs you have already installed) should be displayed here. Hover over the icon for the “Custom Splashes” resource pack and click the arrow icon that appears there to move it over to the active column. Once the resource pack is listed under “Selected Resource Packs” click done to return to the main menu.
我们刚刚创建的资源包(以及您已经安装的任何其他资源包)应显示在此处。 将鼠标悬停在“自定义飞溅”资源包的图标上,然后单击出现在其中的箭头图标,将其移至活动列。 在“选定的资源包”下列出资源包后,单击“完成”以返回到主菜单。
The custom splash text won’t load until the menu is completely refreshed so you need to either restart Minecraft or just load a game world and exit to return to the main menu. After you do that, your custom splash text will appear like so.
在菜单完全刷新之前,不会加载自定义启动文本,因此您需要重新启动Minecraft或仅加载游戏世界并退出以返回主菜单。 完成此操作后,您的自定义启动文本将如下所示。
Success! Now all we need to do in the future to edit our splash text messages is to return to the splashes.txt file in our resource pack and edit it with an appropriate text editor.
成功! 现在,将来我们要编辑初始文本消息所需要做的就是返回到资源包中的splashes.txt文件,并使用适当的文本编辑器对其进行编辑。
下载HTG Custom Splash Pack (Downloading the HTG Custom Splashes Pack)
While it’s fun to create your own resource pack and see how it works, we also understand it’s nice to grab an existing resource pack and jump right into editing the splashes text. You can download the exact resource pack we created for this tutorial in zip format here.
创建自己的资源包并查看其工作方式很有趣,但我们也理解抓住现有资源包并直接跳入编辑启动文本很高兴。 您可以在此处以zip格式下载我们为本教程创建的确切资源包。
All you need to do is place it in the resource pack folder of your Minecraft installation. The only edit you’ll need to make is to open up the splashes.txt document in an appropriate text editor (if you jumped all the way to the end of this tutorial looking for the download, you’ll really want to go back and at least read the section above “Creating the Splashes TXT”).
您需要做的只是将其放在Minecraft安装的资源包文件夹中。 您唯一需要做的编辑就是在适当的文本编辑器中打开splashes.txt文档(如果您一直跳到本教程的末尾以查找下载内容,那么您确实要返回并至少请阅读“创建飞溅TXT”上方的部分)。
Save your edit, launch Minecraft, and you’ll be greeted with your new custom splash text!
保存您的编辑,启动Minecraft,您将得到新的自定义启动文本!
We’re huge fans of Minecraft around here; want to learn more about the game and further customize it? Check out our extensive Minecraft tutorial list here. Have questions about a Minecraft topic we haven’t covered? Shoot us an email at ask@howtogeek.com and we’ll do our best to answer it.
我们是Minecraft的忠实拥护者; 想更多地了解该游戏并进一步对其进行定制? 在此处查看我们广泛的Minecraft教程列表。 对我们未涵盖的Minecraft主题有疑问吗? 向我们发送电子邮件至ask@howtogeek.com,我们将尽力答复。
翻译自: https://www.howtogeek.com/207640/how-to-customize-your-minecraft-splash-screen-text/
minecraft
今天的文章我的世界原始设置_我的世界怎么调成中文分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/67911.html