This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Hyperiox's profile picture

Spawnlimit Autospawner With Computer

Started by Hyperiox, 01 December 2014 - 05:04 PM
Hyperiox #1
Posted 01 December 2014 - 06:04 PM
Ive looked around for video`s possible showing this and couldnt find it on the forums. Might have missed it and that its already on the forum.

Im using blood magic and the villagers im trying to spawn with auto spawner get killed/removed when i am away from it too long, So i wanted to get the Auto-Spawner to stop working if there are like 15+ villager in the 9x9 area. When they die or it becomes it needs to turn back on automatic again.

I hope this would be possible to do.
SquidDev #2
Posted 01 December 2014 - 06:17 PM
I think your best bet is to use OpenCCSensors. There is a proximity sensor card with which you could count the nearby entities. There is no way to achieve this though without extra mods.

Out of interest, if you are using blood magic for this, can you not use a normal mob farm? If you have the ritual of sacrifice or whatever, villagers will die automatically, so it shouldn't result in overcrowding.
Hyperiox #3
Posted 01 December 2014 - 06:52 PM
I guess ill try just letting them die, I was working with a regen crystal to let them heal up but with them dissapearing after a while it still didnt work.

Extra mods wont really work since im playing on a multiplayer server.