Cows drop 0-2 leather when killed
This commit is contained in:
parent
e6a5b470d0
commit
5585e22df7
8
cow.lua
8
cow.lua
@ -33,6 +33,8 @@ mobs:register_mob("mobs:cow", {
|
||||
drops = {
|
||||
{name = "mobs:meat_raw",
|
||||
chance = 1, min = 5, max = 10},
|
||||
{name = "mobs:leather",
|
||||
chance = 1, min = 0, max = 3},
|
||||
},
|
||||
-- damaged by
|
||||
water_damage = 1,
|
||||
@ -84,6 +86,12 @@ mobs:register_spawn("mobs:cow", {"default:dirt_with_grass", "ethereal:green_dirt
|
||||
-- register spawn egg
|
||||
mobs:register_egg("mobs:cow", "Cow", "default_grass.png", 1)
|
||||
|
||||
-- Leather
|
||||
minetest.register_craftitem("mobs:leather", {
|
||||
description = "Leather",
|
||||
inventory_image = "mobs_leather.png",
|
||||
})
|
||||
|
||||
-- Bucket of Milk
|
||||
minetest.register_craftitem("mobs:bucket_milk", {
|
||||
description = "Bucket of Milk",
|
||||
|
30
init.lua
30
init.lua
@ -2,34 +2,28 @@
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/api.lua")
|
||||
|
||||
-- Animals inc. Krupnovpavel's warthog/bee, JKmurray's chicken, ExeterDad's bunny, Jordach/BFD's kitten
|
||||
-- Animals
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/chicken.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/cow.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/rat.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/sheep.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/warthog.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/bee.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/bunny.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/kitten.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/chicken.lua") -- JKmurray
|
||||
dofile(minetest.get_modpath("mobs").."/cow.lua") -- KrupnoPavel
|
||||
dofile(minetest.get_modpath("mobs").."/rat.lua") -- PilzAdam
|
||||
dofile(minetest.get_modpath("mobs").."/sheep.lua") -- PilzAdam
|
||||
dofile(minetest.get_modpath("mobs").."/warthog.lua") -- KrupnoPavel
|
||||
dofile(minetest.get_modpath("mobs").."/bee.lua") -- KrupnoPavel
|
||||
dofile(minetest.get_modpath("mobs").."/bunny.lua") -- ExeterDad
|
||||
dofile(minetest.get_modpath("mobs").."/kitten.lua") -- Jordach/BFD
|
||||
|
||||
-- Monsters
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/dirtmonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/dirtmonster.lua") -- PilzAdam
|
||||
dofile(minetest.get_modpath("mobs").."/dungeonmaster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/oerkki.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/sandmonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/stonemonster.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/treemonster.lua")
|
||||
|
||||
-- Zmobs by Zeg9
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/lava_flan.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/lava_flan.lua") -- Zeg9
|
||||
dofile(minetest.get_modpath("mobs").."/mese_monster.lua")
|
||||
|
||||
-- Spider from Lord of the Test - https://forum.minetest.net/viewtopic.php?pid=127538
|
||||
|
||||
dofile(minetest.get_modpath("mobs").."/spider.lua")
|
||||
dofile(minetest.get_modpath("mobs").."/spider.lua") -- https://forum.minetest.net/viewtopic.php?pid=127538
|
||||
|
||||
-- NPC
|
||||
dofile(minetest.get_modpath("mobs").."/npc.lua")
|
||||
|
BIN
textures/mobs_leather.png
Normal file
BIN
textures/mobs_leather.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 196 B |
Loading…
x
Reference in New Issue
Block a user