Topic category: Help with modding (Java Edition)
As in title: I want to make a block which disables spawning of any typical mob (zombie, skeleton, spider, creeper) when activated, and that should affect only specific area (let's say, 10 blocks in each direction of mentioned block).
It's important that I don't want to make world peaceful, nor despawn any mob that's already in that area (for example, zombie which I tagged to use in iron farm).
Is it possible to do that only by procedures/commands, or should I code something? And if so, can someone explain me the way, like you would explain to total noob?
I'd be so grateful, because I thought that "spawn disablers" would be great as an option for city builders <3