1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2026-01-07 01:31:58 +01:00

add 'can_spawn_protect' flag to mobs:register_egg

This commit is contained in:
tenplus1
2025-12-05 17:35:08 +00:00
parent 388c0f3de5
commit 92cbeaba55
2 changed files with 21 additions and 6 deletions

View File

@@ -626,7 +626,7 @@ Note: When an arrow hits a solid item moveresult is copied into the arrow
Spawn Eggs
----------
mobs:register_egg(name, description, background, addegg, no_creative)
mobs:register_egg(name, description, background, addegg, no_creative, can_spawn_protect)
This function registers a spawn egg which can be used to properly spawn in a mob.
Animals are spawned as tamed unless sneak/shift is held while spawning.
@@ -638,6 +638,7 @@ Animals are spawned as tamed unless sneak/shift is held while spawning.
0 = no)
'no_creative' when set to true this stops spawn egg appearing in creative
mode for destructive mobs like Dungeon Masters.
'can_spawn_protect' when true can spawn mob inside protected areas (default:nil).
Explosion Function