poikilos
6 years ago
committed by
Jacob Gustafson
21 changed files with 201 additions and 0 deletions
@ -0,0 +1,145 @@ |
|||||
|
-- Deer. Descended from Sapier version. |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- License for "deer" media. |
||||
|
-- |
||||
|
-- You may copy, use, modify or do nearly anything but remove this |
||||
|
-- copyright notice. Of course, you're not allowed to pretend you've |
||||
|
-- created or written the Sapier-specific pieces. |
||||
|
-- |
||||
|
-- CC-BY-SA 3.0. Attribution: Sapier and Poikilos. |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
local lcname = "deer" |
||||
|
local ucname = "Deer" |
||||
|
local msname = "codermobs_" .. lcname |
||||
|
local obj_name = "codermobs:" .. lcname |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
mobs_param = { |
||||
|
lcname = lcname , |
||||
|
ucname = ucname , |
||||
|
obj_name = obj_name , |
||||
|
|
||||
|
aoc = 2 , |
||||
|
obr = 1 , |
||||
|
day_mode = true , |
||||
|
min_light = 14 , |
||||
|
max_light = 20 , |
||||
|
min_height = 0 , |
||||
|
max_height = 200 , |
||||
|
spawn_chance = 50000 , |
||||
|
spawn_type = "animal" , |
||||
|
|
||||
|
spawn_nodes = { |
||||
|
"default:dirt_with_grass" , |
||||
|
"ethereal:green_dirt" , |
||||
|
"ethereal:green_dirt_top" , |
||||
|
"ethereal:grove_dirt" , |
||||
|
"mg:dirt_with_dry_grass" , |
||||
|
} , |
||||
|
|
||||
|
spawn_by = { |
||||
|
"default:oak_trunk" , |
||||
|
"flowers:mushroom_brown" , |
||||
|
} , |
||||
|
|
||||
|
add_egg = true , |
||||
|
egg_image = "wool_pink.png" , |
||||
|
} |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
codermobs.adjust_param() |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
mobs_param.core_param = { |
||||
|
type = mobs_param.spawn_type , |
||||
|
makes_footstep_sound = true , |
||||
|
|
||||
|
armor = 200 , |
||||
|
attack_npcs = false , |
||||
|
attack_type = "dogfight" , |
||||
|
damage = 2 , |
||||
|
fear_height = 3 , |
||||
|
group_attack = true , |
||||
|
hp_max = 15 , |
||||
|
hp_min = 5 , |
||||
|
jump_height = 6 , |
||||
|
jump = true , |
||||
|
owner_loyal = true , |
||||
|
passive = false , |
||||
|
pushable = true , |
||||
|
reach = 2 , |
||||
|
rotate = 270 , |
||||
|
run_velocity = 3 , |
||||
|
stepheight = 0.6 , |
||||
|
type = "animal" , |
||||
|
view_range = 10 , |
||||
|
walk_velocity = 2 , |
||||
|
|
||||
|
lava_damage = 5 , |
||||
|
light_damage = 0 , |
||||
|
water_damage = 0 , |
||||
|
|
||||
|
collisionbox = { -0.70, -1.10, -0.70, 0.70, 0.80, 0.70 } , |
||||
|
mesh = msname .. ".b3d" , |
||||
|
visual = "mesh" , |
||||
|
|
||||
|
textures = { |
||||
|
{ msname .. "_male_mesh.png" } , |
||||
|
{ msname .. "_female_mesh.png" } , |
||||
|
}, |
||||
|
|
||||
|
sounds = { |
||||
|
}, |
||||
|
|
||||
|
follow = { "default:apple", "farming:potato" } , |
||||
|
|
||||
|
drops = { |
||||
|
{ |
||||
|
name = "animal_materials:meat_venison" , |
||||
|
chance = 1, min = 1, max = 1 , |
||||
|
} , |
||||
|
{ |
||||
|
name = "animal_materials:antlers" , |
||||
|
chance = 1, min = 1, max = 1 , |
||||
|
} , |
||||
|
{ |
||||
|
name = "animal_materials:fur_deer" , |
||||
|
chance = 4, min = 1, max = 1 , |
||||
|
} , |
||||
|
{ |
||||
|
name = "animal_materials:bone" , |
||||
|
chance = 4, min = 1, max = 1 , |
||||
|
} , |
||||
|
} , |
||||
|
|
||||
|
animation = { |
||||
|
walk_start = 0 , |
||||
|
walk_end = 60 , |
||||
|
stand_start = 61 , |
||||
|
stand_end = 120 , |
||||
|
speed_normal = 15 , |
||||
|
} , |
||||
|
|
||||
|
on_rightclick = function (self, clicker) |
||||
|
if mobs:feed_tame(self, clicker, 8, true, true) then return end |
||||
|
if mobs:protect(self, clicker) then return end |
||||
|
|
||||
|
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then |
||||
|
return |
||||
|
end |
||||
|
end, |
||||
|
} |
||||
|
|
||||
|
-- =================================================================== |
||||
|
|
||||
|
codermobs.setup_mob() |
||||
|
codermobs.log_done() |
||||
|
|
||||
|
-- =================================================================== |
||||
|
-- End of file. |
@ -0,0 +1,41 @@ |
|||||
|
#!/bin/bash |
||||
|
echo |
||||
|
echo |
||||
|
|
||||
|
customDie() { |
||||
|
echo |
||||
|
echo "ERROR:" |
||||
|
echo "$1" |
||||
|
echo |
||||
|
echo |
||||
|
} |
||||
|
|
||||
|
if [ ! -f deer.lua ]; then |
||||
|
customDie "No deer.lua, so can't patch." |
||||
|
fi |
||||
|
my_bucket_game=$HOME/minetest/games/Bucket_Game |
||||
|
my_codermobs_codermobs=$my_bucket_game/mods/codermobs/codermobs |
||||
|
my_codermobs_init=$my_codermobs_codermobs/init.lua |
||||
|
if [ ! -f "$my_codermobs_init" ]; then |
||||
|
customDie "$my_codermobs_init does not exist." |
||||
|
fi |
||||
|
echo "* patching $my_codermobs_init..." |
||||
|
if [ -z "`cat $my_codermobs_init | grep deer.lua`" ]; then |
||||
|
echo 'dofile (mp .. "/deer.lua" )' >> "$my_codermobs_init" |
||||
|
else |
||||
|
echo " Your codermobs/codermobs/init.lua already loads deer.lua." |
||||
|
fi |
||||
|
if [ -f "$my_codermobs_codermobs/deer.lua" ]; then |
||||
|
echo "* removing old $my_codermobs_codermobs/deer.lua..." |
||||
|
rm $my_codermobs_codermobs/deer.lua || customDie "Cannot remove old $my_codermobs_codermobs/deer.lua" |
||||
|
fi |
||||
|
echo "* copying to $my_codermobs_codermobs/deer.lua..." |
||||
|
cp deer.lua "$my_codermobs_codermobs/" || customDie "Cannot copy to $my_codermobs_codermobs/deer.lua" |
||||
|
echo "* copying over $my_codermobs_codermobs/textures/..." |
||||
|
cp textures/* "$my_codermobs_codermobs/textures/" || customDie "Cannot copy to $my_codermobs_codermobs/textures/" |
||||
|
echo "* copying over $my_codermobs_codermobs/models/..." |
||||
|
cp models/* "$my_codermobs_codermobs/models/" || customDie "Cannot copy to $my_codermobs_codermobs/textures/" |
||||
|
echo "Done." |
||||
|
echo |
||||
|
echo |
||||
|
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,15 @@ |
|||||
|
Licenses |
||||
|
|
||||
|
|
||||
|
Everything not mentioned: |
||||
|
CC-BY-SA 3.0, Author sapier and Poikilos |
||||
|
URL: http://creativecommons.org/licenses/by-sa/3.0/de/legalcode |
||||
|
|
||||
|
## 2019-04-06 |
||||
|
### Changes |
||||
|
(OldCoder) |
||||
|
* added feather pattern to feather area |
||||
|
(Poikilos) |
||||
|
* texture expanded to avoid edge glitter |
||||
|
* re-exported mesh with github.com/minetest B3D Exporter |
||||
|
* added eyes |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 290 B |
After Width: | Height: | Size: 293 B |
After Width: | Height: | Size: 590 KiB |
After Width: | Height: | Size: 58 KiB |
Loading…
Reference in new issue