猜猜谁是谁
本帖最后由 猜猜谁是谁 于 2021-8-17 20:46 编辑


概述
本教程大部分翻译自CMM原简介页面CMM原教程页面,也有一小部分内容为原创
在本教程前,站内对CMM的教程,例如 一等品内裤的教程823520243的教程
但依旧没有达到一个规范化的地步
因此本教程想要通过原帖的教程及个人的一些经验来把该教程规范化
注:切换章节之间点击上方的目录文字即可,章节内可能部分图片加载较慢,请耐心等候


2021.12 数据,可能有更多内容


概述
本教程大部分翻译自CMM原简介页面CMM原教程页面,也有一小部分内容为原创在本教程前,站内对CMM的教程,例如 一等品内裤的教程823520243的教程但依旧没有达到一个规范化的地步因此本教程想要通过原帖的教程及个人的一些经验来把该教程规范化注:切换章节之间点击上方的目录文字即可,章节内可能部分图片加载较慢,请耐心等候




自定义主界面
这个Mod能让你用JSON文本修改游戏主界面,你几乎可以修改原版界面中所有的内容和它的位置。除此之外,你还可以添加一些新元素到你的界面,例如幻灯片及全新的子界面。但是如果你只是想要做一些简简单单的事例如增改文本的话,你无需自己写一个界面出来,这个Mod会生成一个与原版界面一样的JSON文件,你就可以直接在这个JSON文件上进行改动了以下是一些只通过该Mod实现的一些界面
注:以下的章节建议与“使用示例”搭配食用更加




行为
行为将会在玩家点击一个按钮或文本时被执行,以下是各种各样的行为,可以用来打开Gui、连接到服务器或加载一个世界


  • 行为类型: openLink , openGui , quit , refresh , connectToServer , loadWorld , openFolder
(打开链接,打开Gui,退出游戏,刷新[本mod新增功能],连接至服务器,加载世界,打开文件夹)


几乎每个行为类型都要附加一个值来明确它要做的事以及怎么做(以下说明了各个类型需要的附加值)


openLink(打开链接):┕ link:指定要打开的链接


openGui(打开Gui):
┕ gui:指定要打开的gui,可以在下面的折叠部分查看原版支持的Gui,也可以自定义一个Gui(详见“自定义Gui”章节)


代码:

  1. mods
  2. singleplayer
  3. singleplayer.createworld
  4. multiplayer
  5. options
  6. languages
  7. options.ressourcepacks
  8. options.snooper
  9. options.sounds
  10. options.video
  11. options.controls
  12. options.multiplayer
(mods:Forge的mods列表界面
singleplayer:单人游戏选择地图界面
singleplayer.createworld:单人游戏创建地图界面
multiplayer:多人游戏选择服务器界面
options:设置界面
languages:语言选择界面
options.ressourcepacks:设置材质包界面
options.snooper:匿名消息反馈设置界面
options.sounds:设置音量界面
options.video:视频设置界面
options.controls:控制界面options.multiplayer:多人游戏设置界面)




connectToServer(连接至服务器):┕ ip:要连接的服务器ip


loadWorld(加载世界):┕ dirName:在save文件夹里地图文件夹的名称(与saveName的差异详见下图)┕ saveName:在游戏中地图的名称(与dirName的差异详见下图)



openFolder(加载文件夹):┕ folderName:要打开的文件夹名称(以.minecraft文件夹作为根目录)
quit(退出游戏)和refresh(刷新)不需要任何附加值注:JSON对大小写和连接时的“,”相当敏感,如遇到加载失败的情况可检查有无这类遗漏,后文中不再提醒




对齐
对齐的属性有这些:
  • top_left(左上方)
  • top_center(上方中心)
  • top_right(右上方)
  • left_center(左方中心)
  • center(中心)
  • right_center(右方中心)
  • button(下方)
  • bottom_left(左下方)
  • bottom_center(下方中心)
  • bottom_right(右下方)
你也可以像下面的文本一样自己定义一个对齐属性
节选

代码:

  1. "alignments":
  2.     {
  3.   "c1":
  4.   {
  5.    "factorWidth" : 0.5,
  6.    "factorHeight" : 0.7
  7.   },

  8.   "c2":
  9.   {
  10.    "factorWidth" : 0.2,
  11.    "factorHeight" : 0.2
  12.   }
  13.     },
全文

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : -137,
  8.    "posY" : 30,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : -100,
  21.    "posY" : 48,
  22.    "width" : 200,
  23.    "height" : 20,
  24.    "action" :
  25.    {
  26.     "type" : "openGui",
  27.     "gui" : "singleplayer"
  28.    }
  29.   },
  30.  
  31.   "multiplayer":
  32.   {
  33.    "text" : "menu.multiplayer",
  34.    "posX" : -100,
  35.    "posY" : 72,
  36.    "width" : 200,
  37.    "height" : 20,
  38.    "action" :
  39.    {
  40.     "type" : "openGui",
  41.     "gui" : "multiplayer"
  42.    }
  43.   },
  44.  
  45.   "mods":
  46.   {
  47.    "text" : "fml.menu.mods",
  48.    "posX" : -100,
  49.    "posY" : 96,
  50.    "width" : 200,
  51.    "height" : 20,
  52.    "action" :
  53.    {
  54.     "type" : "openGui",
  55.     "gui" : "mods"
  56.    }
  57.   },
  58.    
  59.   "options":
  60.   {
  61.    "text" : "menu.options",
  62.    "posX" : -100,
  63.    "posY" : 132,
  64.    "width" : 98,
  65.    "height" : 20,
  66.    "action" :
  67.    {
  68.     "type" : "openGui",
  69.     "gui" : "options"
  70.    }
  71.   },
  72.  
  73.   "quit":
  74.   {
  75.    "text" : "menu.quit",
  76.    "posX" : 2,
  77.    "posY" : 132,
  78.    "width" : 98,
  79.    "height" : 20,
  80.    "action" :
  81.    {
  82.     "type" : "quit"
  83.    }
  84.   },
  85.  
  86.   "language":
  87.   {
  88.    "text" : "",
  89.    "posX" : -124,
  90.    "posY" : 132,
  91.    "width" : 20,
  92.    "height" : 20,
  93.    "action" :
  94.    {
  95.     "type" : "openGui",
  96.     "gui" : "languages"
  97.    }
  98.   },
  99.  
  100.   "refresh":
  101.   {
  102.    "text" : "",
  103.    "posX" : -154,
  104.    "posY" : 132,
  105.    "width" : 20,
  106.    "height" : 20,
  107.    "texture" : "custommainmenu:textures/gui/buttons.png",
  108.    "action" :
  109.    {
  110.     "type" : "refresh"
  111.    }
  112.   }
  113.     },
  114.    
  115.     "texts":
  116.     {
  117.   "mojang":
  118.   {
  119.    "text" : "Copyright Mojang AB. Do not distribute!",
  120.    "posX" : -197,
  121.    "posY" : -10,
  122.    "color" : -1,
  123.    "alignment" : "c1"
  124.   },
  125.  
  126.   "fml":
  127.   {
  128.    "text" : "",
  129.    "posX" : 2,
  130.    "posY" : -50,
  131.    "color" : -1,
  132.    "alignment" : "c2"
  133.   }
  134.     },

  135.     "alignments":
  136.     {
  137.   "c1":
  138.   {
  139.    "factorWidth" : 0.5,
  140.    "factorHeight" : 0.7
  141.   },

  142.   "c2":
  143.   {
  144.    "factorWidth" : 0.2,
  145.    "factorHeight" : 0.2
  146.   }
  147.     },
  148.    
  149.     "other":
  150.     {
  151.   "splash-text":
  152.   {
  153.    "posX" : 90,
  154.    "posY" : 70,
  155.    "color" : -256,
  156.    "alignment" : "top_center",
  157.    "file" : "texts/splashes.txt"
  158.   },
  159.  
  160.   "panorama":
  161.   {
  162.    "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
  163.    "animate" : true,
  164.    "animationSpeed" : 1,
  165.    "blur" : true,
  166.    "gradient" : true
  167.   }
  168.     }
  169. }




自定义Gui
使用本Mod也可以制作全新的界面,只需要在config文件夹中创建更多JSON文件,这些文件的文件名就是Gui的名字,如果你想要打开它通过将一个按钮的“行为”设置成openGui,附加值(gui)就是custom.GUINAME(其中GUINAME表示Gui的名称)




元素
元素的使用量没有限制(具体元素请看子章节)




按钮
按钮在被按下时会触发“行为”,这些行为可以用于打开Gui、连接至服务器、打开链接以及加载世界(详见“行为”章节)
以下是按钮的属性:
  • PosX:按钮的X坐标
  • PosY:按钮的Y坐标
  • width:按钮的宽度
  • height:按钮的高度
  • imageWidth:(可选)在图片中按钮的宽度(默认:高度)
  • imageHeight:(可选)在图片中按钮的高度(默认:宽度)
  • texture:(可选)这个按钮材质的路径,这个材质要包含正常和鼠标悬停的按钮样式,下方的折叠中是一个200*20的按钮




  • text:按钮上显示的文本(详见“文本类型”章节)(文本可以是一个语言关键字或是一段普通的文字)
  • hoverText:当鼠标悬浮在按钮上时显示的文本(详见“文本类型”章节)(文本可以是一个语言关键字或是一段普通的文字)
  • normalTextColor:(可选)一个代表RGB颜色的整数,代表按钮上字体的颜色
  • hoverTextColor:(可选)一个代表RGB颜色的整数,代表当鼠标悬浮在按钮上时字体的颜色
  • pressSound:(可选)一个路径,表示当按钮被按下时发出的声音
  • hoverSound:(可选)一个路径,表示当鼠标悬停在按钮上时发出的声音
  • tooltip:(可选)当鼠标悬停在按钮上时,出现的文本(详见“文本类型”章节)
  • action:(可选)当按钮被点击时它要做的事(详见“行为”章节)
  • alignment:(可选)详见“对齐”章节
  • textOffsetX:(可选)按钮上文本位置的X偏移量
  • textOffsetY:(可选)按钮上文本位置的Y偏移量

