Block zombie siege mobs
Rodg88 opened this issue ยท 11 comments
Would it be possible to let mega torches block zombie sieges? It's a very annoying vanilla mechanic with no gamerule to disable it. Apparently it's "VILLAGE_INVASION" internally.
This would be very nice to have in all versions, since it could let you prevent random invasions from happening.
I've not looked into this for some time. In the past, this was not possible to do without a core mod but I wouldn't be suprised if Forge added events in the meantime to hook into. If someone has more information, I'd appreciate if you post here.
When looking into it I found this spigot mod for it, not sure if it helps https://github.com/dbkynd-minecraft/NoZombieSiege
The link does unfortunately not help. Forge does not have the minecraft mobspawn reason checks hooked up to the forge event system - but in this case, its not necessary. I found out about the VillageSiegeEvent
, which is pretty much everything I need for this (I hope).
@Xalcon I tested it once in 1.18.2 with the latest TorchMaster version and was just completely surprised by a zombie invasion xD. So apparently the Megatorch does not lock that, despite 128 range
Thats a bit odd. I've been hovering over a village with several torches placed down for close to 4h without a single invasion.
I'll look into it, but these kind of things are hard to replicate
I have now test now also times a few more torches around the village set. I'll let you know if it brings something. Possibly my village is too big ^^
I've just tested this, and it doesn't seem to be working.
I have v18.1.0, in the vault hunters modpack 8.0.3
I set up 20+ villagers in the middle of a biome that has no natural mob spawns. I then tested without mega torches first by setting time to midnight, and then using the command time add 23700t
to add almost a full day, so the game passes midnight again. I looked up at the moon, and as soon as the edge of the moon reaches my cursor, i use the time add command again, to skip ahead to the next night just before midnight. I confirmed I got a zombie siege. Set to peaceful and back to normal to clear it.
Then I added a mega torch near the center village, and cycled the nights again, and still got a siege after a few nights.
Added more mega torches around the area but further out, cycled some nights again, and got another siege.
It looks like in 1.19, there's a tag that can be added to biomes to block sieges without_zombie_sieges
, but looks like it just might not be easy to block them in 1.18 or earlier
Thank you for your detailed description. I'll attempt recreating it. It bothered me quite a bit that this isn't working