Scarpet spawn_potential returns 0? #1348
Unanswered
RandomGgames
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Spawn potential is a different thing. It's for the potential used in some nether mobs to determine whether they should spawn based on biome and other mobs around (for example endermen in warped forest, ghasts in sould sand valleys and I believe striders). You could check the docs for something about mob spawning, not sure if there's anything, but if not you can always do |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So when I place a pink carpet, it shows that mobs are capable of spawning at this location. However when running the command
/script run spawn_potential(pos(player()))
(without the carpet placed), it returns 0. Does this function not show the spawn potential of mobs?If not, how could I scan a block and see if anything can spawn there (given can and fit are both true)? I'm basically trying to check if a block can spawn a mob above it, and if so, place a block to prevent it... A spawnproofing script that doesn't just place a block everywhere, but only where mobs could actually spawn.
Beta Was this translation helpful? Give feedback.
All reactions