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

Fix spawning fregency

Drastically decrease chance to spawn NPCs
This commit is contained in:
sys4-fr 2017-12-05 02:14:48 +01:00
parent d8572b83cf
commit a22a4e7c3e
9 changed files with 33 additions and 30 deletions

@ -1 +1 @@
Subproject commit 7f37810119561de8b66cf12c5ae616f7536ad513
Subproject commit 82dd61cfe6ffc45cb25edb6f21d33619459a89ca

@ -1 +1 @@
Subproject commit 86c46b3ecf2c38c649eeb17089b86ce156962195
Subproject commit 6694e7d12f0f398bb59bb4aa3535ff5b7fb65c5a

View File

@ -271,7 +271,7 @@ description = S("Raw Chicken"),
minetest.register_craftitem(":mobs:chicken_cooked", {
description = S("Cooked Chicken"),
inventory_image = "mobs_chicken_cooked.png",
on_use = minetest.item_eat(6),
on_use = minetest.item_eat(4), -- Modif MFF
})
minetest.register_craft({

View File

@ -52,10 +52,10 @@ mobs:register_mob("mobs_animal:cow", {
replace_rate = 10,
-- replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
replace_what = {
{"group:grass", "air", 0},
{"group:grass", "mobs:dung", 0},
{"default:dirt_with_grass", "default:dirt", -1}
},
replace_with = "mobs:dung",
-- replace_with = "mobs:dung",
fear_height = 2,
on_rightclick = function(self, clicker)
@ -173,25 +173,27 @@ minetest.register_craft({
})
-- Dung (from factory's fertilizer)
minetest.register_node(":mobs:dung", {
tiles = {"default_dirt.png"},
inventory_image = "mobs_dung.png",
description = "Cow dung",
drawtype = "nodebox",
paramtype = "light",
is_ground_content = true,
groups = {snappy = 3, attached_node = 1},
node_box = {
type = "fixed",
fixed = {
{-0.1875, -0.5, -0.1875, 0.1875, -0.4375, 0.1875},
{-0.125, -0.4375, -0.125, 0.125, -0.375, 0.125},
{0, -0.375, -0.0625, 0.0625, -0.3125, 0.0625},
{0, -0.3125, -0.0625, 0.0625, -0.25, 0},
{-0.0625, -0.375, -0.0625, 0, -0.3125, 0},
}
}
})
minetest.register_node(
":mobs:dung",
{
tiles = {"default_dirt.png"},
inventory_image = "mobs_dung.png",
description = "Cow dung",
drawtype = "nodebox",
paramtype = "light",
is_ground_content = true,
groups = {snappy = 3, attached_node = 1},
node_box = {
type = "fixed",
fixed = {
{-0.1875, -0.5, -0.1875, 0.1875, -0.4375, 0.1875},
{-0.125, -0.4375, -0.125, 0.125, -0.375, 0.125},
{0, -0.375, -0.0625, 0.0625, -0.3125, 0.0625},
{0, -0.3125, -0.0625, 0.0625, -0.25, 0},
{-0.0625, -0.375, -0.0625, 0, -0.3125, 0},
}
}
})
minetest.register_craft({
type = "fuel",

View File

@ -67,7 +67,7 @@ mobs:spawn({
name = "mobs_animal:kitten",
nodes = {"default:dirt_with_grass", "ethereal:grove_dirt"},
min_light = 12,
chance = 22000,
chance = 122000,
min_height = 0,
max_height = 31000,
day_toggle = true,

View File

@ -60,7 +60,7 @@ mobs:register_mob("mobs_monster:spider", {
local spawn_on = {"default:desert_stone", "default:jungleleaves", "default:jungletree"}
if minetest.get_modpath("ethereal") then
spawn_on = {"ethereal:crystal_dirt"}
spawn_on = {"ethereal:crystal_dirt"}
else
minetest.register_alias("ethereal:crystal_spike", "default:sandstone")
end

View File

@ -98,7 +98,7 @@ mobs:register_mob("pmobs:npc", {
end,
})
-- spawning disabled for now
mobs:register_spawn("pmobs:npc", {"default:dirt_with_grass"}, 20, 0, 22000, 1, 51000)
mobs:register_spawn("pmobs:npc", {"default:dirt_with_grass"}, 20, 0, 500000, 1, 31000)
-- register spawn egg
mobs:register_egg("pmobs:npc", "Npc", "default_brick.png", 1)

View File

@ -129,7 +129,7 @@ mobs:register_mob("pmobs:npc_female", {
-- spawning enable for now
--mobs:spawn_specific("pmobs:npc_female", {"default:dirt_with_grass"}, {"air"}, -1, 20, 30, 500000, 1, -31000, 31000, true, true)
mobs:register_spawn("pmobs:npc_female", {"default:dirt_with_grass"}, 20, 0, 22000, 1, 51000)
mobs:register_spawn("pmobs:npc_female", {"default:dirt_with_grass"}, 20, 0, 500000, 1, 31000)
-- register spawn egg
mobs:register_egg("pmobs:npc_female", "Npc", "mobs_npc_female_inv.png", 1)

View File

@ -8,7 +8,9 @@ mobs:register_mob(
passive = false,
pathfinding = false,
reach = 2,
hp_min = 15,
hp_max = 20,
armor = 200,
passive = false,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
visual = "mesh",
@ -26,7 +28,6 @@ mobs:register_mob(
run_velocity = 3,
stepheight = 1.1,
damage = 3,
armor = 200,
attack_type = "dogfight",
drops = {
{name = "mobs:meat_raw",
@ -64,7 +65,7 @@ mobs:register_mob(
step = 0.5,
blood_texture = "mobs_blood.png",
})
mobs:register_spawn("pmobs:wolf", {"default:dirt_with_grass","default:dirt","default:snow", "default:snowblock"}, 20, -1, 22000, 1, 51000)
mobs:register_spawn("pmobs:wolf", {"default:dirt_with_grass","default:dirt","default:snow", "default:snowblock"}, 20, -1, 100000, 1, 31000)
mobs:register_egg("pmobs:wolf", "Wolf", "wool_grey.png", 1)
mobs:alias_mob("mobs:wolf", "pmobs:wolf")