import{_ as a,r as s,o as l,c as o,b as e,a as i,w as c,d as t,e as d}from"./app-DCz1I9yu.js";const r={},u=e("h2",{id:"简介",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#简介"},[e("span",null,"简介")])],-1),p=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")],-1),v=e("li",null,[t("轻雪原版资源包请查看"),e("code",null,"LiteyukiBot/liteyuki/resources"),t(",可以在此基础上进行修改")],-1),_=e("li",null,"欢迎各位投稿资源包到轻雪资源商店",-1),y=d(`
- 资源包通常是以
.zip
格式压缩的,只需要将其解压到根目录resources
目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的
main.py
resources
└─resource_pack_1
├─metadata.yml
├─templates
└───...
└─resource_pack_2
├─metadata.yml
└─...
- 你自己制作的资源包也应该遵循这个规则,并且应该在
metadata.yml
中填写一些信息 - 若没有
metadata.yml
文件,则该文件夹不会被识别为资源包
name: "资源包名称"
version: "1.0.0"
description: "资源包描述"
...
- 资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,例如,你在A包中定义了一个
index.html
文件,B包也定义了一个index.html
文件,那么加载B包后,A包中的index.html
文件会被覆盖 - 对于不同资源包的不同文件,是可以相对引用的,例如你在A中定义了
templates/index.html
,在B中定义了templates/style.css
,可以在A的index.html
中用./style.css
相对路径引用B中的css
`,6);function k(g,b){const n=s("RouteLink");return l(),o("div",null,[u,p,e("ul",null,[e("li",null,[i(n,{to:"/store/"},{default:c(()=>[t("资源/主题商店")]),_:1}),t("提供了一些资源包供你选择,你也可以自己制作资源包")]),m,h,v,_]),y])}const x=a(r,[["render",k],["__file","resource_pack.html.vue"]]),B=JSON.parse('{"path":"/usage/resource_pack.html","title":"资源包","lang":"zh-CN","frontmatter":{"title":"资源包","icon":"paint-brush","order":3,"category":"使用手册","description":"简介 资源包,亦可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源代码 提供了一些资源包供你选择,你也可以自己制作资源包 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你能够很快就上手,仅需按照原有路径进行文件替换即可,讲起打包成一个新的资源包。 部分内容制作需要一点点前端基础,例如html,c...","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,c..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-10T15:06:55.000Z"}],["meta",{"property":"article:author","content":"远野千束"}],["meta",{"property":"article:modified_time","content":"2024-04-10T15:06:55.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"资源包\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-10T15:06:55.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":1712761615000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":3},{"name":"Snowykami","email":"79104275+snowykami@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":1.63,"words":490},"filePathRelative":"usage/resource_pack.md","localizedDate":"2024年4月6日","autoDesc":true}');export{x as comp,B as data};