*“一个代表RGB颜色的整数”:指通过颜色的三个RGB数值(分别代表红、绿、蓝的颜色),通过一个公式计算得出的数字,后文同。公式如下:

代码:

  1. 所得数字 = R * 256 * 256 + G * 256 + B
(这样就能使每个RGB都有对应的整数,且不遗漏不重复,思考一下原理是什么呢?




图像
图像可以是本地预置的图像,也可以是从网络上获取的
以下是图像的属性:
  • PosX:图像的X坐标
  • PosY:图像的Y坐标
  • width:图像的宽度
  • height:图像的高度
  • image:图像的路径
  • hoverImage:鼠标悬停在图像上时的路径
  • alignment:(可选)详见“对齐”章节
  • slideshow:(可选)详见“幻灯片”章节




标签
标签可以用来显示多样的文字
以下是标签的属性:
  • PosX:标签的X坐标
  • PosY:标签的Y坐标
  • color:一个代表RGB颜色的整数,代表标签文本的颜色(颜色代码“§”的优先级高于它)
  • hoverColor:(可选)一个代表RGB颜色的整数,代表鼠标悬停在标签上时文本的颜色(颜色代码“§”的优先级高于它)
  • text:显示的文本(详见“文本类型”章节)(可以包含颜色代码“§”)
  • hoverText:鼠标悬停在标签上时显示的文本(详见“文本类型”章节)(可以包含颜色代码“§”)
  • anchor:(可选)可以是"start"(缺省值),"middle","end"中的任意一个,它们分别可以让文本靠左、中、右
  • action:(可选)当标签被点击时会触发的行为(详见“行为”章节)
  • alignment:(可选)详见“对齐”章节
  • fontSize:文本的大小,缺省值是1,2的话就是两倍大小
  • pressSound:(可选)一个路径,表示当文本被按下时发出的声音
  • hoverSound:(可选)一个路径,表示当鼠标悬停在文本上时发出的声音




使用入门
在安装好该Mod并打开一次游戏后,你会发现:
  • 在你的主界面多了一个“刷新”按钮,这个按钮可以让你在修改完JSON文件后不必重启游戏来查看效果,你也可以用Ctrl+R来直接刷新
  • 在.minecraft\config\CustomMainMenu下将会有一个文件叫做mainmenu.json,这个文件在该目录下找不到相同文件时会自动生成。一般情况下,它会生成一份与原版界面一致的JSON文件,如果你想改变主界面建议从它开始
通常你只要看看原版界面的JSON文件就可以学到很多东西了




Gui尺寸
你可以为不同界面尺寸来设计不同大小的Gui。一般情况下,同一个JSON文件被用于所有界面尺寸,但是你可以添加例外,通过重命名JSON文件的名称,像这样:"mainmenu_auto.json" / "mainmenu_large.json" / "mainmenu_[].json"(分别对应“自动”、“大”、“所有”)没有指定大小的文件就是默认启用的文件,指定了大小的文件用于特殊的界面尺寸




其它
以下元素限制量为1个/每个界面(详见子章节)




背景
本Mod的背景稍稍和原版不同,除了原版的样式外,它还可以是一张静态图片或是幻灯片你也可以把背景的悬赏设置成"options"(具体就是这样:"background" : "options")来让背景是原版的背景设置(泥土)(详见下方折叠),这同样会和该Mod作者的另一个Mod作品自定义背景一起运作
以下是背景的属性:
  • image:背景图片的路径
  • mode:(可选)可以是"fill","stretch","center"或是"tile"(详见“背景模式”章节)
  • slideshow:(可选)详见“幻灯片”章节




背景模式
背景模式告诉Mod它应该如何操作来适应Minecraft窗口
  • fill:会保持图像的纵横比,如果与窗口大小不匹配将会裁剪图像
  • stretch:会调整图像来让它适合窗口大小,它不保持图像的纵横比
  • center:将会保持图像在窗口中心,如果太大把图像裁剪,如果太小窗口会有黑边
  • tile:将会用指定图像的网格填充窗口,这对某些材质是很有帮助的




幻灯片
(为了缩小图片大小而裁剪了录制区域及帧率,抱歉)幻灯片在静态图片中循环,每张图片之间会有一个过渡效果下面的折叠是一个幻灯片的JSON样例

代码:

  1. "background":
  2.   {
  3.    "image" : "",
  4.    "slideshow":
  5.    {
  6.     "images" : ["mainmenu:screenshot1.png","mainmenu:screenshot2.png","mainmenu:screenshot3.png"],
  7.     "displayDuration" : 100,
  8.     "fadeDuration" : 40
  9.    }
  10.   }
以下是幻灯片的属性:
  • images:一套图组,它会出现在幻灯片中(具体就是 "images":["image1.png","image2.png"] )
  • displayDuration:一张图片在屏幕上显示的时间(以Tick为单位)
  • fadeDuration:渐弱动画的时间(以Tick为单位)
  • shuffle:图片的顺序是否随机
  • synced:详见“同步”章节




全景图
全景图即为原版界面的背景,它由6张图片组成
以下是全景图的属性:
  • images:组成全景图的6张图片,%c可以代替0-5来获得6张图片
  • blur:全景图是否模糊
  • gradient:全景图是否要有从白到黑的变化(?)
  • animate:全景图是否要旋转
  • animationSpeed:全景图要旋转多快
  • position:从哪张图片开始旋转
  • synced:详见“同步”章节




闪烁文本
就是...闪烁文本啊
以下是闪烁文本的属性:
  • PosX:闪烁文本的X坐标
  • PosY:闪烁文本的Y坐标
  • color:一个代表RGB颜色的整数,代表闪烁文本的颜色
  • texts:(可选)可能成为闪烁文本的文字(详见“文本类型”章节)(译者注:建议直接食用原版中的闪烁文本文件,即"file:minecraft:texts/splashes.txt")
  • alignment:(可选)详见“对齐”章节
  • synced:详见“同步”章节




功能性字符串
在运行时,文本中的功能性字符串会转化为一些其它的数据
  • #mcversion#:MC的版本号
  • #fmlversion#:FML的版本号
  • #mcpversion#:MCP的版本号
  • #forgeversion#:Forge的版本号
  • #modsloaded#:多少Mod被加载了
  • #modsactive#:多少Mod运行中
  • #time#:当前时间
  • #username#:玩家的用户名
  • #date#:确切的日期(取决于系统的区域设置)




同步
同步是幻灯片、全景图和闪烁文本的一个属性。如果它被设置为true那么这个界面就不会创建自己的幻灯片/全景图/闪烁文本,而是继续沿用主界面的设定。因此,当切换界面时,幻灯片和全景图会继续运行,闪烁文本也不会改变
注意,你应该设置该属性到子界面,让它沿用主界面的设定而不是把这个属性设置在主界面。此外,如果你的主界面没有设置幻灯片/全景图/闪烁文本,但是在你的子界面上使用了该属性,那你的游戏可能会崩溃
注意,同步只对幻灯片背景生效,而不对非背景的幻灯片生效




文本类型
一般在Gui上可见的所有文本(标签,按钮上的文本和闪烁文本)可以用三种不同形式来定义1、从资源中加载

代码:

  1. "splash-text":
  2. {
  3. "posX" : 90,
  4. "posY" : 70,
  5. "color" : -256,
  6. "alignment" : "top_center",
  7. "texts" : "file:minecraft:texts/splashes.txt"
  8. }
以"file:"开头,随后是要加载的文本文件路径2、从一个网址中读取

代码:

  1. "changelog":
  2. {
  3. "text":"web:http://pastebin.com/raw.php?i=MmSCr6zV",
  4. "posX" : 2,
  5. "posY" : 0,
  6. "color" : -1,
  7. "alignment" : "left_center"
  8. }
以"web:"开头,随后是要加载的文本文件网址(支持http与https)3、静态文本

代码:

  1. "mojang":
  2. {
  3. "text" : "Copyright Mojang AB. Do not distribute!",
  4. "posX" : -197,
  5. "posY" : -10,
  6. "color" : -1,
  7. "alignment" : "bottom_right"
  8. }
4、新方法

代码:

  1. "label":
  2. {
  3.   "text" :
  4.   {
  5.     "type" : "web",
  6.     "url" : "URL",
  7.     "refreshInterval" : 60
  8.   },
  9.   "posX" : 0,
  10.   "posY" : 80,
  11.   ...
  12. }
其中“refreshInterval”指刷新间隔,以tick为单位,至少要>=60(一般情况下20ticks等于1秒,即不能少于3秒)




经验总结
以下是我个人的一些经验总结,(或许)会不定期更新
1、每个元素的对齐属性最好加上,不然你可能会碰上分辨率不同,元素的位置也不同的尴尬情况2、做界面最好事先要有一个构思,例如哪里要有一个按钮,这个按钮要有什么功能之类的...3、如果没思路应该做什么、怎么做,可以看看下一章“使用示例”原版JSON真的可以教你很多东西(例如把格式记住了那你的JSON看上去会更好)4、如果你的JSON文件有语法错误,那么启动游戏时可能会崩溃5、如果你的元素的属性有误,这个Mod好像会无视掉它(似乎是因为属性是用双引号括起来的?)6、这里是在编写JSON时,容易犯的错误:


1)开头、结尾没有括号2)括号对不起来(一般是因为编辑时不小心扣掉的)3)衔接不同行时没用“,”4)JSON只支持英文标点符号,别误开了输入法
7、如果在JSON文本中的中文显示正常,但在游戏中乱码,试试切换编码(一般用ANSI)8、建议使用文本编辑软件Notepad++




