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

“Magic/FAQ”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“ '''How do I customize spells and wands?''' <details><summary>Answer</summary><p><br /> Do not edit the files in the "defaults" folder. The files in "…”)
 
 
(未显示同一用户的16个中间版本)
第1行: 第1行:
  
'''How do I customize spells and wands?''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''如何自定义法术和法杖?''' |内容=
Do not edit the files in the &quot;defaults&quot; folder. The files in &quot;plugins/Magic&quot; will override the defaults, so put any customizations you want to make in there. This includes changing default spell behavior, disabling defaults, or adding new spells and wands.
+
请勿编辑 &quot;defaults&quot; 文件夹内的文件. 这个文件就在 <code>plugins/Magic</code> 中如果你在这里配置内容它会覆盖为默认设置。包括修改默认法术配置、禁用法术、创建法术、创建法杖在内的操作都会被重置
  
Keep in mind that whatever you add to your customized files gets ''added'' to the defaults. If you'd like to start completely fresh with your own configs, and/or copy entire spells from the default configs, it's best to disable the defaults via &quot;'''load''default''spells: false'''&quot; in config.yml.
+
请记住,自行加入任何自定义的文件都会被“添加”至默认设置里,如果你想彻底推翻原有配置,或者复制默认的全部设置,那么最好在config.yml中找到&quot;'''load''default''spells: false'''&quot设置成false以关闭
  
See [[Customization|the Customization Section]] for more information.<br />
+
请查阅 [[Magic/Customization|自定义]]获取更多信息
</p></details>
+
}}</center>
  
'''My broomstick won't move!''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''我的扫帚怎么不动了?!''' |内容=
You're using Paper and have set <code>armor_stand_tick</code> to false. Set it back to true.<br />
+
如果你使用Paper核心且在paper.yml里设置了 <code>armor_stand_tick</code> 为false,请把它改成true
Broomsticks (and other things) in Magic use armor stands, so turning off their ability to move will break them.
+
扫帚或者其他一些什么东西,其实是通过盔甲架做出那种效果,所以在paper中关闭这些功能就会让它们无法使用
 +
}}</center>
  
'''How do I change the Spell Point Cooldown?''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''我要怎么修改技能点的冷却?''' |内容=
You can change the spell point cooldown globally or per-spell by editing the spell config. See [[SpellPoints#balancing-sp|SP Balancing]] for more information.
+
你可以全局修改技能点冷却或者每一个技能的技能点冷却(需要在法术配置里面修改)。请查阅[[Magic/Spell Points#SP调整|SP调整]] 获取更多信息
 +
}}</center>
  
'''I'm getting errors from my configs!''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''我的配置出错了!''' |内容=
First, check to make sure you are using spaces in your yaml configs, and not tabs.
+
首先你要确认是不是使用了TAB代替了空格,YAML语法不认TAB
  
It's a good idea to get an editor that understands Yaml, rather than using something like Notepad.
+
最好用一个专门的YAML语法编辑器如Notepad++而不是Win自带的记事本
  
Also make sure you do not have any leading spaces at the top level, <code>example: potter</code> is good, <code>example potter</code> is not.
+
同样也要确保没有在最高层次前加空格,例如 <code> potter</code>就很好, <code>example potter</code>则不行
  
Try to use a [http://yaml-online-parser.appspot.com Yaml validation tool] to see where your errors are before asking for help.
+
尝试使用 [http://yaml-online-parser.appspot.com YAML语法检测工具]看看哪里语法错了(疑似要翻墙)
  
The in-game editor (<code>/mconfig editor</code>) will also help spot these kind of errors.<br />
+
游戏内编辑器 (<code>/mconfig editor</code>)可以帮你纠错<br />
</p></details>
+
}}</center>
  
'''My wand is acting weird in creative mode''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''创造模式下法杖好像不太正常?''' |内容=
Wands don't really work in creative mode, there's not much I can do about that.<br />
+
法杖在创造模式并不能完全正常工作, 有时候就是这样无能为力<br />
</p></details>
+
}}</center>
  
