mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-07-26 12:00:21 +02:00
Ajout du mob goat (chèvre) et quelques drops en plus
This commit is contained in:
34
cow.lua
34
cow.lua
@ -33,6 +33,7 @@ mobs:register_mob("mobs_animal:cow", {
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
|
||||
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||
{name = "maptools:silver_coin", chance = 10, min = 0, max = 1,},
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 5,
|
||||
@ -54,10 +55,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 = "air",
|
||||
-- replace_with = "air",
|
||||
fear_height = 2,
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
@ -196,3 +197,32 @@ minetest.register_craft({
|
||||
{'mobs:cheeseblock'},
|
||||
}
|
||||
})
|
||||
|
||||
-- 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_craft({
|
||||
type = "fuel",
|
||||
recipe = "mobs:dung",
|
||||
burntime = "8",
|
||||
})
|
||||
|
Reference in New Issue
Block a user