- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
Magic/Regions
Magic可与 WorldGuard 6.2+版本,或者是搭配了WGCustomFlags的旧版Worldguard并用,从而实现基于WG领域(region)的法术、法杖控制
领域标志指令
管理员可以使用一些自定义标志以控制Magic的运行,使其在不同的领域中有不同的表现,通常用于修改区域标志的命令语法如下:
region flag arena -w world blocked-spell-categories master,engineering
此命令可以让world世界中名为"arena"的领域中无法使用 "master" 和 "engineering" 类别的法术
region flag arena -w world blocked-spells kill,torture
This works like the other example, but using a specific list of spells instead of categories. Note that spell key names are used here (as found in configs), not in-game localized names.
Custom Flags
Magic provides the following custom flags:
- allowed-spells Spells that will be allowed in a region. Takes priority over PvP and build permissions.
- blocked-spells Spells that are not allowed in a region. Takes priority over allowed-spells.
- allowed-spell-categories Works like allowed-spells, but using spell categories instead of keys.
- blocked-spell-categories Works like blocked-spells, but using spell categories instead of keys.
- allowed-wands Wands that are allowed to be used in a region. Takes priority over wand use permissions.
- blocked-wands Wands that are not allowed to be used in a region. Takes priority over allowed-wands.
- spell-overrides Used like the "/wand override" command, can be a powerful tool for making certain spells behave differently in a particular region.
- destructible Can be used to modify which blocks may be destroyed by spells in a specific region.
- reflective Can be used to make specific blocks reflective in a region (spells will bounce off of them)
Wildcards
In all cases "*" can be used as a wildcard, meaning "all". So "/region flag somewhere blocked-spells *" can be used to prevent casting of all spells in a region.
If for some reason you should need it (generally due to overlapping regions) you can use "-" to mean "none". For example, if you have a region where you want to allow all spells, and then inside of that a higher-priority region where you want to block only specific spells you could do:
/region flag outer allowed-spells * /region flag inner blocked-spells blink,fling /region flag inner allowed-spells -
This will prevent the inner region from inheriting the * from its parent region.