'''How do I localize or change the text in this plugin?''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''怎么本地化/修改插件内文本?''' |内容=
All of Magic's in-game text can be changed in plugins/Magic/messages.yml
+
所有Magic的游戏内文本都可以在<code>plugins/Magic/messages.yml</code>里修改
  
See [[Messages|the Messages Section]] for more information.
+
详情请看 [[Magic/Messages and Languages|语言和消息]]
 +
}}</center>
  
</p></details>
+
<center>{{hide|标题='''我怎么玩到哈利波特/星球大战/Bending/Guns?''' |内容=
 +
看看 [[Magic/Examples|示例]]<br />
 +
}}</center>
  
'''How do I turn on the Harry Potter/Star Wars/Bending/Guns?''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''我怎么修改商店价格?''' |内容=
See the [[Examples|Examples]] section.<br />
 
</p></details>
 
  
'''How do I change shop prices?''' <details><summary>Answer</summary><p>
+
自定义商店的内容请点此链接查看: [Magic/Shops#修改价格 Shops]
 +
}}</center>
  
See here for information on customizing shops: [https://github.com/elBukkit/MagicPlugin/wiki/Shops#changing-prices Shops]
+
<center>{{hide|标题='''我怎么制作一个生存服的技能、法杖或配方?'''  |内容=
 +
针对生存服有配置好的,可以试试这个: https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival
  
</p></details>
+
藉此可能是一个好的开始,你可以在游戏里放一个熟悉的法术,然后看看它是怎么运行的
  
'''How can I start making my own spells, wands and recipes?''' <details><summary>Answer</summary><p><br />
+
earthquake(地震) 和 singularity (奇点)是比较复杂的法术里较好的学习范例。自定义请参考[Magic/Customization 自定义]
All of the survival configs can be seen here: https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival
+
}}</center>
  
This is a great place to start learning about the plugin. The best way to learn is to example a spell you are familiar with in-game to see how it works.
+
<center>{{hide|标题='''我怎么去看合成配方?''' |内容=
 +
所有生存合成配方在这可以找到: [https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival/crafting 合成设置]
  
earthquake and singularity are good spells to look at if you're curious how some of the more complex spells work. The Customization section https://github.com/elBukkit/MagicPlugin/wiki/Customization is also a good place to start.
+
在服务端里也可以看到,路径: plugins/Magic/defaults/crafting.defaults.yml
 +
}}</center>
  
You can also visit the [http://sandbox.elmakers.com elMakers sandbox server] for a live spell editor that has syntax highlighting error detection, auto-complete, and lets you test your spells out live on the server at <code>sandbox.elmakers.com</code>.<br />
+
<center>{{hide|标题='''有时候法杖会随机停止工作''' |内容=
</p></details>
+
如果你在 CraftBukkit/Spigot 1.7上运行Magic,请确保使用了特定的版本 [http://dev.bukkit.org/plugins/magic/ CB Build].通常情况下,创造模式和许多插件会破坏法杖上特殊的自定义数据。Magic本身最好在1.8+运行
  
'''How can I see crafting recipes?''' <details><summary>Answer</summary><p><br />
+
如果你在1.8+遇到这个问题, 则可能是因为某个插件不正常地保存或恢复物品导致的<br />
All of the survival crafting recipes can be seen here: [https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival/crafting crafting configs]
+
}}</center>
  
They are also viewable on your server, in plugins/Magic/defaults/crafting.defaults.yml<br />
+
<center>{{hide|标题='''为什么 [https://github.com/elBukkit/MagicPlugin/wiki/Icons 法术图标]全部都是钻石斧?''' |内容=
</p></details>
+
需要加载 [[Magic/Resource Pack|资源包]]才能正确显示法术/法杖的图标<br />
 +
}}</center>
  
'''Sometimes my wands randomly stop working!''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题=''熟练度进度是什么?''' |内容=
If you are running on CraftBukkit/Spigot 1.7, make sure to use the special [http://dev.bukkit.org/plugins/magic/ CB Build]. In particular, creative mode and many plugins will destroy the special custom data attached to wands. Magic works much better on 1.8 servers.
+
法杖最初从初心者开始,逐渐进阶为学徒、新手、大师、工程师、建筑师、管道工。默认工程师和建筑师不可用,可以通过<code>/mconfig example add engineering</code>添加工程范例。 管道工更是锁定的一个进度,在添加工程范例之前,最好对这方面多做了解
 +
}}</center>
  
If you are running on 1.8 or above, it may be a plugin that is improperly saving and restoring items.<br />
+
<center>{{hide|标题='''玩家弄丢了法杖,该怎么办?''' |内容=
</p></details>
+
使用&quot;restore&quot; 命令可以恢复玩家绑定的法杖,只有法杖配置中设置了&quot;bound【绑定】&quot;功能且已经绑定给了玩家才有效
  
'''I can't see [https://github.com/elBukkit/MagicPlugin/wiki/Icons spell icons] they're just diamond axes!'''<details><summary>Answer</summary><p><br />
+
<code>/wandp &lt;player&gt; restore</code>
You will need to use the [[ResourcePack|Resource Pack]] for the spell and wand icons to show up properly.<br />
 
</p></details>
 
 
 
'''What is the rank progression?''' <details><summary>Answer</summary><p><br />
 
Wands progress from Beginner, to Student, Apprentice, Master, Engineer, Architect and Conduit. The Engineer and Architect ranks are not available by default, you have to add the engineering examples with <code>/mconfig example add engineering</code>. Conduit is further locked, you will get instructions on how to allow that if you want, when adding the engineering example.
 
 
 
</p></details>
 
 
 
'''A player has lost their wand, what can I do?''' <details><summary>Answer</summary><p><br />
 
The &quot;restore&quot; command can be used to restore a player's bound wands. This only works if the wands are set to &quot;bound&quot; in the configs and have bound to the player.
 
  
<code>/wandp &lt;player&gt; restore</code>
+
即可恢复玩家的法杖.每个类型的法杖仅能存储一个,所以如果玩家有多个不同的法杖就可能没有用了
  
Will restore a player's wands. Only one wand of each type is saved, so this may not work well for players that keep multiple different wands.<br />
+
}}</center>
</p></details>
 
  
'''How do I allow spells to target NPCs?''' <details><summary>Answer</summary><p><br />
+
<center>{{hide|标题='''怎么让法术以NPC为目标?''' |内容=
Spells won't target NPCs by default. You can turn this on by adding &quot;target_npc: true&quot; to a spell's parameters. To turn this on for all spells, use the &quot;default&quot; entry in spells.yml, like so:
+
默认无法选取NPC为目标,可以在法术的参数处添加一行 &quot;target_npc: true&quot; 以实现。如需给所有法术添加此参数,请编辑spells.yml中的 &quot;default&quot;法术,如下:
  
 
<pre class="">default:
 
<pre class="">default:
 
  parameters:
 
  parameters:
 
   target_npc: true</pre>
 
   target_npc: true</pre>
</p></details>
+
}}</center>
 +
 
 +
<center>{{hide|标题='''怎么让玩家无法在WorldGuard区域里使用某法术?''' |内容=
 +
此功能需要安装WorldGuard 6.2或更高版本,Magic可供添加一些新的标志(flags):
  
'''How do I change it so players can't use specific spells in a region?''' <details><summary>Answer</summary><p><br />
+
<pre class="">/region flag arena -w world blocked-spells kill,torture</pre>
This can be done using WorldGuard 6.2 or higher, Magic will add some custom flags:
+
详细信息请查阅 [[Magic/Regions|领域]]
  
<pre class="">region flag arena -w world blocked-spells kill,torture</pre>
+
}}</center>
For more info see the [[Regions|Regions]] section.<br />
 
</p></details>
 

2021年8月21日 (六) 08:44的最新版本

如何自定义法术和法杖?
请勿编辑 "defaults" 文件夹内的文件. 这个文件就在 plugins/Magic 中如果你在这里配置内容它会覆盖为默认设置。包括修改默认法术配置、禁用法术、创建法术、创建法杖在内的操作都会被重置

请记住,自行加入任何自定义的文件都会被“添加”至默认设置里,如果你想彻底推翻原有配置,或者复制默认的全部设置,那么最好在config.yml中找到"loaddefaultspells: false&quot设置成false以关闭

请查阅 自定义获取更多信息

我的扫帚怎么不动了?!
如果你使用Paper核心且在paper.yml里设置了 armor_stand_tick 为false,请把它改成true

扫帚或者其他一些什么东西,其实是通过盔甲架做出那种效果,所以在paper中关闭这些功能就会让它们无法使用

我要怎么修改技能点的冷却?
你可以全局修改技能点冷却或者每一个技能的技能点冷却(需要在法术配置里面修改)。请查阅SP调整 获取更多信息
我的配置出错了!
首先你要确认是不是使用了TAB代替了空格,YAML语法不认TAB

最好用一个专门的YAML语法编辑器如Notepad++而不是Win自带的记事本

同样也要确保没有在最高层次前加空格,例如 potter就很好, example potter则不行

尝试使用 YAML语法检测工具看看哪里语法错了(疑似要翻墙)

游戏内编辑器 (/mconfig editor)可以帮你纠错

创造模式下法杖好像不太正常?
法杖在创造模式并不能完全正常工作, 有时候就是这样无能为力
怎么本地化/修改插件内文本?
所有Magic的游戏内文本都可以在plugins/Magic/messages.yml里修改

详情请看 语言和消息

我怎么玩到哈利波特/星球大战/Bending/Guns?
看看 示例
我怎么修改商店价格?
自定义商店的内容请点此链接查看: [Magic/Shops#修改价格 Shops]
我怎么制作一个生存服的技能、法杖或配方?
针对生存服有配置好的,可以试试这个: https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival

藉此可能是一个好的开始,你可以在游戏里放一个熟悉的法术,然后看看它是怎么运行的

earthquake(地震) 和 singularity (奇点)是比较复杂的法术里较好的学习范例。自定义请参考[Magic/Customization 自定义]

我怎么去看合成配方?
所有生存合成配方在这可以找到: 合成设置

在服务端里也可以看到,路径: plugins/Magic/defaults/crafting.defaults.yml

有时候法杖会随机停止工作
如果你在 CraftBukkit/Spigot 1.7上运行Magic,请确保使用了特定的版本 CB Build.通常情况下,创造模式和许多插件会破坏法杖上特殊的自定义数据。Magic本身最好在1.8+运行

如果你在1.8+遇到这个问题, 则可能是因为某个插件不正常地保存或恢复物品导致的

为什么 法术图标全部都是钻石斧?
需要加载 资源包才能正确显示法术/法杖的图标
熟练度进度是什么?'
法杖最初从初心者开始,逐渐进阶为学徒、新手、大师、工程师、建筑师、管道工。默认工程师和建筑师不可用,可以通过/mconfig example add engineering添加工程范例。 管道工更是锁定的一个进度,在添加工程范例之前,最好对这方面多做了解
玩家弄丢了法杖,该怎么办?
使用"restore" 命令可以恢复玩家绑定的法杖,只有法杖配置中设置了"bound【绑定】"功能且已经绑定给了玩家才有效

/wandp <player> restore

即可恢复玩家的法杖.每个类型的法杖仅能存储一个,所以如果玩家有多个不同的法杖就可能没有用了

怎么让法术以NPC为目标?
默认无法选取NPC为目标,可以在法术的参数处添加一行 "target_npc: true" 以实现。如需给所有法术添加此参数,请编辑spells.yml中的 "default"法术,如下:
default:
 parameters:
   target_npc: true
怎么让玩家无法在WorldGuard区域里使用某法术?
此功能需要安装WorldGuard 6.2或更高版本,Magic可供添加一些新的标志(flags):
/region flag arena -w world blocked-spells kill,torture

详细信息请查阅 领域