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

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

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“== The Official Magic Resource Pack == Magic has an official resource pack that adds several items to support magic. The wooden hoe and golden sword are used for wa…”)
 
第1行: 第1行:
== The Official Magic Resource Pack ==
+
== Magic官方资源包 ==
  
Magic has an official resource pack that adds several items to support magic. The wooden hoe and golden sword are used for wands.
+
Magic有一个官方的资源包,它提供了一些物品以供使用。木锄和金剑被用作法杖材质(修改一些NBT数据实现)
  
== Disabling the Resource Pack ==
+
== 禁用资源包 ==
  
Magic will provide the resource pack automatically. If you don't want this, add the following to your plugins/Magic/config.yml:
+
Magic会自动提供资源包下载。如果不想,请按照此法添加内容在plugins/Magic/config.yml关闭:
  
 
<pre class="">resource_pack: &quot;&quot;</pre>
 
<pre class="">resource_pack: &quot;&quot;</pre>
== Custom Resource Packs ==
+
== 自定义资源包 ==
  
You can also set the <code>resource_pack</code> option to a URL for your own resource pack if you have a custom one and still want Magic to manage it.
+
你也可以设置<code>resource_pack</code> 来通过URL让玩家下载自定义的资源包,依旧由Magic管理此功能
  
== Skull Icons ==
+
== 头颅图标 ==
  
Spell icons are in the resource pack as of Magic 6.1, so if you disable the RP you may also want to turn back on the player-skull based icons (these are no longer updated!)
+
截至Magic6.1,技能图标被放在了资源包当中。所以,如果你关闭了资源包,你可能也需要恢复基于玩家头颅形式的图标(此内容不再更新!)
  
 
<pre class="">url_icons_enabled: true</pre>
 
<pre class="">url_icons_enabled: true</pre>
And if you're turning back on the player skull icons, you may need the [https://github.com/elBukkit/MagicPlugin/blob/93e205d667f042b40f48eafe17ad4296e0d962ae/src/resource-pack/survival/assets/minecraft/models/item/skull_char.json old player skull icon model for your resource pack].
+
如果你重新打开了玩家头颅图标,可能需要参考一下 [https://github.com/elBukkit/MagicPlugin/blob/93e205d667f042b40f48eafe17ad4296e0d962ae/src/resource-pack/survival/assets/minecraft/models/item/skull_char.json 资源包中旧玩家头颅图标模型].
  
Alternately, just put your own resource pack in server.properties and Magic will leave it alone.
+
或者也可以在server.properties或Magic里面放好资源包
  
Please keep in mind that if you're not using the resource pack or a customized version thereof, wands will appear as wood hoes, spell icons will not be visible and none of the custom sound effects will work. You are free to merge these aspects of the Magic RP into your own!
+
请注意,如果你没有使用资源包或者自定义的版本,法杖显示的样子就是木锄,技能图标将不可见且自定义音效无法播放(如magic.zap)。你当然可以随意更改Magic官方资源包的内容,把它放到自己的资源包里
  
== Downloading ==
+
== 下载 ==
  
The current version of the resource pack is subject to change, it's best to use the <code>/getrp url</code> command to get the current URL if you need to download the pack for some reason.
+
当前资源包的版本有更改的可能,如果出于某些原因需要下载,最好在游戏中使用指令 <code>/getrp url</code>获得最新的URL。
  
You can also simply look on your server in plugins/Magic/defaults/config.defaults.yml to find the url under <code>resource_pack</code>.
+
你也可以简单地通过检阅 plugins/Magic/defaults/config.defaults.yml 找到<code>resource_pack</code>下方写的URL。
  
 
=== Using on Your Server ===
 
=== Using on Your Server ===

2021年6月2日 (三) 23:56的版本

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。

Using on Your Server

If you wish to use the Magic RP on your server, simply clear the resource pack from your server.properties. Magic will direct you to the correct version of the RP automatically. Magic also keeps your hash up to date automatically, so players will re-download the RP as it changes.

RP's are available for the example customized configurations as well, they will be used automatically when using an example config.

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 golden hoe, the Wolf wand
    • The golden pickaxe, the invisibility cloak
    • The golden shovel, the broomstick
    • The golden 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:

If you are using a version of Magic prior to 5 (for 1.7 servers), you may need the following RPs instead:

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