Make players not cast in certain areas and wand core
Cornelwallace opened this issue ยท 9 comments
Hi there! I was wondering if there was a way I could make players not cast certain spells in certain areas and the other thing I wanted is to make wands have cores which im having trouble trying to figure out.
You can use the latest version of WorldGuard, Magic will add some flags. You can then do /region flag blocked-spells accio,apparate,etc
There is no such thing as "cores", really. Wands have a description- you can have that description randomized. You should really just use the potter configs and customize from there :)
The relevant parts of the configs are here in messages.yml:
randomized:
wood:
- Acacia
- Alder
- Apple
- Ash
- Aspen
- Beech
- Blackthorn
- Black Walnut
- Cedar
- Cherry
- Chestnut
- Cypress
- Dogwood
- Ebony
- English Oak
- Elder
- Elm
- Fir
- Hawthorn
- Hazel
- Holly
- Hornbeam
- Larch
- Laurel
- Mahogany
- Maple
- Oak
- Olive
- Pear
- Pine
- Poplar
- Red Oak
- Redwood
- Rosewood
- Rowan
- Silver Lime
- Spruce
- Sycamore
- Vine
- Walnut
- Willow
- Yew
core:
- Unicorn Tail Hair
- Dragon Heartstring
- Pheonix Feather
wands:
default:
name: Wand
description: $wood and $core
wandbox:
name: Wand
description: $wood and $core
now is the regions i did /region flag (my region) blocked-spells broom
and nothing happened
Does the flag show up on the region, or does WG say it's not a valid flag? You need a very recent version of WG for this to work, or a slightly older version of Magic and the WGCustomFlags plugin.
Did you get your config errors resolved?
Make sure you're not op'd when testing this. If the flag is there it should work. What version of WorldGuard is this?
The flags definitely work. Are you op'd or region owner? If that's the case you bypass checks.