mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Fix spawning fregency
Drastically decrease chance to spawn NPCs
This commit is contained in:
@ -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({
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user