使用示例
以下是一些JSON示例(有一些示例使用了非原版材质,使用在自己的JSON文件上会变成紫黑状)1、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : -137,
  8.    "posY" : 30,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : -100,
  21.    "posY" : 48,
  22.    "width" : 200,
  23.    "height" : 20
  24.   },
  25.  
  26.   "multiplayer":
  27.   {
  28.    "text" : "menu.multiplayer",
  29.    "posX" : -100,
  30.    "posY" : 72,
  31.    "width" : 200,
  32.    "height" : 20
  33.   },
  34.  
  35.   "mods":
  36.   {
  37.    "text" : "fml.menu.mods",
  38.    "posX" : -100,
  39.    "posY" : 96,
  40.    "width" : 200,
  41.    "height" : 20
  42.   },
  43.    
  44.   "options":
  45.   {
  46.    "text" : "menu.options",
  47.    "posX" : -100,
  48.    "posY" : 132,
  49.    "width" : 98,
  50.    "height" : 20
  51.   },
  52.  
  53.   "quit":
  54.   {
  55.    "text" : "menu.quit",
  56.    "posX" : 2,
  57.    "posY" : 132,
  58.    "width" : 98,
  59.    "height" : 20
  60.   },
  61.  
  62.   "language":
  63.   {
  64.    "text" : "",
  65.    "posX" : -124,
  66.    "posY" : 132,
  67.    "width" : 20,
  68.    "height" : 20
  69.   }
  70.     },
  71.    
  72.     "texts":
  73.     {
  74.   "mojang":
  75.   {
  76.    "text" : "",
  77.    "posX" : -197,
  78.    "posY" : -10,
  79.    "color" : -1,
  80.    "alignment" : "bottom_right"
  81.   },
  82.  
  83.   "fml":
  84.   {
  85.    "text" : "",
  86.    "posX" : 2,
  87.    "posY" : -50,
  88.    "color" : -1,
  89.    "alignment" : "bottom_left"
  90.   },
  91.  
  92.   "example":
  93.   {
  94.    "text" : "§1Bottom §2left §4aligned",
  95.    "posX" : 2,
  96.    "posY" : -60,
  97.    "color" : -1,
  98.    "alignment" : "bottom_left"
  99.   }
  100.     },
  101.    
  102.     "other":
  103.     {
  104.   "splash-text":
  105.   {
  106.    "posX" : 90,
  107.    "posY" : 70,
  108.    "color" : -256,
  109.    "alignment" : "top_center"
  110.   }
  111.     }
  112. }
结果
2、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : -137,
  8.    "posY" : 30,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : -100,
  21.    "posY" : 48,
  22.    "width" : 200,
  23.    "height" : 20
  24.   },
  25.  
  26.   "multiplayer":
  27.   {
  28.    "text" : "menu.multiplayer",
  29.    "posX" : -100,
  30.    "posY" : 72,
  31.    "width" : 200,
  32.    "height" : 20
  33.   },
  34.    
  35.   "options":
  36.   {
  37.    "text" : "menu.options",
  38.    "posX" : -100,
  39.    "posY" : 96,
  40.    "width" : 98,
  41.    "height" : 20
  42.   },
  43.  
  44.   "quit":
  45.   {
  46.    "text" : "menu.quit",
  47.    "posX" : 2,
  48.    "posY" : 96,
  49.    "width" : 98,
  50.    "height" : 20
  51.   },
  52.  
  53.   "language":
  54.   {
  55.    "text" : "",
  56.    "posX" : -124,
  57.    "posY" : 96,
  58.    "width" : 20,
  59.    "height" : 20
  60.   }
  61.     },
  62.    
  63.     "texts":
  64.     {
  65.   "mojang":
  66.   {
  67.    "text" : "",
  68.    "posX" : -197,
  69.    "posY" : -10,
  70.    "color" : 16711680,
  71.    "alignment" : "bottom_right"
  72.   }
  73.     },
  74.    
  75.     "other":
  76.     {
  77.   "splash-text":
  78.   {
  79.    "posX" : 90,
  80.    "posY" : 70,
  81.    "color" : -256,
  82.    "alignment" : "top_center"
  83.   }
  84.     }
  85. }
结果
3、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : 137,
  8.    "posY" : -19,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "left_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : 4,
  21.    "posY" : -46,
  22.    "width" : 100,
  23.    "height" : 20,
  24.    "alignment" : "left_center"
  25.   },
  26.  
  27.   "multiplayer":
  28.   {
  29.    "text" : "menu.multiplayer",
  30.    "posX" : 4,
  31.    "posY" : -22,
  32.    "width" : 100,
  33.    "height" : 20,
  34.    "alignment" : "left_center"
  35.   },
  36.    
  37.   "options":
  38.   {
  39.    "text" : "menu.options",
  40.    "posX" : 4,
  41.    "posY" : 2,
  42.    "width" : 100,
  43.    "height" : 20,
  44.    "alignment" : "left_center"
  45.   },
  46.  
  47.   "quit":
  48.   {
  49.    "text" : "menu.quit",
  50.    "posX" : 4,
  51.    "posY" : 26,
  52.    "width" : 100,
  53.    "height" : 20,
  54.    "alignment" : "left_center"
  55.   }
  56.     },
  57.    
  58.     "texts":
  59.     {
  60.   "mojang":
  61.   {
  62.    "text" : "",
  63.    "posX" : -197,
  64.    "posY" : -10,
  65.    "color" : 150,
  66.    "alignment" : "bottom_right"
  67.   }
  68.     },
  69.    
  70.     "other":
  71.     {
  72.   "splash-text":
  73.   {
  74.    "posX" : 400,
  75.    "posY" : 10,
  76.    "color" : 13055,
  77.    "alignment" : "left_center"
  78.   }
  79.     }
  80. }
结果
4、示例(不提供)
结果
5、示例

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/modPackLogo.png",
  7.    "posX" : -173,
  8.    "posY" : -70,
  9.    "width" : 346,
  10.    "height" : 77,
  11.    "alignment" : "center"
  12.   },

  13.   "title2":
  14.   {
  15.    "image" : "custommainmenu:textures/gui/checkOutWebsite.png",
  16.    "posX" : -93,
  17.    "posY" : 45,
  18.    "width" : 187,
  19.    "height" : 19,
  20.    "alignment" : "center"
  21.   }
  22.     },
  23.    
  24.     "buttons":
  25.     {
  26.   "singleplayer":
  27.   {
  28.    "text" : "menu.singleplayer",
  29.    "posX" : 4,
  30.    "posY" : -25,
  31.    "width" : 100,
  32.    "height" : 20,
  33.    "alignment" : "bottom_left"
  34.   },
  35.    
  36.   "multiplayer":
  37.   {
  38.    "text" : "menu.multiplayer",
  39.    "posX" : -165,
  40.    "posY" : 15,
  41.    "width" : 100,
  42.    "height" : 20,
  43.    "alignment" : "center"
  44.   },
  45.  
  46.   "options":
  47.   {
  48.    "text" : "menu.options",
  49.    "posX" : -53,
  50.    "posY" : 15,
  51.    "width" : 100,
  52.    "height" : 20,
  53.    "alignment" : "center"
  54.   },
  55.    
  56.   "quit":
  57.   {
  58.    "text" : "menu.quit",
  59.    "posX" : 59,
  60.    "posY" : 15,
  61.    "width" : 100,
  62.    "height" : 20,
  63.    "alignment" : "center"
  64.   }
  65.     },
  66.    
  67.     "texts":
  68.     {
  69.     },
  70.    
  71.     "other":
  72.     {
  73.     }
  74. }
结果
6、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "textures:menu/me4.png",
  7.    "posX" : -291,
  8.    "posY" : 40,
  9.    "width" : 582,
  10.    "height" : 63,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : -100,
  21.    "posY" : 48,
  22.    "width" : 200,
  23.    "height" : 20,
  24.    "texture" : "textures:menu/button1.png",
  25.    "normalTextColor" : 0,
  26.    "hoverTextColor" : 16777215,
  27.    "shadow" : false
  28.   },
  29.    
  30.   "multiplayer":
  31.   {
  32.    "text" : "menu.multiplayer",
  33.    "posX" : -100,
  34.    "posY" : 72,
  35.    "width" : 200,
  36.    "height" : 20,
  37.    "texture" : "textures:menu/button1.png",
  38.    "normalTextColor" : 0,
  39.    "hoverTextColor" : 16777215,
  40.    "shadow" : false
  41.   },
  42.    
  43.   "mods":
  44.   {
  45.    "text" : "fml.menu.mods",
  46.    "posX" : -100,
  47.    "posY" : 96,
  48.    "width" : 200,
  49.    "height" : 20,
  50.    "texture" : "textures:menu/button1.png",
  51.    "normalTextColor" : 0,
  52.    "hoverTextColor" : 16777215,
  53.    "shadow" : false
  54.   },
  55.  
  56.   "options":
  57.   {
  58.    "text" : "menu.options",
  59.    "posX" : -100,
  60.    "posY" : 132,
  61.    "width" : 98,
  62.    "height" : 20,
  63.    "texture" : "textures:menu/button2.png",
  64.    "normalTextColor" : 0,
  65.    "hoverTextColor" : 16777215,
  66.    "shadow" : false
  67.   },
  68.    
  69.   "quit":
  70.   {
  71.    "text" : "menu.quit",
  72.    "posX" : 2,
  73.    "posY" : 132,
  74.    "width" : 98,
  75.    "height" : 20,
  76.    "texture" : "textures:menu/button2.png",
  77.    "normalTextColor" : 0,
  78.    "hoverTextColor" : 16777215,
  79.    "shadow" : false
  80.   },
  81.    
  82.   "language":
  83.   {
  84.    "text" : "",
  85.    "posX" : -124,
  86.    "posY" : 132,
  87.    "width" : 20,
  88.    "height" : 20,
  89.    "texture" : "textures:menu/language.png"
  90.   }
  91.     },
  92.    
  93.     "texts":
  94.     {
  95.   "mojang":
  96.   {
  97.    "text" : "",
  98.    "posX" : -197,
  99.    "posY" : -10,
  100.    "color" : -1,
  101.    "alignment" : "bottom_right"
  102.   }
  103.     },
  104.    
  105.     "other":
  106.     {
  107.     "panorama":
  108.   {
  109.    "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
  110.    "blur" : true,
  111.    "gradient" : false
  112.   }
  113.     }
  114. }
