3 Commits

Author SHA1 Message Date
89709f9c28 Delete depends.txt, add mod.conf 2022-07-07 21:47:03 +02:00
fe6cf0cc27 Fix crash with Minetest 5.4 2021-06-20 16:59:54 +02:00
81d7c99477 Fix deprecated call to Minetest settings 2021-03-25 21:17:15 +01:00
4 changed files with 8 additions and 8 deletions

View File

@ -1,5 +0,0 @@
default
mobs
maptools?
zombie?
snow?

View File

@ -14,7 +14,7 @@ dofile(minetest.get_modpath("pmobs").."/npc.lua") -- TenPlus1
dofile(minetest.get_modpath("pmobs").."/npc_female.lua") -- NALC(sys4 fork MFF) nuttmeg20 dofile(minetest.get_modpath("pmobs").."/npc_female.lua") -- NALC(sys4 fork MFF) nuttmeg20
dofile(minetest.get_modpath("pmobs").."/guard.lua") -- CProgrammingRU dofile(minetest.get_modpath("pmobs").."/guard.lua") -- CProgrammingRU
if minetest.setting_get("log_mods") then if minetest.settings:get("log_mods") then
minetest.log("action", "pmobs loaded") minetest.log("action", "pmobs loaded")
end end

5
mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = pmobs
title = PMobs
description = This mod uses the Mobs Redo Api to add new mobs to minetest.
depends = default,mobs
optional_depends = maptools,zombie,snow

View File

@ -64,14 +64,14 @@ mobs:register_arrow("pmobs:snowball", {
player:punch(self.object, 1.0, { player:punch(self.object, 1.0, {
full_punch_interval=1.0, full_punch_interval=1.0,
damage_groups = {fleshy=1}, damage_groups = {fleshy=1},
}, 0) }, nil)
end, end,
hit_mob = function(self, player) hit_mob = function(self, player)
player:punch(self.object, 1.0, { player:punch(self.object, 1.0, {
full_punch_interval=1.0, full_punch_interval=1.0,
damage_groups = {fleshy=1}, damage_groups = {fleshy=1},
}, 0) }, nil)
end, end,
hit_node = function(self, pos, node) hit_node = function(self, pos, node)