1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

[mobs] Update for the docile_on_day parameter

- Fix #315
This commit is contained in:
LeMagnesium 2015-10-27 19:26:18 +01:00
parent 2b591a82fe
commit 3cc5475399
4 changed files with 389 additions and 311 deletions

View File

@ -28,6 +28,7 @@ This mod contains the following additions:
Changelog:
1.18- Added docile_by_day flag so that monsters will not attack automatically during daylight hours unless hit first
1.17- Added 'dogshoot' attack type, shoots when out of reach, melee attack when in reach, also api tweaks and self.reach added
1.16- Mobs follow multiple items now, Npc's can breed
1.15- Added Feeding/Taming/Breeding function, right-click to pick up any sheep with X mark on them and replace with new one to fix compatibility.

File diff suppressed because it is too large Load Diff

View File

@ -21,8 +21,7 @@ mobs:register_mob("mobs:bee", {
makes_footstep_sound = false,
sounds = {
random = "mobs_bee",
},
-- speed and jump
},
walk_velocity = 1,
jump = true,
-- drops honey when killed
@ -77,7 +76,9 @@ minetest.register_node("mobs:beehive", {
after_place_node = function(pos, placer, itemstack)
if placer:is_player() then
minetest.set_node(pos, {name = "mobs:beehive", param2 = 1})
minetest.add_entity(pos, "mobs:bee")
if math.random(1, 5) == 1 then
minetest.add_entity(pos, "mobs:bee")
end
end
end,
@ -112,4 +113,4 @@ minetest.register_craft({
recipe = {
{"mobs:honey_block"},
}
})
})

View File

@ -2,7 +2,7 @@
-- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 license for texture)
mobs:register_mob("mobs:spider", {
-- animal, monster, npc, barbarian
docile_by_day = true,
type = "monster",
-- agressive, does 6 damage to player when hit
passive = false,