forked from bot/app
15 lines
7.0 KiB
JavaScript
15 lines
7.0 KiB
JavaScript
|
import{_ as a,r as s,o as l,c as o,d as e,a as i,w as c,e as t,b as d}from"./app-MxCMiWAc.js";const r={},p=e("h2",{id:"简介",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#简介"},[e("span",null,"简介")])],-1),u=e("p",null,"资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码",-1),m=e("li",null,[t("资源包的制作很简单,如果你接触过"),e("code",null,"Minecraft"),t("的资源包,那么你会很快上手")],-1),h=e("li",null,[t("部分内容制作需要一点点前端基础,例如"),e("code",null,"html"),t(","),e("code",null,"css"),t(",如果你不懂,可以参考一些教程")],-1),v=e("li",null,"欢迎各位投稿资源包到轻雪资源商店",-1),_=d(`<h2 id="加载资源包" tabindex="-1"><a class="header-anchor" href="#加载资源包"><span>加载资源包</span></a></h2><ul><li>下载的资源包通常是以<code>.zip</code>格式压缩的,你只需要将其解压到根目录<code>resources</code>目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的</li></ul><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>main.py
|
|||
|
resources
|
|||
|
├─resource_pack_1
|
|||
|
├───metadata.yml
|
|||
|
├───templates
|
|||
|
└───<span class="token punctuation">..</span>.
|
|||
|
└─resource_pack_2
|
|||
|
├───metadata.yml
|
|||
|
└───<span class="token punctuation">..</span>.
|
|||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>你自己制作的资源包也应该遵循这个规则,并且应该在<code>metadata.yml</code>中填写一些信息</li><li>若没有<code>metadata.yml</code>文件,则轻雪不会加载这个资源包</li></ul><div class="language-yaml line-numbers-mode" data-ext="yml" data-title="yml"><pre class="language-yaml"><code><span class="token key atrule">name</span><span class="token punctuation">:</span> <span class="token string">"资源包名称"</span>
|
|||
|
<span class="token key atrule">version</span><span class="token punctuation">:</span> <span class="token string">"1.0.0"</span>
|
|||
|
<span class="token key atrule">description</span><span class="token punctuation">:</span> <span class="token string">"资源包描述"</span>
|
|||
|
<span class="token punctuation">...</span> <span class="token comment"># 你可以自定义一些信息,但请保证以上三个字段</span>
|
|||
|
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,也就是说,你在A资源包中定义了一个<code>index.html</code>文件,B资源包也定义了一个<code>index.html</code>文件,那么加载B资源包后,A资源包中的<code>index.html</code>文件会被覆盖</li><li>对于不同资源包的不同文件,是可以相对引用的,例如你在A资源包中的<code>index.html</code>文件中引用了B资源包中的<code>style.css</code>文件,那么加载A资源包后,轻雪会自动加载B资源包中的<code>style.css</code>文件</li></ul>`,6);function k(y,g){const n=s("RouteLink");return l(),o("div",null,[p,u,e("ul",null,[e("li",null,[i(n,{to:"/store/"},{default:c(()=>[t("资源/主题商店")]),_:1}),t("提供了一些资源包供你选择,你也可以自己制作资源包")]),m,h,v]),_])}const f=a(r,[["render",k],["__file","resource_pack.html.vue"]]),x=JSON.parse('{"path":"/usage/resource_pack.html","title":"资源包","lang":"zh-CN","frontmatter":{"title":"资源包","icon":"paint-brush","order":3,"category":"使用手册","description":"简介 资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码 提供了一些资源包供你选择,你也可以自己制作资源包 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你会很快上手 部分内容制作需要一点点前端基础,例如html,css,如果你不懂,可以参考一些教程 欢迎各位投稿资源包到轻雪资源商店...","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/usage/resource_pack.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"资源包"}],["meta",{"property":"og:description","content":"简介 资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码 提供了一些资源包供你选择,你也可以自己制作资源包 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你会很快上手 部分内容制作需要一点点前端基础,例如html,css,如果你不懂,可以参考一些教程 欢迎各位投稿资源包到轻雪资源商店..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-06T19:24:13.000Z"}],["meta",{"property":"article:author","content":"远野千束"}],["meta",{"property":"article:modified_time","content":"2024-04-06T19:24:13.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"资源包\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-06T19:24:13.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"远野千束\\",\\"url\\":\\"https://snowykami.me\\"}]}"]]},"headers":[{"level":2,"title":"简介","slug":"简介","link":"#简介","children":[]},{"level":2,"title":"加载资源包","slug":"加载资源包","link":"#加载资源包","children":[]}],"git":{"createdTime":1712365801000,"updatedTime":1712431453000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":2}]},"readingTime":{"minutes":1.59,"words":477},"filePathRelative":"usage/resource_pack.md","localizedDate":"2024年4月6日","excerpt":"<h2>简介</h2>\\n<p>资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码</p>\\n<ul>\\n<li><a href=\\"/store/\\" target=\\"_blank\\">资源/主题商店</a>提供了一些资源包供你选择,你也可以自己制作资源包</li>\\n<li>资源包的制作很简单,如果你接触过<code>Minecraf
|