1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-07 02:20:21 +02:00

Update Farming, Mobs, 3d_armor

Farming : minors fixe, add the straw block
Mobs : better api, swimming parameter for mobs, add eggs, code
optimisation
3d_armor : change the model, many new textures, new shield, and new
enchanted shield (which gain compared to normal shield +1 armor and x2
durability)
This commit is contained in:
Ombridride
2015-02-25 01:57:21 +01:00
parent 12e83d24a8
commit 5d4f93aece
280 changed files with 643 additions and 10160 deletions

16
mods/mobs/chicken.lua Normal file → Executable file
View File

@ -57,21 +57,7 @@ mobs:register_mob("mobs:chicken", {
})
mobs:register_spawn("mobs:chicken", {"default:dirt_with_grass"}, 20, 0, 9000, 1, 31000)
-- Chicken (right-click chicken to place in inventory)
minetest.register_craftitem("mobs:chicken", {
description = "Chicken",
inventory_image = "mobs_chicken_inv.png",
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above then
minetest.env:add_entity(pointed_thing.above, "mobs:chicken")
itemstack:take_item()
end
return itemstack
end,
})
mobs:register_egg("mobs:chicken", "Chicken", "mobs_chicken_inv.png", 0)
-- Egg (can be fried in furnace)