结果
7、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : 170,
  8.    "posY" : -22,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "left_center"
  12.   },
  13.    
  14.   "black":
  15.   {
  16.    "image" : "textures:menu/blacktransparent.png",
  17.    "posX" : 50,
  18.    "posY" : 0,
  19.    "width" : 100,
  20.    "height" : 2000,
  21.    "alignment" : "top_left"
  22.   }
  23.     },
  24.    
  25.     "buttons":
  26.     {
  27.   "singleplayer":
  28.   {
  29.    "text" : "menu.singleplayer",
  30.    "posX" : 55,
  31.    "posY" : -35,
  32.    "width" : 90,
  33.    "height" : 20,
  34.    "alignment" : "left_center"
  35.   },
  36.    
  37.   "multiplayer":
  38.   {
  39.    "text" : "menu.multiplayer",
  40.    "posX" : 55,
  41.    "posY" : -10,
  42.    "width" : 90,
  43.    "height" : 20,
  44.    "alignment" : "left_center"
  45.   },
  46.    
  47.   "mods":
  48.   {
  49.    "text" : "fml.menu.mods",
  50.    "posX" : 55,
  51.    "posY" : 15,
  52.    "width" : 90,
  53.    "height" : 20,
  54.    "alignment" : "left_center"
  55.   },
  56.  
  57.   "options":
  58.   {
  59.    "text" : "",
  60.    "posX" : 53,
  61.    "posY" : -25,
  62.    "width" : 20,
  63.    "height" : 20,
  64.    "imageWidth" : 40,
  65.    "imageHeight" : 40,
  66.    "alignment" : "bottom_left",
  67.    "texture" : "textures:menu/settings.png"
  68.   },
  69.    
  70.   "quit":
  71.   {
  72.    "text" : "",
  73.    "posX" : 128,
  74.    "posY" : -25,
  75.    "width" : 20,
  76.    "height" : 20,
  77.    "imageWidth" : 300,
  78.    "imageHeight" : 300,
  79.    "alignment" : "bottom_left",
  80.    "texture" : "textures:menu/quit.png"
  81.   },
  82.    
  83.   "language":
  84.   {
  85.    "text" : "",
  86.    "posX" : 78,
  87.    "posY" : -25,
  88.    "width" : 20,
  89.    "height" : 20,
  90.    "alignment" : "bottom_left"
  91.   },
  92.    
  93.   "refresh":
  94.   {
  95.    "text" : "",
  96.    "posX" : 103,
  97.    "posY" : -25,
  98.    "width" : 20,
  99.    "height" : 20,
  100.    "alignment" : "bottom_left"
  101.   }
  102.     },
  103.    
  104.     "texts":
  105.     {
  106.    
  107.     },
  108.    
  109.     "other":
  110.     {
  111.   "panorama":
  112.   {
  113.    "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
  114.    "blur" : true,
  115.    "gradient" : false
  116.   }
  117.     }
  118. }
结果
8、配置

代码:

  1. {
  2.     "images":{
  3.   "title":{
  4.    "image":"textures:tolkiencraft/gui/minecraft.png",
  5.    "posX":0,
  6.    "posY":0,
  7.    "width":512,
  8.    "height":256,
  9.    "alignment":"top_left"
  10.   },
  11.   "title2":{
  12.    "image":"textures:tolkiencraft/gui/minecraft2.png",
  13.    "posX":0,
  14.    "posY":0,
  15.    "width":512,
  16.    "height":128,
  17.    "alignment":"top_left"
  18.   }
  19.     },
  20.     "buttons":{
  21.   "singleplayer":{
  22.    "text":"menu.singleplayer",
  23.    "posX":4,
  24.    "posY":-46,
  25.    "width":100,
  26.    "height":30,
  27.    "imageWidth":100,
  28.    "imageHeight":50,
  29.    "normalTextColor":16777215,
  30.    "hoverTextColor":16711680,
  31.    "texture":"textures:tolkiencraft/buttons/buttontemplate3.png",
  32.    "alignment":"left_center"
  33.   },
  34.   "multiplayer":{
  35.    "text":"menu.multiplayer",
  36.    "posX":4,
  37.    "posY":-12,
  38.    "width":100,
  39.    "height":30,
  40.    "imageWidth":100,
  41.    "imageHeight":50,
  42.    "normalTextColor":16777215,
  43.    "hoverTextColor":16711680,
  44.    "texture":"textures:tolkiencraft/buttons/buttontemplate3.png",
  45.    "alignment":"left_center"
  46.   },
  47.   "options":{
  48.    "text":"menu.options",
  49.    "posX":4,
  50.    "posY":22,
  51.    "width":100,
  52.    "height":30,
  53.    "imageWidth":100,
  54.    "imageHeight":50,
  55.    "normalTextColor":16777215,
  56.    "hoverTextColor":16711680,
  57.    "texture":"textures:tolkiencraft/buttons/buttontemplate3.png",
  58.    "alignment":"left_center"
  59.   },
  60.   "quit":{
  61.    "text":"menu.quit",
  62.    "posX":4,
  63.    "posY":56,
  64.    "width":100,
  65.    "height":30,
  66.    "imageWidth":100,
  67.    "imageHeight":50,
  68.    "normalTextColor":16777215,
  69.    "hoverTextColor":16711680,
  70.    "texture":"textures:tolkiencraft/buttons/buttontemplate3.png",
  71.    "alignment":"left_center"
  72.   },
  73.   "refresh":{
  74.    "text":"",
  75.    "posX":-154,
  76.    "posY":132,
  77.    "width":0,
  78.    "height":0
  79.   }
  80.     },
  81.     "texts":{
  82.   "mojang":{
  83.    "text":"",
  84.    "posX":-2,
  85.    "posY":-10,
  86.    "color":150,
  87.    "alignment":"bottom_right"
  88.   },
  89.   "example":{
  90.    "text":"v2.3.11 - TolkienCraft II",
  91.    "posX":2,
  92.    "posY":-20,
  93.    "color":13938487,
  94.    "alignment":"bottom_left"
  95.   }
  96.     },
  97.     "other":{
  98.   "splash-text":{
  99.    "posX":-70,
  100.    "posY":60,
  101.    "color":13055,
  102.    "alignment":"top_right"
  103.   },
  104.   "panorama":{
  105.    "images":"textures:tolkiencraft/gui/panorama_%c.png",
  106.    "blur":true,
  107.    "gradient":true
  108.   }
  109.     }
  110. }
结果
9、配置

代码:

  1. {
  2.     "images":{
  3.   "title":{
  4.    "image":"minecraft:textures/gui/title/BlastName.png",
  5.    "posX":400,
  6.    "posY":35,
  7.    "width":200,
  8.    "height":79,
  9.    "alignment":"top_left"
  10.   },
  11.   "title2":{
  12.    "image":"minecraft:textures/gui/title/line.png",
  13.    "posX":0,
  14.    "posY":0,
  15.    "width":180,
  16.    "height":512,
  17.    "alignment":"top_left"
  18.   }
  19.     },
  20.     "buttons":{
  21.   "singleplayer":{
  22.    "text":"menu.singleplayer",
  23.    "posX":16,
  24.    "posY":-46,
  25.    "width":100,
  26.    "height":30,
  27.    "imageWidth":100,
  28.    "imageHeight":50,
  29.    "normalTextColor":16777215,
  30.    "hoverTextColor":7372944,
  31.    "texture":"minecraft:textures/gui/title/button.png",
  32.    "alignment":"left_center"
  33.   },
  34.   "multiplayer":{
  35.    "text":"menu.multiplayer",
  36.    "posX":16,
  37.    "posY":-12,
  38.    "width":100,
  39.    "height":30,
  40.    "imageWidth":100,
  41.    "imageHeight":50,
  42.    "normalTextColor":16777215,
  43.    "hoverTextColor":7372944,
  44.    "texture":"minecraft:textures/gui/title/button.png",
  45.    "alignment":"left_center"
  46.   },
  47.   "options":{
  48.    "text":"menu.options",
  49.    "posX":16,
  50.    "posY":22,
  51.    "width":100,
  52.    "height":30,
  53.    "imageWidth":100,
  54.    "imageHeight":50,
  55.    "normalTextColor":16777215,
  56.    "hoverTextColor":7372944,
  57.    "texture":"minecraft:textures/gui/title/button.png",
  58.    "alignment":"left_center"
  59.   },
  60.   "quit":{
  61.    "text":"menu.quit",
  62.    "posX":16,
  63.    "posY":56,
  64.    "width":100,
  65.    "height":30,
  66.    "imageWidth":100,
  67.    "imageHeight":50,
  68.    "normalTextColor":16777215,
  69.    "hoverTextColor":7372944,
  70.    "texture":"minecraft:textures/gui/title/button.png",
  71.    "alignment":"left_center"
  72.   },
  73.   "refresh":{
  74.    "text":"",
  75.    "posX":-154,
  76.    "posY":132,
  77.    "width":0,
  78.    "height":0
  79.   }
  80.     },
  81.     "texts":{
  82.   "mojang":{
  83.    "text":"",
  84.    "posX":-2,
  85.    "posY":-10,
  86.    "color":150,
  87.    "alignment":"bottom_right"
  88.   },
  89.   "example":{
  90.    "text":"BlastOff 1.1.9",
  91.    "posX":2,
  92.    "posY":-10,
  93.    "color":13938487,
  94.    "alignment":"bottom_left"
  95.   }
  96.     },
  97.     "other":{
  98.   "splash-text":{
  99.    "posX":-70,
  100.    "posY":60,
  101.    "color":13055,
  102.    "alignment":"bottom_right"
  103.   },
  104.   "panorama":{
  105.    "images":"minecraft:textures/gui/title/background/panorama_%c.png",
  106.    "blur":true,
  107.    "gradient":true
  108.   }
  109.     }
  110. }
