mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-07-26 03:50:22 +02:00
Merge branch 'master' of yunohost.local:mtcontrib/mobs_animal into nalc-1.2-dev
This commit is contained in:
55
cow.lua
55
cow.lua
@ -2,7 +2,7 @@
|
||||
local S = mobs.intllib
|
||||
|
||||
|
||||
-- Cow by Krupnovpavel (additional texture by JurajVajda)
|
||||
-- Cow by sirrobzeroone
|
||||
|
||||
mobs:register_mob("mobs_animal:cow", {
|
||||
type = "animal",
|
||||
@ -16,7 +16,7 @@ mobs:register_mob("mobs_animal:cow", {
|
||||
armor = 200,
|
||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.2, 0.4},
|
||||
visual = "mesh",
|
||||
mesh = "mobs_cow.x",
|
||||
mesh = "mobs_cow.b3d",
|
||||
textures = {
|
||||
{"mobs_cow.png"},
|
||||
{"mobs_cow2.png"},
|
||||
@ -39,16 +39,25 @@ mobs:register_mob("mobs_animal:cow", {
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
animation = {
|
||||
speed_normal = 15,
|
||||
speed_run = 15,
|
||||
stand_start = 0,
|
||||
stand_end = 30,
|
||||
walk_start = 35,
|
||||
walk_end = 65,
|
||||
run_start = 105,
|
||||
run_end = 135,
|
||||
punch_start = 70,
|
||||
punch_end = 100,
|
||||
stand_speed = 20,
|
||||
stand1_start = 35,
|
||||
stand1_end = 75,
|
||||
stand1_speed = 20,
|
||||
walk_start = 85,
|
||||
walk_end = 114,
|
||||
walk_speed = 20,
|
||||
run_start = 120,
|
||||
run_end = 140,
|
||||
run_speed = 30,
|
||||
punch_start = 145,
|
||||
punch_end = 160,
|
||||
punch_speed = 20,
|
||||
die_start = 165,
|
||||
die_end = 185,
|
||||
die_speed = 10,
|
||||
die_loop = false,
|
||||
},
|
||||
follow = {"farming:wheat", "default:grass_1"},
|
||||
view_range = 8,
|
||||
@ -135,7 +144,7 @@ mobs:spawn({
|
||||
})
|
||||
|
||||
|
||||
mobs:register_egg("mobs_animal:cow", S("Cow"), "default_grass.png", 1)
|
||||
mobs:register_egg("mobs_animal:cow", S("Cow"), "mobs_cow_inv.png")
|
||||
|
||||
|
||||
mobs:alias_mob("mobs:cow", "mobs_animal:cow") -- compatibility
|
||||
@ -146,7 +155,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
|
||||
description = S("Bucket of Milk"),
|
||||
inventory_image = "mobs_bucket_milk.png",
|
||||
stack_max = 1,
|
||||
on_use = minetest.item_eat(8, 'bucket:bucket_empty'),
|
||||
on_use = minetest.item_eat(8, "bucket:bucket_empty"),
|
||||
groups = {food_milk = 1, flammable = 3},
|
||||
})
|
||||
|
||||
@ -154,7 +163,7 @@ minetest.register_craftitem(":mobs:bucket_milk", {
|
||||
minetest.register_craftitem(":mobs:glass_milk", {
|
||||
description = S("Glass of Milk"),
|
||||
inventory_image = "mobs_glass_milk.png",
|
||||
on_use = minetest.item_eat(2, 'vessels:drinking_glass'),
|
||||
on_use = minetest.item_eat(2, "vessels:drinking_glass"),
|
||||
groups = {food_milk_glass = 1, flammable = 3, vessel = 1},
|
||||
})
|
||||
|
||||
@ -162,9 +171,9 @@ minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "mobs:glass_milk 4",
|
||||
recipe = {
|
||||
'vessels:drinking_glass', 'vessels:drinking_glass',
|
||||
'vessels:drinking_glass', 'vessels:drinking_glass',
|
||||
'mobs:bucket_milk'
|
||||
"vessels:drinking_glass", "vessels:drinking_glass",
|
||||
"vessels:drinking_glass", "vessels:drinking_glass",
|
||||
"mobs:bucket_milk"
|
||||
},
|
||||
replacements = { {"mobs:bucket_milk", "bucket:bucket_empty"} }
|
||||
})
|
||||
@ -173,9 +182,9 @@ minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "mobs:bucket_milk",
|
||||
recipe = {
|
||||
'mobs:glass_milk', 'mobs:glass_milk',
|
||||
'mobs:glass_milk', 'mobs:glass_milk',
|
||||
'bucket:bucket_empty'
|
||||
"mobs:glass_milk", "mobs:glass_milk",
|
||||
"mobs:glass_milk", "mobs:glass_milk",
|
||||
"bucket:bucket_empty"
|
||||
},
|
||||
replacements = { {"mobs:glass_milk", "vessels:drinking_glass 4"} }
|
||||
})
|
||||
@ -233,16 +242,16 @@ minetest.register_node(":mobs:cheeseblock", {
|
||||
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'},
|
||||
{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
|
||||
{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
|
||||
{"mobs:cheese", "mobs:cheese", "mobs:cheese"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mobs:cheese 9",
|
||||
recipe = {
|
||||
{'mobs:cheeseblock'},
|
||||
{"mobs:cheeseblock"},
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user