• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Magic/Resource Pack:修订间差异

来自Minecraft插件百科
跳转到导航 跳转到搜索
第63行: 第63行:
这些资源包大体和现有版本相同,但它们覆盖了僵尸马的材质,用于骑行扫帚时的2D法杖材质These RPs should be identical to the current versions, except that they include an override for the zombie horse texture, used for the 2D broom texture while riding.
这些资源包大体和现有版本相同,但它们覆盖了僵尸马的材质,用于骑行扫帚时的2D法杖材质These RPs should be identical to the current versions, except that they include an override for the zombie horse texture, used for the 2D broom texture while riding.


=== Customizing ===
=== 自定义 ===


You are also welcome to download the zip and modify it as you wish, it<br />
你可以随意下载和 修改Zip压缩包<br />
is provided completely free as in everything. Just unzip, modify, re-zip<br />
它完全免费,不论用作何途 Just unzip, modify, re-zip<br />
and host somewhere public.
只需解压、修改、再压缩,然后分享给大众


Bear in mind you may want to tweak the Magic configuration to match your changes. The easiest way to customize is to just replace the models in the RP.
请记住,你可能还需要调整Magic的一些配置以适应你的更改。最简单的修改方法是替换掉资源包中的模型。


The linking between configs and models in the resource pack is done with custom model data. This is pretty easy to set up, just open up any of the builtin models (like stick.json) to see how it works:
配置和模型之间的联系是通过自定义模型数据建立的。设置起来很简单,只需要开启任何内置模型即可(如stick.json),现在来看看它是如何工作的


<pre class="">{
<pre class="">{

2021年6月2日 (三) 16:30的版本

Magic官方资源包

Magic有一个官方的资源包,它提供了一些物品以供使用。木锄和金剑被用作法杖材质(修改一些NBT数据实现)

禁用资源包

Magic会自动提供资源包下载。如果不想,请按照此法添加内容在plugins/Magic/config.yml关闭:

resource_pack: ""

自定义资源包

你也可以设置resource_pack 来通过URL让玩家下载自定义的资源包,依旧由Magic管理此功能

头颅图标

截至Magic6.1,技能图标被放在了资源包当中。所以,如果你关闭了资源包,你可能也需要恢复基于玩家头颅形式的图标(此内容不再更新!)
url_icons_enabled: true

如果你重新打开了玩家头颅图标,可能需要参考一下 资源包中旧玩家头颅图标模型.

或者也可以在server.properties或Magic里面放好资源包

请注意,如果你没有使用资源包或者自定义的版本,法杖显示的样子就是木锄,技能图标将不可见且自定义音效无法播放(如magic.zap)。你当然可以随意更改Magic官方资源包的内容,把它放到自己的资源包里

下载

当前资源包的版本有更改的可能,如果出于某些原因需要下载,最好在游戏中使用指令 /getrp url获得最新的URL。

你也可以简单地通过检阅 plugins/Magic/defaults/config.defaults.yml 找到resource_pack下方写的URL。

在服务器中使用

如果你想在服务器中使用资源包,请把server.properties中的资源包链接删除。Magic将会自动帮助你使用正确版本的资源包,也可以自动更新Hash值,所以玩家在资源包更改会须重新下载

资源包同样可作为示例的自定义配置,当使用默认配置时也会默认采用

旧的版本

资源包旧版本,会占用一部分 原版物品

  • 一些法杖:
    • 木锄, 默认法杖
    • 金斧, 大师法杖the master wand
    • 金锄,狼法杖The golden hoe, the Wolf wand
    • 金镐,隐身斗篷The golden pickaxe, the invisibility cloak
    • 金锹,魔法扫帚The golden shovel, the broomstick
    • 金剑,大师之剑 the Master Sword
  • 怪物蛋方块 (只有在玩家背包里才有效,而不是对于怪物蛋方块)
    • 建筑师法杖

如果你使用了MagicV6-(适用于1.8服务器), 下面的内容可能有用:

如果你使用了MagicV5-(适用于1.7服务器), 下面的内容可能有用:

这些资源包大体和现有版本相同,但它们覆盖了僵尸马的材质,用于骑行扫帚时的2D法杖材质These RPs should be identical to the current versions, except that they include an override for the zombie horse texture, used for the 2D broom texture while riding.

自定义

你可以随意下载和 修改Zip压缩包
它完全免费,不论用作何途 Just unzip, modify, re-zip
只需解压、修改、再压缩,然后分享给大众

请记住,你可能还需要调整Magic的一些配置以适应你的更改。最简单的修改方法是替换掉资源包中的模型。

配置和模型之间的联系是通过自定义模型数据建立的。设置起来很简单,只需要开启任何内置模型即可(如stick.json),现在来看看它是如何工作的

{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "minecraft:item/stick"
  },
  "overrides": [
    {"predicate": {"custom_model_data": 18001}, "model": "item/custom/old_survival_wand1"},
    {"predicate": {"custom_model_data": 18002}, "model": "item/custom/old_survival_wand2"},
    {"predicate": {"custom_model_data": 18003}, "model": "item/custom/survival_wand1"},
... etc

Each model in the "overrides" list corresponds to a specific custom model data number. You can configure or spawn in these items with

/mgive stick{18001}

On older versions of Magic you may need to use a slightly longer format:

/mgive stick{CustomModelData:18001}

Pre-1.14 (Damage predicates rather than custom model data)

The linking between the configs and resource packs is basically just a combination of item and durability id.

If you wan to create and add new models, you will want to be familiar with the technique the plugin uses for adding custom models:

https://www.spigotmc.org/wiki/custom-item-models-in-1-9-and-up/

Most of the models in this RP were created using BDCraft Cubik. Beyond this, we can't really support or help with making custom resource packs, there are tutorials available elsewhere for that.

Merging

Sometimes you may want to combine Magic's RP with another RP. This could be a custom RP for your server, or one required by another plugin.

We have a utility for that: Resource Pack Merger

It is recommended to use this utility as it will properly merge models if there are conflicts. In most cases this should let you use Magic's RP combined with other plugin RPs, even if they use custom model data or damage predicates.

The manual way to do this is:

  1. Unzip your RP
  2. Unzip Magic's RP
  3. Copy Magic's RP onto your RP
  4. Zip the result back up.

Sometimes, however, you'll find you have a collision between the items Magic is using versus the items in your RP.

If you need to change any of the items used by Magic, you can do that. See here for the main items used by Magic:

https://github.com/elBukkit/MagicPlugin/blob/master/Magic/src/main/resources/defaults/items/icons.yml

So for instance if you need to change the item used for spell icons, you can do that in two steps.

  1. After unzipping Magic's RP (step 2 above), rename and edit the assets/minecraft/models/item/diamondaxe.json to (for instance) ironaxe.
  2. Edit plugins/Magic/items.yml, adding a line like spell_icon: iron_axe

This will switch all spell icons to use the iron axe.

Source

The resource pack source and assets are available here:

https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/resource-pack

Alternative RPs

I made a "painterly" RP before realizing the free/open icons I found were already used in another popular Minecraft client mod. So I decided not to make these the defaults, but you can still use them.

Just put "example: painterly" in your config.yml to turn them on, or use the RP directly:

http://rp.elmakers.com/Magic-painterly-RP-6-1.zip