结果
10、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "transparent":
  5.   {
  6.    "image" : "textures:menu/blacktransparent.png",
  7.    "posX" : -50,
  8.    "posY" : -70,
  9.    "width" : 100,
  10.    "height" : 140,
  11.    "alignment" : "center"
  12.   },
  13.    
  14.   "minecraft":
  15.   {
  16.    "image" : "textures:menu/minecraft.png",
  17.    "posX" : -53,
  18.    "posY" : -70,
  19.    "width" : 108,
  20.    "height" : 16,
  21.    "alignment" : "center"
  22.   }
  23.     },
  24.    
  25.     "buttons":
  26.     {
  27.   "singleplayer":
  28.   {
  29.    "text" : "menu.singleplayer",
  30.    "posX" : -50,
  31.    "posY" : -50,
  32.    "width" : 100,
  33.    "height" : 20,
  34.    "alignment" : "center",
  35.    "texture" : "textures:menu/button.png",
  36.    "shadow" : false
  37.   },
  38.    
  39.   "multiplayer":
  40.   {
  41.    "text" : "menu.multiplayer",
  42.    "posX" : -50,
  43.    "posY" : -30,
  44.    "width" : 100,
  45.    "height" : 20,
  46.    "alignment" : "center",
  47.    "texture" : "textures:menu/button.png",
  48.    "shadow" : false
  49.   },
  50.    
  51.   "mods":
  52.   {
  53.    "text" : "fml.menu.mods",
  54.    "posX" : -50,
  55.    "posY" : -10,
  56.    "width" : 100,
  57.    "height" : 20,
  58.    "alignment" : "center",
  59.    "texture" : "textures:menu/button.png",
  60.    "shadow" : false
  61.   },
  62.  
  63.   "options":
  64.   {
  65.    "text" : "menu.options",
  66.    "posX" : -50,
  67.    "posY" : 10,
  68.    "width" : 100,
  69.    "height" : 20,
  70.    "alignment" : "center",
  71.    "texture" : "textures:menu/button.png",
  72.    "shadow" : false
  73.   },
  74.    
  75.   "language":
  76.   {
  77.    "text" : "Language",
  78.    "posX" : -50,
  79.    "posY" : 30,
  80.    "width" : 100,
  81.    "height" : 20,
  82.    "alignment" : "center",
  83.    "texture" : "textures:menu/button.png",
  84.    "shadow" : false
  85.   },
  86.    
  87.   "quit":
  88.   {
  89.    "text" : "menu.quit",
  90.    "posX" : -50,
  91.    "posY" : 50,
  92.    "width" : 100,
  93.    "height" : 20,
  94.    "alignment" : "center",
  95.    "texture" : "textures:menu/button.png",
  96.    "shadow" : false
  97.   }
  98.     },
  99.    
  100.     "texts":
  101.     {
  102.   "mojang":
  103.   {
  104.    "text" : "",
  105.    "posX" : -197,
  106.    "posY" : -10,
  107.    "color" : -1,
  108.    "alignment" : "bottom_right"
  109.   }
  110.     },
  111.    
  112.     "other":
  113.     {
  114.   "background":
  115.   {
  116.    "image" : "textures:menu/hill.png",
  117.    "mode" : "fill"
  118.   }
  119.     }
  120. }
结果
11、配置

代码:

  1. {
  2.     "images":
  3.     { 
  4.   "minecraft":
  5.   {
  6.    "image" : "textures:menu/minecraft.png",
  7.    "posX" : -299,
  8.    "posY" : -100,
  9.    "width" : 598,
  10.    "height" : 89,
  11.    "alignment" : "center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : -250,
  21.    "posY" : 0,
  22.    "width" : 80,
  23.    "height" : 20,
  24.    "alignment" : "center",
  25.    "texture" : "textures:menu/button.png",
  26.    "normalTextColor" : 6579300,
  27.    "hoverTextColor" : 16777215,
  28.    "shadow" : false
  29.   },
  30.    
  31.   "multiplayer":
  32.   {
  33.    "text" : "menu.multiplayer",
  34.    "posX" : -170,
  35.    "posY" : 0,
  36.    "width" : 80,
  37.    "height" : 20,
  38.    "alignment" : "center",
  39.    "texture" : "textures:menu/button.png",
  40.    "normalTextColor" : 6579300,
  41.    "hoverTextColor" : 16777215,
  42.    "shadow" : false
  43.   },
  44.    
  45.   "mods":
  46.   {
  47.    "text" : "fml.menu.mods",
  48.    "posX" : -90,
  49.    "posY" : 0,
  50.    "width" : 80,
  51.    "height" : 20,
  52.    "alignment" : "center",
  53.    "texture" : "textures:menu/button.png",
  54.    "normalTextColor" : 6579300,
  55.    "hoverTextColor" : 16777215,
  56.    "shadow" : false
  57.   },
  58.  
  59.   "options":
  60.   {
  61.    "text" : "menu.options",
  62.    "posX" : -10,
  63.    "posY" : 0,
  64.    "width" : 80,
  65.    "height" : 20,
  66.    "alignment" : "center",
  67.    "texture" : "textures:menu/button.png",
  68.    "normalTextColor" : 6579300,
  69.    "hoverTextColor" : 16777215,
  70.    "shadow" : false
  71.   },
  72.    
  73.   "language":
  74.   {
  75.    "text" : "Language",
  76.    "posX" : 70,
  77.    "posY" : 0,
  78.    "width" : 80,
  79.    "height" : 20,
  80.    "alignment" : "center",
  81.    "texture" : "textures:menu/button.png",
  82.    "normalTextColor" : 6579300,
  83.    "hoverTextColor" : 16777215,
  84.    "shadow" : false
  85.   },
  86.    
  87.   "quit":
  88.   {
  89.    "text" : "menu.quit",
  90.    "posX" : 150,
  91.    "posY" : 0,
  92.    "width" : 80,
  93.    "height" : 20,
  94.    "alignment" : "center",
  95.    "texture" : "textures:menu/button.png",
  96.    "normalTextColor" : 6579300,
  97.    "hoverTextColor" : 16777215,
  98.    "shadow" : false
  99.   }
  100.     },
  101.    
  102.     "texts":
  103.     {
  104.   "mojang":
  105.   {
  106.    "text" : "",
  107.    "posX" : -197,
  108.    "posY" : -10,
  109.    "color" : -1,
  110.    "alignment" : "bottom_right"
  111.   },
  112.    
  113.   "mcversion":
  114.   {
  115.    "text" : "Minecraft v. #mcversion#",
  116.    "posX" : 0,
  117.    "posY" : 0,
  118.    "color" : -1,
  119.    "alignment" : "top_left"
  120.   },
  121.    
  122.   "mods":
  123.   {
  124.    "text" : "#modsloaded# Mods loaded",
  125.    "posX" : 0,
  126.    "posY" : -10,
  127.    "color" : -1,
  128.    "alignment" : "bottom_left"
  129.   }
  130.     },
  131.    
  132.     "other":
  133.     {
  134.   "background":
  135.   {
  136.    "image" : "textures:menu/background.png",
  137.    "mode" : "fill"
  138.   }
  139.     }
  140. }
结果
12、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : -137,
  8.    "posY" : 30,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : -100,
  21.    "posY" : 48,
  22.    "width" : 200,
  23.    "height" : 20
  24.   },
  25.    
  26.   "multiplayer":
  27.   {
  28.    "text" : "menu.multiplayer",
  29.    "posX" : -100,
  30.    "posY" : 72,
  31.    "width" : 200,
  32.    "height" : 20
  33.   },
  34.    
  35.   "mods":
  36.   {
  37.    "text" : "fml.menu.mods",
  38.    "posX" : -100,
  39.    "posY" : 96,
  40.    "width" : 200,
  41.    "height" : 20
  42.   },
  43.  
  44.   "options":
  45.   {
  46.    "text" : "menu.options",
  47.    "posX" : -100,
  48.    "posY" : 132,
  49.    "width" : 98,
  50.    "height" : 20
  51.   },
  52.    
  53.   "quit":
  54.   {
  55.    "text" : "menu.quit",
  56.    "posX" : 2,
  57.    "posY" : 132,
  58.    "width" : 98,
  59.    "height" : 20
  60.   },
  61.    
  62.   "language":
  63.   {
  64.    "text" : "",
  65.    "posX" : -124,
  66.    "posY" : 132,
  67.    "width" : 20,
  68.    "height" : 20
  69.   },
  70.    
  71.   "refresh":
  72.   {
  73.    "text" : "",
  74.    "posX" : -154,
  75.    "posY" : 132,
  76.    "width" : 20,
  77.    "height" : 20
  78.   }
  79.     },
  80.    
  81.     "texts":
  82.     {
  83.   "mojang":
  84.   {
  85.    "text" : "",
  86.    "posX" : -197,
  87.    "posY" : -10,
  88.    "color" : -1,
  89.    "alignment" : "bottom_right"
  90.   },
  91.    
  92.   "fml":
  93.   {
  94.    "text" : "",
  95.    "posX" : 2,
  96.    "posY" : -50,
  97.    "color" : -1,
  98.    "alignment" : "bottom_left"
  99.   }
  100.     },
  101.    
  102.     "other":
  103.     {
  104.   "splash-text":
  105.   {
  106.    "posX" : 90,
  107.    "posY" : 70,
  108.    "color" : -256,
  109.    "alignment" : "top_center"
  110.   },
  111.    
  112.   "background":
  113.   {
  114.    "image" : "",
  115.    "slideshow":
  116.    {
  117.     "images" : ["mainmenu:screenshot1.png","mainmenu:screenshot2.png","mainmenu:screenshot3.png"],
  118.     "displayDuration" : 100,
  119.     "fadeDuration" : 40
  120.    }
  121.   }
  122.     }
  123. }
