From 5585e22df757e2f3a29be16673e0625bdb612071 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 21 Mar 2015 19:13:18 +0000 Subject: [PATCH] Cows drop 0-2 leather when killed --- cow.lua | 8 ++++++++ init.lua | 30 ++++++++++++------------------ textures/mobs_leather.png | Bin 0 -> 196 bytes 3 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 textures/mobs_leather.png diff --git a/cow.lua b/cow.lua index dbfd8a0..46c1b00 100644 --- a/cow.lua +++ b/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", diff --git a/init.lua b/init.lua index a60a5c1..d96f72c 100644 --- a/init.lua +++ b/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") diff --git a/textures/mobs_leather.png b/textures/mobs_leather.png new file mode 100644 index 0000000000000000000000000000000000000000..3205e5d63019297d727a5758ae0a07c36e5296c8 GIT binary patch literal 196 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^4e$wZWnd6gQ&KQ9)brMt&vDVI z^EYY>F;n~&J`1RTu_VYZn8D%MjWi%9*3-o?gyVX0f&)Xc#9Px3blo()qRMfG!R$5q6 oNomWAq=2A+(1u&5j~rlNxTec@{eZvcT%bh^p00i_>zopr04TRP?f?J) literal 0 HcmV?d00001