Compare commits

...

23 Commits

Author SHA1 Message Date
86987aadde Merge remote-tracking branch 'upstream/master' 2021-04-08 13:28:50 +02:00
cd2b2609a2 add _is_arrow=true to throwable egg 2021-04-06 13:07:55 +01:00
5293673547 Merge remote-tracking branch 'upstream/master' 2021-04-04 21:01:44 +02:00
54f6de148b check item exists for hairballs 2021-04-02 14:01:14 +01:00
0873ef4119 Merge remote-tracking branch 'upstream/master' 2021-03-25 21:47:49 +01:00
f2b1b752a7 update penguin to use group:food_fish_raw for taming 2021-03-23 19:14:37 +00:00
db59194f88 use group:food_fish_raw instead of huge list of fish 2021-03-23 17:08:15 +00:00
733ab61820 update fish kittens like 2021-03-23 16:38:48 +00:00
498b3fbf10 Merge remote-tracking branch 'upstream/master' 2021-02-13 14:13:02 +01:00
8bfa177190 nil check for egg drop 2021-02-08 20:27:14 +00:00
01bdea97c7 Merge remote-tracking branch 'upstream/master' 2021-02-07 13:11:00 +01:00
a1bbcb26ec amend cheese block recipe and dig groups 2021-01-29 20:32:41 +00:00
620bdfe33d Merge remote-tracking branch 'upstream/master' 2021-01-23 12:55:30 +01:00
77ed774de5 update mod.conf info 2021-01-21 10:14:06 +00:00
061cbb10b7 Merge remote-tracking branch 'upstream/master' 2021-01-19 23:36:36 +01:00
c22c556b5f change rabbit hide to pelt group instead of leather 2021-01-18 11:00:54 +00:00
ba305db9ca Merge remote-tracking branch 'upstream/master' 2021-01-15 21:10:27 +01:00
7de71d8724 add compatibility groups to mob items 2021-01-14 21:12:30 +00:00
6a74a05836 update milk bucket recipe to use soy milk (for vegan cheese) 2021-01-13 10:36:35 +00:00
e3ca168e7e Merge remote-tracking branch 'upstream/master' 2021-01-08 23:36:50 +01:00
9c7e537f52 hogs spin on death 2021-01-08 10:15:40 +00:00
66be327567 Merge remote-tracking branch 'upstream/master' 2020-12-08 22:38:39 +01:00
96f41785b5 add death spin to sheep when killed 2020-12-06 08:57:16 +00:00
8 changed files with 37 additions and 35 deletions

View File