结果
13、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : -128,
  8.    "posY" : 50,
  9.    "width" : 256,
  10.    "height" : 256,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "texture" : "custommainmenu:textures/gui/buttonRegular.png",
  21.    "posX" : -100,
  22.    "posY" : 48,
  23.    "width" : 200,
  24.    "height" : 20,
  25.    "action" :
  26.    {
  27.     "type" : "openGui",
  28.     "gui" : "singleplayer"
  29.    }
  30.   },
  31.    
  32.   "multiplayer":
  33.   {
  34.    "text" : "menu.multiplayer",
  35.    "texture" : "custommainmenu:textures/gui/buttonRegular.png",
  36.    "posX" : -100,
  37.    "posY" : 72,
  38.    "width" : 200,
  39.    "height" : 20,
  40.    "action" :
  41.    {
  42.     "type" : "openGui",
  43.     "gui" : "multiplayer"
  44.    }
  45.   },
  46.    
  47.   "mods":
  48.   {
  49.    "text" : "fml.menu.mods",
  50.    "texture" : "custommainmenu:textures/gui/buttonRegular.png",
  51.    "posX" : -100,
  52.    "posY" : 96,
  53.    "width" : 200,
  54.    "height" : 20,
  55.    "action" :
  56.    {
  57.     "type" : "openGui",
  58.     "gui" : "mods"
  59.    }
  60.   },
  61.  
  62.   "options":
  63.   {
  64.    "text" : "menu.options",
  65.    "texture" : "custommainmenu:textures/gui/buttonMedium.png",
  66.    "posX" : -100,
  67.    "posY" : 132,
  68.    "width" : 98,
  69.    "height" : 20,
  70.    "action" :
  71.    {
  72.     "type" : "openGui",
  73.     "gui" : "options"
  74.    }
  75.   },
  76.    
  77.   "quit":
  78.   {
  79.    "text" : "menu.quit",
  80.    "texture" : "custommainmenu:textures/gui/buttonMedium.png",
  81.    "posX" : 2,
  82.    "posY" : 132,
  83.    "width" : 98,
  84.    "height" : 20,
  85.    "action" :
  86.    {
  87.     "type" : "quit"
  88.    }
  89.   },
  90.    
  91.   "language":
  92.   {
  93.    "text" : "",
  94.    "texture" : "custommainmenu:textures/gui/languages.png",
  95.    "posX" : -124,
  96.    "posY" : 132,
  97.    "width" : 20,
  98.    "height" : 20,
  99.    "action" :
  100.    {
  101.     "type" : "openGui",
  102.     "gui" : "languages"
  103.    }
  104.   },
  105.    
  106.   "refresh":
  107.   {
  108.    "text" : "",
  109.    "texture" : "custommainmenu:textures/gui/refresh.png",
  110.    "posX" : 104,
  111.    "posY" : 132,
  112.    "width" : 20,
  113.    "height" : 20,
  114.    "action" :
  115.    {
  116.     "type" : "refresh"
  117.    }
  118.   },

  119.   "openeye":
  120.   {
  121.    "text" : "",
  122.    "texture" : "custommainmenu:textures/gui/openeye.png",
  123.    "posX" : 104,
  124.    "posY" : 112,
  125.    "width" : 20,
  126.    "height" : 20,
  127.    "wrappedButton" : 666
  128.   },
  129.    
  130.     "Github":
  131.   {
  132.    "text" : "Issue Tracker",
  133.    "texture" : "custommainmenu:textures/gui/buttonMedium.png",
  134.    "hoverText" : "Github",
  135.    "alignment" : "top_right",
  136.    "posX" : -100,
  137.    "posY" : 2,
  138.    "width" : 98,
  139.    "height" : 20,
  140.    "action" :
  141.    {
  142.     "type" : "openLink",
  143.   "link" : "https://github.com/BBoldt/Unabridged/issues"
  144.    }
  145.   },

  146.     "Changelogs":
  147.   {
  148.    "text" : "Changelog",
  149.    "texture" : "custommainmenu:textures/gui/buttonMedium.png",
  150.    "alignment" : "top_center",
  151.    "posX" : -50,
  152.    "posY" : 2,
  153.    "width" : 98,
  154.    "height" : 20,
  155.    "action" :
  156.    {
  157.     "type" : "openLink",
  158.   "link" : "http://www.atlauncher.com/pack/MinecraftUnabridged/"
  159.    }
  160.   },

  161.     "Subreddit":
  162.   {
  163.    "text" : "Subreddit",
  164.    "texture" : "custommainmenu:textures/gui/buttonMedium.png",
  165.    "hoverText" : "Discussion",
  166.    "alignment" : "top_left",
  167.    "posX" : 2,
  168.    "posY" : 2,
  169.    "width" : 98,
  170.    "height" : 20,
  171.    "action" :
  172.    {
  173.     "type" : "openLink",
  174.   "link" : "http://www.reddit.com/r/MinecraftUnabridged/"
  175.    }
  176.   }
  177.     },
  178.    
  179.     "texts":
  180.     {
  181.   "mojang":
  182.   {
  183.    "text" : "",
  184.    "posX" : -197,
  185.    "posY" : -10,
  186.    "color" : -1,
  187.    "alignment" : "bottom_right"
  188.   },
  189.    
  190.   "example":
  191.   {
  192.    "text" : "§bUNABRIDGED §e3.6_BETA ",
  193.    "posX" : 2,
  194.    "posY" : -10,
  195.    "color" : -1,
  196.    "alignment" : "bottom_left"
  197.   }
  198.    
  199.     },
  200.    
  201.     "other":
  202.     {
  203.   "splash-text":
  204.   {
  205.    "posX" : 110,
  206.    "posY" : 90,
  207.    "color" : -256,
  208.    "alignment" : "top_center"
  209.   },
  210.    
  211.   "background":
  212.   {
  213.    "image" : "",
  214.    "slideshow":
  215.    {
  216.     "images" : [
  217.     "custommainmenu:scrn/1.png",
  218.     "custommainmenu:scrn/2.png",
  219.     "custommainmenu:scrn/3.png",
  220.     "custommainmenu:scrn/4.png",
  221.     "custommainmenu:scrn/5.png",
  222.     "custommainmenu:scrn/6.png",
  223.     "custommainmenu:scrn/7.png",
  224.     "custommainmenu:scrn/8.png",
  225.     "custommainmenu:scrn/9.png",
  226.     "custommainmenu:scrn/10.png",
  227.     "custommainmenu:scrn/11.png",
  228.     "custommainmenu:scrn/12.png",
  229.     "custommainmenu:scrn/13.png",
  230.     "custommainmenu:scrn/14.png",
  231.     "custommainmenu:scrn/15.png",
  232.     "custommainmenu:scrn/16.png",
  233.     "custommainmenu:scrn/17.png",
  234.     "custommainmenu:scrn/18.png"
  235.   ],
  236.   "displayDuration" : 100,
  237.   "fadeDuration" : 40,
  238.   "shuffle" : true
  239.    }
  240.   }
  241.   }
  242. }
结果
14、配置

代码:

  1. {
  2.     "images": {
  3.   "title": {
  4.    "image": "the_rising_world:textures/gui/TheRisingWorld_Title.png",
  5.    "posX": -180,
  6.    "posY": 30,
  7.    "width": 372,
  8.    "height": 64,
  9.    "alignment": "top_center"
  10.   },
  11.   "button_background": {
  12.    "image": "the_rising_world:textures/gui/TheRisingWorld_ButtonBackground.png",
  13.    "posX": -110,
  14.    "posY": -32,
  15.    "alignment": "center",
  16.    "width": 220,
  17.    "height": 108
  18.   }
  19.     },
  20.     "buttons": {
  21.   "singleplayer": {
  22.    "text": "menu.singleplayer",
  23.    "posX": -100,
  24.    "posY": -24,
  25.    "alignment": "center",
  26.    "width": 98,
  27.    "height": 20
  28.   },
  29.   "multiplayer": {
  30.    "text": "menu.multiplayer",
  31.    "posX": 2,
  32.    "posY": -24,
  33.    "alignment": "center",
  34.    "width": 98,
  35.    "height": 20
  36.   },
  37.   "mods": {
  38.    "text": "fml.menu.mods",
  39.    "posX": -100,
  40.    "posY": 0,
  41.    "alignment": "center",
  42.    "width": 200,
  43.    "height": 20
  44.   },
  45.   "options": {
  46.    "text": "menu.options",
  47.    "posX": -100,
  48.    "posY": 24,
  49.    "alignment": "center",
  50.    "width": 98,
  51.    "height": 20
  52.   },
  53.   "quit": {
  54.    "text": "menu.quit",
  55.    "posX": 2,
  56.    "posY": 24,
  57.    "alignment": "center",
  58.    "width": 98,
  59.    "height": 20
  60.   },
  61.   "language": {
  62.    "text": "",
  63.    "posX": -22,
  64.    "posY": 48,
  65.    "alignment": "center",
  66.    "width": 20,
  67.    "height": 20
  68.   },
  69.   "refresh": {
  70.    "text": "",
  71.    "posX": 2,
  72.    "posY": 48,
  73.    "alignment": "center",
  74.    "width": 20,
  75.    "height": 20
  76.   },
  77.   "forumPage": {
  78.    "text": "Forum Page",
  79.    "posX": -100,
  80.    "posY": 48,
  81.    "alignment": "center",
  82.    "width": 74,
  83.    "height": 20,
  84.    "tooltip": "Link to the official Forum thread",
  85.    "action": {
  86.     "type": "openLink",
  87.     "link": "http://forum.feed-the-beast.com/threads/1-7-10-the-rising-world-rise-or-fall-its-up-to-you-1-1-0-tech-magic-nature-server-version.57283/"
  88.    }
  89.   },
  90.   "changeLog": {
  91.    "text": "Changelog",
  92.    "posX": 26,
  93.    "posY": 48,
  94.    "alignment": "center",
  95.    "width": 74,
  96.    "height": 20,
  97.    "tooltip": "Link to the latest change log",
  98.    "action": {
  99.     "type": "openLink",
  100.     "link": ""
  101.    }
  102.   }
  103.     },
  104.     "texts": {
  105.   "mojang": {
  106.    "text": "",
  107.    "posX": -205,
  108.    "posY": -10,
  109.    "color": -1,
  110.    "alignment": "bottom_right"
  111.   },
  112.   "packName": {
  113.    "text": "§4The Rising World §e1.1.1_Beta",
  114.    "posX": 2,
  115.    "posY": -20,
  116.    "color": -1,
  117.    "alignment": "bottom_left"
  118.   },
  119.   "packAuthor": {
  120.    "text": "§wBy SnowShock35",
  121.    "posX": 2,
  122.    "posY": -10,
  123.    "color": -1,
  124.    "alignment": "bottom_left"
  125.   }
  126.     },
  127.     "other": {
  128.   "background": {
  129.    "image": "",
  130.    "slideshow": {
  131.     "images": [
  132.   "the_rising_world:textures/gui/background/background_1.png",
  133.   "the_rising_world:textures/gui/background/background_2.png",
  134.   "the_rising_world:textures/gui/background/background_3.png",
  135.   "the_rising_world:textures/gui/background/background_4.png",
  136.   "the_rising_world:textures/gui/background/background_5.png",
  137.   "the_rising_world:textures/gui/background/background_6.png",
  138.   "the_rising_world:textures/gui/background/background_7.png",
  139.   "the_rising_world:textures/gui/background/background_8.png",
  140.   "the_rising_world:textures/gui/background/background_9.png"
  141.     ],
  142.     "displayDuration": 50,
  143.     "fadeDuration": 50,
  144.     "shuffle": "true"
  145.    }
  146.   }
  147.     }
  148. }
