- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
Magic/FAQ:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{hide|标题='''如何自定义法术和法杖?''' |内容= | {{hide|标题='''如何自定义法术和法杖?''' |内容= | ||
Do not edit the files in the "defaults" folder. The files in "plugins/Magic" 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. | Do not edit the files in the "defaults" folder. The files in "plugins/Magic" 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. | ||
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 "'''load''default''spells: false'''" in config.yml. | 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 "'''load''default''spells: false'''" in config.yml. | ||
See [[Customization|the Customization Section]] for more information. | See [[Customization|the Customization Section]] for more information. | ||
])}} | |||
'''My broomstick won't move!''' | {{hide|标题='''My broomstick won't move!''' |内容= | ||
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. | ||
])}} | |||
'''How do I change the Spell Point Cooldown?'' | {{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. | ||
])}} | |||
'''I'm getting errors from my configs!''' | {{hide|标题='''I'm getting errors from my configs!''' |内容= | ||
First, check to make sure you are using spaces in your yaml configs, and not tabs. | First, check to make sure you are using spaces in your yaml configs, and not tabs. | ||
第32行: | 第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 /> | ||
])}} | |||
'''My wand is acting weird in creative mode''' | {{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 /> | ||
])}} | |||
'''How do I localize or change the text in this plugin?''' | {{hide|标题='''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 | All of Magic's in-game text can be changed in plugins/Magic/messages.yml | ||
See [[Messages|the Messages Section]] for more information. | See [[Messages|the Messages Section]] for more information. | ||
])}} | |||
{{hide|标题='''How do I turn on the Harry Potter/Star Wars/Bending/Guns?''' |内容= | |||
'''How do I turn on the Harry Potter/Star Wars/Bending/Guns?''' | |||
See the [[Examples|Examples]] section.<br /> | See the [[Examples|Examples]] section.<br /> | ||
])}} | |||
'''How do I change shop prices?''' | {{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] | ||
])}} | |||
'''How can I start making my own spells, wands and recipes?''' | {{hide|标题='''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 | All of the survival configs can be seen here: https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/survival | ||
第62行: | 第56行: | ||
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. | 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 [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>. | ||
])}} | |||
'''How can I see crafting recipes?''' | {{hide|标题='''How can I see crafting recipes?''' |内容= | ||
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] | 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] | ||
第71行: | 第65行: | ||
</p></details> | </p></details> | ||
'''Sometimes my wands randomly stop working!''' | {{hide|标题='''Sometimes my wands randomly stop working!''' |内容= | ||
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. | 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. | ||
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 /> | ||
])}} | |||
'''I can't see [https://github.com/elBukkit/MagicPlugin/wiki/Icons spell icons] they're just diamond axes!''' | {{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 /> | ||
])}} | |||
'''What is the rank progression?''' | {{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. | ||
])}} | |||
'''A player has lost their wand, what can I do?''' | {{hide|标题='''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. | 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. | ||
第92行: | 第86行: | ||
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 /> | ||
])}} | |||
'''How do I allow spells to target NPCs?''' | {{hide|标题='''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: | 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: | ||
第100行: | 第94行: | ||
parameters: | parameters: | ||
target_npc: true</pre> | target_npc: true</pre> | ||
])}} | |||
'''How do I change it so players can't use specific spells in a region?''' | {{hide|标题='''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: | This can be done using WorldGuard 6.2 or higher, Magic will add some custom flags: | ||
<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 /> | ||
])}} |
2021年5月29日 (六) 04:08的版本
如何自定义法术和法杖? |
---|
Do not edit the files in the "defaults" folder. The files in "plugins/Magic" 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.
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 "loaddefaultspells: false" in config.yml. See the Customization Section for more information. ]) |
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, Try to use a Yaml validation tool to see where your errors are before asking for help. The in-game editor ( |
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 |
{{hide|标题=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
</details>
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.
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. |