Compare commits

...

5 Commits

Author SHA1 Message Date
runs 7d9a31bc75 Actualizar 'api.lua' 2019-02-15 08:11:24 +01:00
ademant 1ef065a902 one more translation 2019-02-14 14:08:30 +01:00
ademant bd28f32240 Merge branch 'master' of https://notabug.org/ademant/mobs_redo 2019-02-13 07:46:12 +01:00
ademant cee6cace15 update readme 2019-02-13 07:45:58 +01:00
A. Demant 230a610d22 debug 2019-02-12 06:35:17 +01:00
3 changed files with 12 additions and 6 deletions

View File

@ -750,14 +750,14 @@ function mob_class:check_for_death(cmi_cause)
print(dump2(cmi_cause.puncher))
if cmi_cause.puncher ~= nil then
local puncher=cmi_cause.puncher
print(dump2(puncher:get_player_name()))
minetest.log(dump2(puncher:get_player_name()))
if puncher:get_player_name() ~= nil and puncher:get_player_name() ~= "" then
local player_name=puncher:get_player_name()
if mobs.player_killed[player_name] == nil then
mobs.player_killed[player_name] = 0
end
mobs.player_killed[player_name] = mobs.player_killed[player_name] + 1
print(dump2(mobs.player_killed))
minetest.log(dump2(mobs.player_killed))
end
end
@ -3963,6 +3963,10 @@ function mobs:capture_mob(self, clicker, chance_hand, chance_net, chance_lasso,
new_stack = ItemStack(mobname .. "_set")
local tmp = {}
if self.type == "monster" then
self["remove_ok"] = false
end
for _,stat in pairs(self) do
local t = type(stat)

View File

@ -20,7 +20,7 @@ msgstr ""
#: api.lua
msgid "** Peaceful Mode Active - No Monsters Will Spawn"
msgstr ""
msgstr "** Friedlicher Modus aktiv - Keine Monster werden erscheinen"
#: api.lua
msgid "Mob has been protected!"

View File

@ -1,5 +1,6 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
MOBS REDO for MINETEST
# MOBS REDO for MINETEST
Built from PilzAdam's original Simple Mobs with additional mobs by KrupnoPavel, Zeg9, ExeterDad and AspireMint.
@ -10,7 +11,7 @@ This mod contains the API only for adding your own mobs into the world, so pleas
https://forum.minetest.net/viewtopic.php?f=11&t=9917
Crafts:
## Crafts:
- Nametag (paper, black dye, string) can be used right-click on a tamed mob to give them a name.
- Nets can be used to right-click tamed mobs to pick them up and place inside inventory as a spawn egg.
@ -22,7 +23,8 @@ Crafts:
Lucky Blocks: 9
Changelog:
## Changelog:
- 1.49b (ademant) - add player based counter of killed mobs
- 1.49- Added mobs:force_capture(self, player) function, api functions now use metatables thanks to bell07
- 1.48- Add mobs:set_velocity(self, velocity) global function
- 1.47- Mob damage changes, min and max light level for damage added, ignition sources checked for lava damage