TenPlus1 wrote:Chickens, Rats and Bee's can all be picked up and placed in your inventory... Cows, Sheep and Hogs follow you if you are holding wheat in your hand... Also, you need to tame the last 3 so they do not despawn when you go away...
Marshal_maz wrote:Ok thanx , how do you "tame" them ?
Kilarin wrote:Marshal_maz wrote:Ok thanx , how do you "tame" them ?
You tame cows, sheep, and hogs by feeding them wheat (wield wheat and right click on them)
Is there a way to tame chickens so that they do not despawn?
TenPlus1 wrote:Cows have to be milked (right click with empty bucket) before feeding them wheat, also sheep have to be sheared (right click for wool)... Hogs just need feed wheat until it makes a noise...
TenPlus1 wrote:Marshall: just checked and everything seems to be working ok, tamed a few animals before going offline and back on again, they were still around...
Sokomine wrote:The 4seasons mod has birds of a kind. They sit on leaves and are drawn using plantlike drawtype. It works pretty well. Perhaps some animals could be done without having to resort to entities.
TenPlus1 wrote:Cows have to be milked (right click with empty bucket) before feeding them wheat, also sheep have to be sheared (right click for wool)... Hogs just need feed wheat until it makes a noise...
-- Egg (can be fried in furnace or used as chicken spawner)
minetest.register_node("mobs:egg",
{
description = "Chicken Egg",
tiles = {"mobs_chicken_egg.png"},
inventory_image = "mobs_chicken_egg.png",
visual_scale = 0.7,
drawtype = "plantlike",
wield_image = "mobs_chicken_egg.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
sunlight_propagates = true,
selection_box = {
type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
},
groups = {snappy=2, dig_immediate=3},
after_place_node = function(pos, placer, itemstack)
if placer:is_player() then
minetest.set_node(pos, {name="mobs:egg", param2=1})
end
end,
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
--if player:is_player() then
minetest.env:add_entity(pointed_thing.above, "mobs:chicken")
minetest.remove_node(pos, {name="mobs:egg", param2=1})
end,
})
TenPlus1 wrote:At present hitting a monster while others are in the area will call them to assist the one you're fighting... Attack chance depends on mob timer and if it see's you in it's field of vision... Flying mobs sound good though, gotta look into that, most birds using simple mobs are just high entities that jump around to look like it's flying so gotta change the api to make it fly...
Xanthin wrote: While you prevent cow, sheep and pig from despawning with feeding them wheat by righ-click, you cant actual do that with the chickens (and the two other collectable mobs) cause you pick them up with right-click.
[RECIPE ERROR] mobs:med_cooked in recipe for mobs:med_cooked
mobs:register_mob("mobs:trooper", {
type = "monster",
hp_max = 20,
collisionbox = {-0.3, -1.0, -0.3, 0.3, 0.8, 0.3},
visual = "mesh",
mesh = "character.x",
textures = {"character.png"},
visual_size = {x = 1, y = 1},
makes_footstep_sound = true,
view_range = 8,
lava_damage = 8,
walk_velocity = 1.6,
run_velocity = 3.2,
damage = 2,
drops = {
{name = "mobs:trooper",
chance = 1,
min = 1,
max = 1,},
},
armor = 100,
drawtype = "front",
attack_type = "dogfight",
animation = {
speed_normal = 17,
speed_run = 35,
stand_start = 0,
stand_end = 40,
walk_start = 168,
walk_end = 187,
run_start = 168,
run_end = 187,
punch_start = 189,
punch_end = 198,
}
})
minetest.register_craftitem("mobs:trooper", {
description = "Trooper",
inventory_image = "player.png",
wield_scale = {x = 1.25, y = 1.25, z = 2.5},
groups = {not_in_creative_inventory = 1},
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above then
pointed_thing.above.y = pointed_thing.above.y + 0.5
minetest.add_entity(pointed_thing.above, "mobs:trooper")
if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
minetest.log("action", placer:get_player_name() .. " placed a trooper at " .. minetest.pos_to_string(pointed_thing.above) .. ".")
end
return itemstack
end,
})
Users browsing this forum: No registered users and 43 guests