Magic

Magic

190k Downloads

Horse spell spawning horse in mob-spawning restricted areas

Ferocimo opened this issue ยท 5 comments

commented

Hello,

I don't know since when, but in later versions horses spawned with the Horse spell can spawn in areas where mob-spawning should be denied by World Guard. This is quite an issue for us since this can be used as an exploit to reach certain areas that players shouldn't be able to reach.

(also, while I'm at it, Horse spell still has this issue : #452 )

Thank you.

commented

By default SpawnEntity uses the "spawn egg" reason, so it should only work in places where players can use spawn eggs. Do you happen to know if eggs work in your WG regions?

You could change that reason to something else, maybe natural spawning would be blocked?

commented

Actually no mob at all can spawn in any way in these areas, even with eggs, this is the first time I see something like this.
We did further tests and found out that you can't spawn mobs with other spells, like Monster, ONLY Horse works. So, we found that it was caused by "tamed: true" in Horse config : apparently, the tamed nature of the horse allows it to be spawned in restricted area. I guess it's an issue with WG, however, would you know a workaround with your plugin that would allow us to block this spell from being cast entirely when fired in a mob-restricted area ?

commented

@NathanWolf Hello, did you have to time to take a look at this ?

commented

Sorry, I really thought I had responded to this! :(

You have to fix this on the WorldGuard side:

mobs:
    allow-tamed-spawns: false

Or make it so the Horse spell doesn't spawn a tamed horse, but I think that'd be kind of useless.

commented

Thank you, it is fixed with the configuration you specified.