结果
15、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "land:textures/Post-Finem.png",
  7.    "posX" : -224,
  8.    "posY" : 0,
  9.    "width" : 448,
  10.    "height" : 64,
  11.    "alignment" : "top_center"
  12.   },
  13.    
  14.     "fire":
  15.   {
  16.    "image" : "land:textures/fire.png",
  17.    "posX" : -320,
  18.    "posY" : -100,
  19.    "width" : 640,
  20.    "height" : 100,
  21.    "alignment" : "bottom_center"
  22.   }
  23.     },
  24.    
  25.     "buttons":
  26.     {
  27.   "singleplayer":
  28.   {
  29.    "text" : "menu.singleplayer",
  30.    "posX" : -50,
  31.    "posY" : 10,
  32.    "width" : 100,
  33.    "height" : 25,
  34.    "imageWidth":200,
  35.    "imageHeight":50,
  36.    "normalTextColor":-1,
  37.    "hoverTextColor":2359075,
  38.    "texture":"land:textures/radiation_button.png",
  39.    "action" :
  40.    {
  41.     "type" : "openGui",
  42.     "gui" : "singleplayer"
  43.    }
  44.   },
  45.    
  46.   "multiplayer":
  47.   {
  48.    "text" : "menu.multiplayer",
  49.    "posX" : -50,
  50.    "posY" : 35,
  51.    "width" : 100,
  52.    "height" : 25,
  53.    "imageWidth":200,
  54.    "imageHeight":50,
  55.    "normalTextColor":-1,
  56.    "hoverTextColor":2359075,
  57.    "texture":"land:textures/radiation_button.png",
  58.    "action" :
  59.    {
  60.     "type" : "openGui",
  61.     "gui" : "multiplayer"
  62.    }
  63.   },
  64.    
  65.   "mods":
  66.   {
  67.    "text" : "Mods",
  68.    "posX" : -50,
  69.    "posY" : 60,
  70.    "width" : 100,
  71.    "height" : 25,
  72.    "imageWidth":200,
  73.    "imageHeight":50,
  74.    "normalTextColor":-1,
  75.    "hoverTextColor":2359075,
  76.    "texture":"land:textures/radiation_button.png",
  77.    "action" :
  78.    {
  79.     "type" : "openGui",
  80.     "gui" : "mods"
  81.    }
  82.   },
  83.  
  84.   "options":
  85.   {
  86.    "text" : "menu.options",
  87.    "posX" : -50,
  88.    "posY" : 85,
  89.    "width" : 100,
  90.    "height" : 25,
  91.    "imageWidth":200,
  92.    "imageHeight":50,
  93.    "normalTextColor":-1,
  94.    "hoverTextColor":2359075,
  95.    "texture":"land:textures/radiation_button.png",
  96.    "action" :
  97.    {
  98.     "type" : "openGui",
  99.     "gui" : "options"
  100.    }
  101.   },
  102.    
  103.   "quit":
  104.   {
  105.    "text" : "menu.quit",
  106.    "posX" : -50,
  107.    "posY" : 110,
  108.    "width" : 100,
  109.    "height" : 25,
  110.    "imageWidth":200,
  111.    "imageHeight":50,
  112.    "normalTextColor":-1,
  113.    "hoverTextColor":2359075,
  114.    "texture":"land:textures/radiation_button.png",
  115.    "action" :
  116.    {
  117.     "type" : "quit"
  118.    }
  119.   },
  120.    
  121.   "language":
  122.   {
  123.    "text" : "",
  124.    "posX" : -10,
  125.    "posY" : 150,
  126.    "width" : 20,
  127.    "height" : 20,
  128.    "action" :
  129.    {
  130.     "type" : "openGui",
  131.     "gui" : "languages"
  132.    }
  133.   }
  134.     },
  135.    
  136.     "texts":
  137.     {
  138.   "mojang":
  139.   {
  140.    "text" : "Copyright Mojang AB. Do not distribute!",
  141.    "posX" : -197,
  142.    "posY" : -10,
  143.    "color" : -1,
  144.    "alignment" : "bottom_right"
  145.   },
  146.    
  147.   "fml":
  148.   {
  149.    "text" : "",
  150.    "posX" : 2,
  151.    "posY" : -50,
  152.    "color" : -1,
  153.    "alignment" : "bottom_left"
  154.   },
  155.    
  156.     "pack":{
  157.    "text":"Post Finem v0.0.2",
  158.    "posX":-100,
  159.    "posY":-40,
  160.    "color":-1,
  161.    "alignment":"bottom_right"
  162.   },
  163.    
  164.     "author":{
  165.    "text":"By Landstryder",
  166.    "posX":-100,
  167.    "posY":-30,
  168.    "color":-1,
  169.    "alignment":"bottom_right"
  170.   }
  171.     },
  172.    
  173.     "other":
  174.     {
  175.   "splash-text":
  176.   {
  177.    "posX" : 124,
  178.    "posY" : 60,
  179.    "color" : -256,
  180.    "alignment" : "top_center",
  181.    "file" : "texts/splashes.txt"
  182.   },
  183.    
  184.   "panorama":
  185.   {
  186.    "images" : "land:textures/panorama%c.png",
  187.    "animate" : true,
  188.    "animationSpeed" : 2,
  189.    "blur" : false,
  190.    "gradient" : false
  191.   }
  192.     }
  193. }
结果
16、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.     "title":
  5.   {
  6.    "image" : "minecraft:title.png",
  7.    "posX" : -70,
  8.    "posY" : -20,
  9.    "width" : 140,
  10.    "height" : 40,
  11.    "alignment" : "center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "",
  20.    "texture" : "minecraft:single2.png",
  21.    "posX" : -60,
  22.    "posY" : -15,
  23.    "width" : 120,
  24.    "height" : 30,
  25.    "action" :
  26.    {
  27.     "type" : "openGui",
  28.     "gui" : "singleplayer"
  29.    }
  30.   },
  31.    
  32.   "multiplayer":
  33.   {
  34.    "text" : "",
  35.    "texture" : "minecraft:multi2.png",
  36.    "posX" : -60,
  37.    "posY" : 110,
  38.    "width" : 120,
  39.    "height" : 30,
  40.    "action" :
  41.    {
  42.     "type" : "openGui",
  43.     "gui" : "multiplayer"
  44.    }
  45.   },
  46.  
  47.   "options":
  48.   {
  49.    "text" : "",
  50.    "texture" : "minecraft:options2.png",
  51.    "posX" : -200,
  52.    "posY" : 50,
  53.    "width" : 120,
  54.    "height" : 30,
  55.    "action" :
  56.    {
  57.     "type" : "openGui",
  58.     "gui" : "options"
  59.    }
  60.   },
  61.    
  62.   "quit":
  63.   {
  64.    "text" : "",
  65.    "texture" : "minecraft:quit2.png",
  66.    "posX" : 100,
  67.    "posY" : 50,
  68.    "width" : 120,
  69.    "height" : 30,
  70.    "action" :
  71.    {
  72.     "type" : "quit"
  73.    }
  74.   }
  75.     },
  76.     "texts":
  77.     {
  78.   "mojang":
  79.   {
  80.    "text" : "",
  81.    "posX" : -55,
  82.    "posY" : -10,
  83.    "color" : -1,
  84.    "alignment" : "bottom_right"
  85.   }
  86.    

  87.     },
  88.    
  89.     "other":
  90.     {
  91.    
  92.   "background":
  93.   {
  94.    "image" : "",
  95.    "slideshow":
  96.    {
  97.     "images" : ["minecraft:00.png","minecraft:01.png","minecraft:02.png","minecraft:03.png","minecraft:04.png","minecraft:05.png","minecraft:06.png","minecraft:07.png","minecraft:08.png","minecraft:09.png","minecraft:10.png","minecraft:11.png","minecraft:12.png","minecraft:13.png","minecraft:14.png","minecraft:15.png","minecraft:16.png","minecraft:17.png","minecraft:18.png","minecraft:19.png","minecraft:20.png","minecraft:21.png","minecraft:22.png","minecraft:23.png","minecraft:24.png","minecraft:25.png","minecraft:26.png","minecraft:27.png","minecraft:28.png","minecraft:29.png","minecraft:30.png","minecraft:31.png","minecraft:32.png","minecraft:33.png","minecraft:34.png","minecraft:35.png","minecraft:36.png","minecraft:37.png","minecraft:38.png","minecraft:39.png","minecraft:40.png","minecraft:41.png","minecraft:42.png","minecraft:43.png","minecraft:44.png","minecraft:45.png","minecraft:46.png","minecraft:47.png","minecraft:48.png","minecraft:49.png","minecraft:50.png","minecraft:51.png","minecraft:52.png","minecraft:53.png","minecraft:54.png","minecraft:55.png","minecraft:56.png","minecraft:57.png","minecraft:58.png","minecraft:59.png","minecraft:60.png","minecraft:61.png","minecraft:62.png","minecraft:63.png","minecraft:64.png","minecraft:65.png","minecraft:66.png","minecraft:67.png","minecraft:68.png","minecraft:69.png","minecraft:70.png","minecraft:71.png","minecraft:72.png","minecraft:73.png","minecraft:74.png","minecraft:75.png","minecraft:76.png","minecraft:77.png","minecraft:78.png","minecraft:79.png","minecraft:80.png","minecraft:81.png","minecraft:82.png","minecraft:83.png","minecraft:84.png","minecraft:85.png","minecraft:86.png","minecraft:87.png","minecraft:88.png","minecraft:89.png","minecraft:90.png","minecraft:91.png","minecraft:92.png","minecraft:93.png","minecraft:94.png","minecraft:95.png","minecraft:96.png","minecraft:97.png","minecraft:98.png","minecraft:99.png"],
  98.     "displayDuration" : 2,
  99.     "fadeDuration" : 0
  100.    }
  101.   }
  102.     }
  103. }
