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

Use sapling fertilizer from LemonLake's factory mod for dungs

- And remove a "print"
This commit is contained in:
LeMagnesium 2015-09-01 20:40:34 +02:00
parent 18d7fa7597
commit a4c3c59b07
2 changed files with 19 additions and 23 deletions

View File

@ -143,29 +143,25 @@ minetest.register_craft({
} }
}) })
-- Dung -- Dung (from factory's fertilizer)
minetest.register_node("mobs:dung", { minetest.register_node("mobs:dung", {
description = "Cow dung", tiles = {"default_dirt.png"},
tiles = {"mobs_dung.png"},
inventory_image = "mobs_dung.png", inventory_image = "mobs_dung.png",
visual_scale = 0.7, description = "Cow dung",
drawtype = "plantlike", drawtype = "nodebox",
wield_image = "mobs_dung.png",
paramtype = "light", paramtype = "light",
walkable = false,
is_ground_content = true, is_ground_content = true,
sunlight_propagates = true, groups = {snappy = 3, attached_node = 1},
selection_box = { node_box = {
type = "fixed", type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2} fixed = {
}, {-0.1875, -0.5, -0.1875, 0.1875, -0.4375, 0.1875},
groups = {snappy=2, dig_immediate=3}, {-0.125, -0.4375, -0.125, 0.125, -0.375, 0.125},
after_place_node = function(pos, placer, itemstack) {0, -0.375, -0.0625, 0.0625, -0.3125, 0.0625},
if placer:is_player() then {0, -0.3125, -0.0625, 0.0625, -0.25, 0},
minetest.set_node(pos, {name="mobs:dung", param2=1}) {-0.0625, -0.375, -0.0625, 0, -0.3125, 0},
end }
end }
}) })
minetest.register_craft({ minetest.register_craft({

View File

@ -60,4 +60,4 @@ dofile(path.."/crafts.lua")
-- Mob menu spawner special MFF -- Mob menu spawner special MFF
dofile(path.."/mff_menu.lua") dofile(path.."/mff_menu.lua")
print ("[MOD] Mobs Redo loaded") minetest.log("action", "[MOD] Mobs Redo loaded")