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

“Magic/Resource Pack”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
Using on Your Server
Older versions
第35行: 第35行:
 
资源包同样可作为示例的自定义配置,当使用默认配置时也会默认采用
 
资源包同样可作为示例的自定义配置,当使用默认配置时也会默认采用
  
=== Older versions ===
+
=== 旧的版本 ===
  
Older versions of the resource pack occupy some vanilla items:
+
资源包旧版本,会占用一部分 原版物品
  
* Several wand items:
+
* 一些法杖:
** The wooden hoe, the default wand
+
** 木锄, 默认法杖
** The golden axe, the master wand
+
** 金斧, 大师法杖the master wand
** The golden hoe, the Wolf wand
+
** 金锄,狼法杖The golden hoe, the Wolf wand
** The golden pickaxe, the invisibility cloak
+
** 金镐,隐身斗篷The golden pickaxe, the invisibility cloak
** The golden shovel, the broomstick
+
** 金锹,魔法扫帚The golden shovel, the broomstick
** The golden sword, the Master Sword
+
** 金剑,大师之剑 the Master Sword
* The monster egg blocks (only as they appear in your inventory, not the placed blocks)
+
* 怪物蛋方块 (只有在玩家背包里才有效,而不是对于怪物蛋方块)
** The architect wand
+
** 建筑师法杖
  
If you are using a version of Magic prior to 6 (for 1.8 servers), you may need the following RPs instead:
+
如果你使用了MagicV6-(适用于1.8服务器), 下面的内容可能有用:
  
 
* http://rp.elmakers.com/Magic-RP-5.zip
 
* http://rp.elmakers.com/Magic-RP-5.zip
第55行: 第55行:
 
* http://rp.elmakers.com/Magic-bending-RP-5.zip
 
* http://rp.elmakers.com/Magic-bending-RP-5.zip
  
If you are using a version of Magic prior to 5 (for 1.7 servers), you may need the following RPs instead:
+
如果你使用了MagicV5-(适用于1.7服务器), 下面的内容可能有用:
  
 
* http://rp.elmakers.com/Magic-RP-4.zip
 
* http://rp.elmakers.com/Magic-RP-4.zip
第61行: 第61行:
 
* http://rp.elmakers.com/Magic-bending-RP-4.zip
 
* http://rp.elmakers.com/Magic-bending-RP-4.zip
  
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 ===
 
=== Customizing ===

2021年6月3日 (四) 00:06的版本

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.

Customizing

You are also welcome to download the zip and modify it as you wish, it
is provided completely free as in everything. Just unzip, modify, re-zip
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.

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:

{
  "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