结果
17、配置

代码:

  1. {
  2.     "images":
  3.     {
  4.   "title":
  5.   {
  6.    "image" : "custommainmenu:textures/gui/minecraft.png",
  7.    "posX" : -137,
  8.    "posY" : 30,
  9.    "width" : 512,
  10.    "height" : 512,
  11.    "alignment" : "top_center"
  12.   }
  13.     },
  14.    
  15.     "buttons":
  16.     {
  17.   "singleplayer":
  18.   {
  19.    "text" : "menu.singleplayer",
  20.    "posX" : 0,
  21.    "posY" : 0,
  22.    "width" : 201,
  23.    "height" : 20,
  24.    "texture" : "menu:button.png",
  25.    "alignment" : "left_center",
  26.    "action" :
  27.    {
  28.     "type" : "openGui",
  29.     "gui" : "singleplayer"
  30.    }
  31.   },
  32.    
  33.   "multiplayer":
  34.   {
  35.    "text" : "menu.multiplayer",
  36.    "posX" : 0,
  37.    "posY" : 25,
  38.    "width" : 201,
  39.    "height" : 20,
  40.    "texture" : "menu:button.png",
  41.    "alignment" : "left_center",
  42.    "action" :
  43.    {
  44.     "type" : "openGui",
  45.     "gui" : "multiplayer"
  46.    }
  47.   },
  48.    
  49.   "mods":
  50.   {
  51.    "text" : "fml.menu.mods",
  52.    "posX" : 0,
  53.    "posY" : 50,
  54.    "width" : 201,
  55.    "height" : 20,
  56.    "texture" : "menu:button.png",
  57.    "alignment" : "left_center",
  58.    "action" :
  59.    {
  60.     "type" : "openGui",
  61.     "gui" : "mods"
  62.    }
  63.   },

  64.   "options":
  65.   {
  66.    "text" : "menu.options",
  67.    "posX" : -200,
  68.    "posY" : 0,
  69.    "width" : 201,
  70.    "height" : 20,
  71.    "texture" : "menu:button2.png",
  72.    "alignment" : "right_center",
  73.    "action" :
  74.    {
  75.     "type" : "openGui",
  76.     "gui" : "options"
  77.    }
  78.   },
  79.    
  80.   "language":
  81.   {
  82.    "text" : "options.language",
  83.    "posX" : -200,
  84.    "posY" : 25,
  85.    "width" : 201,
  86.    "height" : 20,
  87.    "texture" : "menu:button2.png",
  88.    "alignment" : "right_center",
  89.    "action" :
  90.    {
  91.     "type" : "openGui",
  92.     "gui" : "options"
  93.    }
  94.   },
  95.    
  96.   "quit":
  97.   {
  98.    "text" : "menu.quit",
  99.    "posX" : -200,
  100.    "posY" : 50,
  101.    "width" : 201,
  102.    "height" : 20,
  103.    "texture" : "menu:button2.png",
  104.    "alignment" : "right_center",
  105.    "action" :
  106.    {
  107.     "type" : "quit"
  108.    }
  109.   }
  110.     },
  111.    
  112.     "labels":
  113.     {
  114.   "mojang":
  115.   {
  116.    "text" : "Copyright Mojang AB. Do not distribute!",
  117.    "posX" : 4,
  118.    "posY" : -12,
  119.    "color" : -1,
  120.    "alignment" : "bottom_left"
  121.   },
  122.    
  123.   "modcounts":
  124.   {
  125.    "text" : "#modsloaded# Mods loaded, #modsactive# Mods active.",
  126.    "posX" : -150,
  127.    "posY" : -12,
  128.    "color" : -1,
  129.    "alignment" : "bottom_right"
  130.   }
  131.     },
  132.    
  133.     "other":
  134.     {
  135.   "splash-text":
  136.   {
  137.    "posX" : 90,
  138.    "posY" : 70,
  139.    "color" : -256,
  140.    "alignment" : "top_center",
  141.    "texts" : "Karpador used SPLASH!"
  142.   },
  143.    
  144.   "panorama":
  145.   {
  146.    "images" : "minecraft:textures/gui/title/background/panorama_%c.png",
  147.    "animate" : true,
  148.    "animationSpeed" : 1,
  149.    "blur" : true,
  150.    "gradient" : true
  151.   }
  152.     }
  153. }
结果




更新日志
21.8.27 时隔三年,更新了“文本类型”中的“新方式”,增加了计算RGB数值的公式18.8.22 新增“支持相关”18.8.10 发布本帖




实用工具
  • Textcraft:便捷生成MC风的Logo的网站
  • Minotar:一个通过网址就可以获取正版玩家头像的网站,可以配合"web:"一起使用(详见“文本类型”章节)
  • Optifine Cape:在赞助Optifine作者后可以获得一件披风,通过"web:"搭配下面的网址可以获取玩家披风(详见“文本类型”章节)(感谢 2714491883MP 补充)

代码:

  1. http://s.optifine.net/capes/#username#.png




支持相关
如果你想支持原作者,建议至原帖下载该Mod如果你想支持我,可以用爱为我发电https://afdian.net/leaflet?slug=silver_moon




2714491883MP
补充下:文本不支持UTF-8,不支持中文
从网址支持http协议和https加密,在一个网站有https和http的同时还是建议用https
如果要添加Optifine Cape到界面可以用
  1. http://s.optifine.net/capes/#username#.png
复制代码

猜猜谁是谁
2714491883MP 发表于 2018-8-11 08:31
补充下:文本不支持UTF-8,不支持中文
从网址支持http协议和https加密,在一个网站有https和http的同时还是 ...

ok 但是什么是Optifine Cape

2714491883MP
猜猜谁是谁 发表于 2018-8-11 10:14
ok 但是什么是Optifine Cape

就是赞助Optifine作者10刀之后的披风,有Optifine的玩家都能看到

820437664
B膜大佬!,另外我重新整理一下保存成word打印成纸面相信不会介意哈

820437664
820437664 发表于 2018-9-22 16:02
B膜大佬!,另外我重新整理一下保存成word打印成纸面相信不会介意哈

已经制作完成啦!如果同意的话我会发链接的!麻烦大大回复

820437664
820437664 发表于 2018-9-22 16:32
已经制作完成啦!如果同意的话我会发链接的!麻烦大大回复

https://pan.baidu.com/s/1MdRWkV2QAMHJbuohqS5P1A

老粽子
“都怪我小学英语没学好

2016133456
标题看成cnm
hhhh

jkk的故事
能不能告诉我CMM怎么在按钮弄中文,旧版本可以新版本貌似炸了,求加QQ2275740467

廖林峰
820437664 发表于 2018-10-24 10:17
https://pan.baidu.com/s/1MdRWkV2QAMHJbuohqS5P1A

老哥 链接挂了  能重新发吗 谢谢

1O光年
感谢楼主的教程,哈~哈哈哈~~~~

1O光年
1O光年 发表于 2018-11-24 05:34
感谢楼主的教程,哈~哈哈哈~~~~

对了问一下楼主
hoverSound:(可选)一个路径,表示当鼠标悬停在按钮上时发出的声音
这个声音文件要怎么加
"hoverSound":"mainmenu:2.ogg",
我这样输的路径,声音文件也没错,进游戏就是没声音

神楽咕咕
请问能在主界面自动播放自定义音乐吗

战场原空白
链接挂了 +1

黑崎丶一护
MCBBS有你更精彩~

13024514052
这么骚的吗

1444322721
可以的...........

2456875319
关于自定义GUI的问题 我试过很多次 按教程第一步就是新建一个json(这里命名为jbb.json)
接下来 配置文件内写入
然后保存刷新 发现还是无法实现
有错误麻烦指正 谢谢



1723624171
很好的教程感想分享

小帅120
厉害谢谢作者

Regiment_Red
请问支持1.12.2吗?

漫步岁月
很好加油支持支持

飓风Cyclone
6666666666666666666666

TONGNB
6666666666666666666666666666

zzz1014514178
哼棒棒哦老铁

m7862k224
820437664 发表于 2018-10-24 10:17
https://pan.baidu.com/s/1MdRWkV2QAMHJbuohqS5P1A

链接被删除了?

DGai
链接挂啦,坐等更新

1005057343
66666666666666666666666666666.........

584663791
学到了 顶一下

Yunhun_dada
666666666666666666666666666666666

2816998414
学到了,感谢楼主

2816998414
感谢楼主分享

审判者1
看一下。。。。。。

AXADfefew
谢谢分享~~

MGChaoHaoWan
很不错,支持一下~

m7862k224
想制作整合包,是不是必须掌握JAVA才行啊?

edgg6
8sERLC00Laat

edgg6
8sERLC00Laat

chenyanxin520
挺实用的谢谢楼主

820437664

链接: https://pan.baidu.com/s/1UGGsal02Nw2zqdnbE2aGJA 提取码: t6nj

820437664
DGai 发表于 2018-12-9 13:12
链接挂啦,坐等更新

链接: https://pan.baidu.com/s/1UGGsal02Nw2zqdnbE2aGJA 提取码: t6nj

帅哥灬兄弟
MCBBS有你更精彩~

帅哥灬兄弟
MCBBS有你更精彩~

suzakuing
挺不错的

kj5
MCBBS有你更精彩~

KIRED
牛逼 好像有点用

1206010972
感谢分享~~

寒梅风影
很可以!支持作者

一手汗
真正的教程啊- -
高端NP

下一页 最后一页