@ -161,7 +161,7 @@ minetest.register_craft({
minetest.register_craftitem(":mobs:rabbit_hide", {
description = S("Rabbit Hide"),
inventory_image = "mobs_rabbit_hide.png",
groups = {flammable = 2},
groups = {flammable = 2, pelt = 1},
})
minetest.register_craft({

View File

@ -81,7 +81,7 @@ stepheight = 0.6,
return
end
local pos = self.object:get_pos()
local pos = self.object:get_pos() ; if not pos then return end
minetest.add_item(pos, "mobs:egg")
@ -138,7 +138,7 @@ mobs:register_arrow("mobs_animal:egg_entity", {
end,
hit_mob = function(self, player)
player:punch(minetest.get_player_by_name(self.playername) or self.object, 1.0, {
player:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 1},
}, nil)
@ -213,6 +213,7 @@ local mobs_shoot_egg = function (item, player, pointed_thing)
ent.velocity = egg_VELOCITY -- needed for api internal timing
ent.switch = 1 -- needed so that egg doesn't despawn straight away
ent._is_arrow = true -- tell advanced mob protection this is an arrow
obj:setvelocity({
x = dir.x * egg_VELOCITY,
@ -302,7 +303,7 @@ minetest.register_craft({
minetest.register_craftitem(":mobs:chicken_feather", {
description = S("Feather"),
inventory_image = "mobs_chicken_feather.png",
groups = {flammable = 2},
groups = {flammable = 2, feather = 1},
})
minetest.register_craft({

16
cow.lua
View File

@ -189,11 +189,13 @@ minetest.register_craft({
type = "shapeless",
output = "mobs:bucket_milk",
recipe = {
"mobs:glass_milk", "mobs:glass_milk",
"mobs:glass_milk", "mobs:glass_milk",
"group:food_milk_glass", "group:food_milk_glass",
"group:food_milk_glass", "group:food_milk_glass",
"bucket:bucket_empty"
},
replacements = { {"mobs:glass_milk", "vessels:drinking_glass 4"} }
replacements = {
{"group:food_milk_glass", "vessels:drinking_glass 4"},
}
})
@ -242,16 +244,16 @@ minetest.register_node(":mobs:cheeseblock", {
description = S("Cheese Block"),
tiles = {"mobs_cheeseblock.png"},
is_ground_content = false,
groups = {crumbly = 3},
groups = {oddly_breakable_by_hand = 3},
sounds = default.node_sound_dirt_defaults()
})
minetest.register_craft({
output = "mobs:cheeseblock",
recipe = {
{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
{"group:food_cheese", "group:food_cheese", "group:food_cheese"},
{"group:food_cheese", "group:food_cheese", "group:food_cheese"},
{"group:food_cheese", "group:food_cheese", "group:food_cheese"},
}
})

View File

@ -53,17 +53,8 @@ stepheight = 1.1,
stoodup_end = 0,
},
follow = {
"mobs_animal:rat",
"ethereal:fish_raw",
"mobs_fish:clownfish",
"mobs_fish:tropical",
"fishing:clownfish_raw",
"fishing:bluewhite_raw",
"fishing:exoticfish_raw",
"fishing:carp_raw",
"fishing:perch_raw",
"fishing:catfish_raw",
"xocean:fish_edible",
"mobs:rat", "group:food_fish_raw", "mobs_fish:tropical", "xocean:fish_edible",
"group:fishraw" -- NALC: Group from fishing mod
},
view_range = 8,
@ -165,7 +156,8 @@ minetest.register_craftitem(":mobs:hairball", {
local newpos = {x = pos.x + dir.x, y = pos.y + dir.y + 1.5, z = pos.z + dir.z}
local item = hairball_items[math.random(1, #hairball_items)]
if item ~= "" then
if item ~= ""
and minetest.registered_items[item] then
minetest.add_item(newpos, {name = item})
end

View File

@ -1 +1,4 @@
name = mobs_animal
depends = default, mobs
optional_depends = lucky_block, intllib
description = Adds farm animals.

View File

@ -46,17 +46,9 @@ stepheight = 0.6,
fly_in = {"default:water_source", "default:water_flowing"},
floats = 0,
follow = {
"ethereal:fish_raw",
"mobs_fish:clownfish_set", "mobs_fish:clownfish",
"mobs_fish:tropical_set", "mobs_fish:tropical",
"fishing:fish_raw",
"fishing:clownfish_raw",
"fishing:bluewhite_raw",
"fishing:exoticfish_raw",
"fishing:carp_raw",
"fishing:perch_raw",
"fishing:catfish_raw",
"xocean:fish_edible",
"group:food_fish_raw", "mobs_fish:clownfish", "mobs_fish:tropical",
"mobs_fish:clownfish_set", "mobs_fish:tropical_set", "xocean:fish_edible",
"group:fishraw" -- Edit from NALC: Group from fishing mod
},
view_range = 5,

View File

@ -64,6 +64,12 @@ for _, col in ipairs(all_colours) do
stand_end = 80,
walk_start = 81,
walk_end = 100,
die_start = 1, -- we dont have a specific death animation so we will
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
die_speed = 1, -- have mob rotate when dying.
die_loop = false,
die_rotate = true,
},
follow = {
"farming:wheat", "default:grass_1", "farming:barley",
@ -97,7 +103,7 @@ for _, col in ipairs(all_colours) do
--are we feeding?
if mobs:feed_tame(self, clicker, 8, true, true) then
--if fed 7x grass or wheat then sheep regrows wool
--if fed 7 times then sheep regrows wool
if self.food and self.food > 6 then
self.gotten = false

View File

@ -51,6 +51,12 @@ mobs:register_mob("mobs_animal:pumba", {
walk_end = 100,
punch_start = 70,
punch_end = 100,
die_start = 1, -- we dont have a specific death animation so we will
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
die_speed = 1, -- have mob rotate when dying.
die_loop = false,
die_rotate = true,
},
on_rightclick = function(self, clicker)