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

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

来自Minecraft插件百科
跳转至: 导航搜索
第11行: 第11行:
 
You're using Paper and have set <code>armor_stand_tick</code> to false. Set it back to true.<br />
 
You're using Paper and have set <code>armor_stand_tick</code> to false. Set it back to true.<br />
 
Broomsticks (and other things) in Magic use armor stands, so turning off their ability to move will break them.
 
Broomsticks (and other things) in Magic use armor stands, so turning off their ability to move will break them.
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How do I change the Spell Point Cooldown?'' |内容=
 
<center>{{hide|标题='''How do I change the Spell Point Cooldown?'' |内容=
 
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.
 
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.
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''I'm getting errors from my configs!''' |内容=
 
<center>{{hide|标题='''I'm getting errors from my configs!''' |内容=
第27行: 第27行:
  
 
The in-game editor (<code>/mconfig editor</code>) will also help spot these kind of errors.<br />
 
The in-game editor (<code>/mconfig editor</code>) will also help spot these kind of errors.<br />
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''My wand is acting weird in creative mode''' |内容=
 
<center>{{hide|标题='''My wand is acting weird in creative mode''' |内容=
 
Wands don't really work in creative mode, there's not much I can do about that.<br />
 
Wands don't really work in creative mode, there's not much I can do about that.<br />
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How do I localize or change the text in this plugin?''' |内容=
 
<center>{{hide|标题='''How do I localize or change the text in this plugin?''' |内容=
第37行: 第37行:
  
 
See [[Messages|the Messages Section]] for more information.
 
See [[Messages|the Messages Section]] for more information.
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How do I turn on the Harry Potter/Star Wars/Bending/Guns?''' |内容=
 
<center>{{hide|标题='''How do I turn on the Harry Potter/Star Wars/Bending/Guns?''' |内容=
 
See the [[Examples|Examples]] section.<br />
 
See the [[Examples|Examples]] section.<br />
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How do I change shop prices?'''  |内容=
 
<center>{{hide|标题='''How do I change shop prices?'''  |内容=
  
 
See here for information on customizing shops: [https://github.com/elBukkit/MagicPlugin/wiki/Shops#changing-prices Shops]
 
See here for information on customizing shops: [https://github.com/elBukkit/MagicPlugin/wiki/Shops#changing-prices Shops]
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How can I start making my own spells, wands and recipes?'''  |内容=
 
<center>{{hide|标题='''How can I start making my own spells, wands and recipes?'''  |内容=
第56行: 第56行:
  
 
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>.
 
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>.
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How can I see crafting recipes?''' |内容=
 
<center>{{hide|标题='''How can I see crafting recipes?''' |内容=
第62行: 第62行:
  
 
They are also viewable on your server, in plugins/Magic/defaults/crafting.defaults.yml
 
They are also viewable on your server, in plugins/Magic/defaults/crafting.defaults.yml
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''Sometimes my wands randomly stop working!''' |内容=
 
<center>{{hide|标题='''Sometimes my wands randomly stop working!''' |内容=
第68行: 第68行:
  
 
If you are running on 1.8 or above, it may be a plugin that is improperly saving and restoring items.<br />
 
If you are running on 1.8 or above, it may be a plugin that is improperly saving and restoring items.<br />
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''I can't see [https://github.com/elBukkit/MagicPlugin/wiki/Icons spell icons] they're just diamond axes!''' |内容=
 
<center>{{hide|标题='''I can't see [https://github.com/elBukkit/MagicPlugin/wiki/Icons spell icons] they're just diamond axes!''' |内容=
 
You will need to use the [[ResourcePack|Resource Pack]] for the spell and wand icons to show up properly.<br />
 
You will need to use the [[ResourcePack|Resource Pack]] for the spell and wand icons to show up properly.<br />
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''What is the rank progression?'''  |内容=
 
<center>{{hide|标题='''What is the rank progression?'''  |内容=
 
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.
 
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.
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''A player has lost their wand, what can I do?''' |内容=
 
<center>{{hide|标题='''A player has lost their wand, what can I do?''' |内容=
第84行: 第84行:
  
 
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 />
 
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>
+
}}</center>
  
 
<center>{{hide|标题='''How do I allow spells to target NPCs?'''  |内容=
 
<center>{{hide|标题='''How do I allow spells to target NPCs?'''  |内容=
第92行: 第92行:
 
  parameters:
 
  parameters:
 
   target_npc: true</pre>
 
   target_npc: true</pre>
])}}</center>
+
}}</center>
  
 
<center>{{hide|标题='''How do I change it so players can't use specific spells in a region?''' |内容=
 
<center>{{hide|标题='''How do I change it so players can't use specific spells in a region?''' |内容=
第99行: 第99行:
 
<pre class="">region flag arena -w world blocked-spells kill,torture</pre>
 
<pre class="">region flag arena -w world blocked-spells kill,torture</pre>
 
For more info see the [[Regions|Regions]] section.<br />
 
For more info see the [[Regions|Regions]] section.<br />
])}}</center>
+
}}</center>

2021年5月29日 (六) 17:04的版本

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

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

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

My broomstick won't move!
You're using Paper and have set armor_stand_tick to false. Set it back to true.

Broomsticks (and other things) in Magic use armor stands, so turning off their ability to move will break them.

'How do I change the Spell Point Cooldown?
You can change the spell point cooldown globally or per-spell by editing the spell config. See SP Balancing for more information.
I'm getting errors from my configs!
First, check to make sure you are using spaces in your yaml configs, and not tabs.

It's a good idea to get an editor that understands Yaml, rather than using something like Notepad.

Also make sure you do not have any leading spaces at the top level, example: potter is good, example potter is not.

Try to use a Yaml validation tool to see where your errors are before asking for help.

The in-game editor (/mconfig editor) will also help spot these kind of errors.

My wand is acting weird in creative mode
Wands don't really work in creative mode, there's not much I can do about that.
How do I localize or change the text in this plugin?
All of Magic's in-game text can be changed in plugins/Magic/messages.yml

See the Messages Section for more information.

How do I turn on the Harry Potter/Star Wars/Bending/Guns?
See the Examples section.
How do I change shop prices?
See here for information on customizing shops: Shops
How can I start making my own spells, wands and recipes?
All of the survival configs can be seen here: https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival

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.

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.

You can also visit the 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 sandbox.elmakers.com.

How can I see crafting recipes?
All of the survival crafting recipes can be seen here: crafting configs

They are also viewable on your server, in plugins/Magic/defaults/crafting.defaults.yml

Sometimes my wands randomly stop working!
If you are running on CraftBukkit/Spigot 1.7, make sure to use the special 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.

If you are running on 1.8 or above, it may be a plugin that is improperly saving and restoring items.

I can't see spell icons they're just diamond axes!
You will need to use the Resource Pack for the spell and wand icons to show up properly.
What is the rank progression?
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 /mconfig example add engineering. Conduit is further locked, you will get instructions on how to allow that if you want, when adding the engineering example.
A player has lost their wand, what can I do?
The "restore" command can be used to restore a player's bound wands. This only works if the wands are set to "bound" in the configs and have bound to the player.

/wandp <player> restore

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.

How do I allow spells to target NPCs?
Spells won't target NPCs by default. You can turn this on by adding "target_npc: true" to a spell's parameters. To turn this on for all spells, use the "default" entry in spells.yml, like so:
default:
 parameters:
   target_npc: true
How do I change it so players can't use specific spells in a region?
This can be done using WorldGuard 6.2 or higher, Magic will add some custom flags:
region flag arena -w world blocked-spells kill,torture

For more info see the Regions section.