Mob API for mods to add monsters, animals and more.
tenplus1 5e67163d09 fix flying mobs sinking into water | hai 1 ano | |
---|---|---|
locale | %!s(int64=2) %!d(string=hai) anos | |
sounds | hai 1 ano | |
textures | %!s(int64=2) %!d(string=hai) anos | |
.luacheckrc | %!s(int64=2) %!d(string=hai) anos | |
api.lua | hai 1 ano | |
api.txt | hai 1 ano | |
crafts.lua | %!s(int64=2) %!d(string=hai) anos | |
depends.txt | %!s(int64=2) %!d(string=hai) anos | |
description.txt | %!s(int64=8) %!d(string=hai) anos | |
init.lua | %!s(int64=3) %!d(string=hai) anos | |
license.txt | hai 1 ano | |
lucky_block.lua | %!s(int64=5) %!d(string=hai) anos | |
mod.conf | %!s(int64=2) %!d(string=hai) anos | |
mount.lua | %!s(int64=2) %!d(string=hai) anos | |
readme.MD | hai 1 ano | |
settingtypes.txt | hai 1 ano | |
spawner.lua | %!s(int64=3) %!d(string=hai) anos |
Built from PilzAdam's original Simple Mobs with additional mobs by KrupnoPavel, Zeg9, ExeterDad and AspireMint.
This mod contains the API only for adding your own mobs into the world, so please use the additional modpacks to add animals, monsters, and npcs.
https://forum.minetest.net/viewtopic.php?f=11&t=9917
Lucky Blocks: 12
arrow_override
function to mob definition to tweak arrow entity settingslooting_level
can be read from tool definition or tool meta to add extra
drops when mob killedpeaceful_player
privilege and setting so mobs don't attack specific
players (thanks sfence)pathfinder
mod, remove need for default modon_flop
(for mobs not in water)air_damage
addedon_map_load
settings to mobs:spawn
so that mobs will only spawn
when new areas of map are loaded.mob_active_limit
in settings to set number of mobs in game. The
default is 0, for unlimited mobs.{immortal}
from mob armormob_nospawn_range
settingline_of_sight
function that uses raycasting if Minetest 5.0 is
found, (thanks Astrobe)technic
or
simple_anchor
mods)mobs:force_capture(self, player)
functionmobs:set_velocity(self, velocity)
global functiondrops.min = 0
line_of_sight
tweaked by Astrobe
ToolRanks
support for swords when attacking mobs"all"
option to immune_to
definition tableElkien3
on_breed
(called when mobs have just been bred)on_grown
(called when baby mobs have grown up)do_punch
(called when the mob has been punched or damaged by another mob)on_spawn
function added to mob registryRaymoo
's CMI (common mob interface) mod. See
https://forum.minetest.net/viewtopic.php?f=9&t=15448 for detailsowner_loyal
flag for owned mobs to attack player enemiesgroup_attack
mobs.attach
mobs.detach
mobs.drive
. Many thanks to Blert2112
minetest.conf
setting
to chance spawn chance and numbersattack_animals
and specific_attack
flags for custom monster
attacksinvisibility
modatan
checking functionrunaway = true
in mob definition)serialize.h
error and added height
checks for falling off cliffs (thanks cmdskp
)serialize.h
errordocile_by_day
flag so that monsters will not attack automatically
during daylight hours unless hit firstdogshoot
attack type. Mobs now shoot when out of reachself.reach
addedblert2112
) chance of picking up mob with a
hand, a net, or a magic lasso.x
models with newer .b3d
onesfly=true
and fly_in="air"
or "default:water_source"
for fishyon_die
functionNPCs can now be set to follow player or stand by using order
and owner
variables
BETA: Npc mob added. They kill monsters (maybe as guards) and attack players when punched by them. Right-clicking them with food will heal them, and giving them gold lump will make them drop a random item.
ExeterDad
's bunniess which can be picked up and tamed with four carrots from farming_redo
or farming_plus
Cyberpangolin
for the sfx
)Added chicken sound
mobs.protected
switch added to api.lua
. When set to 1 mobs no longer
spawn in protected areas
Minor bugfixes
shoot_offset
LOTT
's Spider mob