diff options
author | blert2112 <cdilts@bellsouth.net> | 2015-07-24 19:59:02 -0400 |
---|---|---|
committer | blert2112 <cdilts@bellsouth.net> | 2015-07-24 19:59:02 -0400 |
commit | d7384fa12f16dc3e10327d4695ea6286f44bfa5c (patch) | |
tree | 0a0572f83655abbbd5f1f4c157a572e162dd7090 /mobs_fish |
name changes for compatability
Diffstat (limited to 'mobs_fish')
20 files changed, 94 insertions, 0 deletions
diff --git a/mobs_fish/License.txt b/mobs_fish/License.txt new file mode 100644 index 0000000..76852f6 --- /dev/null +++ b/mobs_fish/License.txt @@ -0,0 +1,6 @@ +Licenses + +Model/Textures: CC-BY-SA 3.0 +Author: Sapier + +URL: http://creativecommons.org/licenses/by-sa/3.0/de/legalcode diff --git a/mobs_fish/depends.txt b/mobs_fish/depends.txt new file mode 100644 index 0000000..cc03398 --- /dev/null +++ b/mobs_fish/depends.txt @@ -0,0 +1,2 @@ +default +mobs diff --git a/mobs_fish/init.lua b/mobs_fish/init.lua new file mode 100644 index 0000000..3ffa806 --- /dev/null +++ b/mobs_fish/init.lua @@ -0,0 +1,86 @@ + +if mobs.mod and mobs.mod == "redo" then + +-- local variables + local l_anims = { + speed_normal = 24, speed_run = 24, + stand_start = 1, stand_end = 80, + walk_start = 81, walk_end = 155, + run_start = 81, run_end = 155 + } + local l_spawn_in = {"default:water_source"} + local l_spawn_near = {"default:sand","default:dirt","group:seaplants","group:seacoral"} + local l_spawn_chance = 10000 + local l_cc_hand = 25 + local l_cc_net = 80 + +-- Clownfish + mobs:register_mob("mobs_fish:clownfish", { + type = "animal", + passive = true, + hp_min = 1, + hp_max = 4, + armor = 100, + collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25}, + visual = "mesh", + mesh = "animal_clownfish.b3d", + textures = { + {"clownfish.png"}, + {"clownfish2.png"} + }, + visual_size = {x=.75, y=.75}, + makes_footstep_sound = false, + stepheight = 0.1, + fly = true, + fly_in = "default:water_source", + fall_speed = 0, + rotate = 4.5, + view_range = 8, + water_damage = 0, + lava_damage = 5, + light_damage = 0, + animation = l_anims, + on_rightclick = function(self, clicker) + mobs:capture_mob(self, clicker, l_cc_hand, l_cc_net, 0, true, nil) + end + }) + --name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height + mobs:spawn_specific("mobs_fish:clownfish", l_spawn_in, l_spawn_near, 5, 20, 30, l_spawn_chance, 1, -31000, 0) + mobs:register_egg("mobs_fish:clownfish", "Clownfish", "animal_clownfish_clownfish_item.png", 0) + +-- Tropical fish + mobs:register_mob("mobs_fish:tropical", { + type = "animal", + passive = true, + hp_min = 1, + hp_max = 4, + armor = 100, + collisionbox = {-0.25, -0.25, -0.25, 0.25, 0.25, 0.25}, + visual = "mesh", + mesh = "fish_blue_white.b3d", + textures = { + {"fish.png"}, + {"fish2.png"}, + {"fish3.png"} + }, + visual_size = {x=0.75, y=0.75}, + makes_footstep_sound = false, + stepheight = 0.1, + fly = true, + fly_in = "default:water_source", + fall_speed = 0, + rotate = 4.5, + view_range = 8, + water_damage = 0, + lava_damage = 5, + light_damage = 0, + animation = l_anims, + on_rightclick = function(self, clicker) + mobs:capture_mob(self, clicker, l_cc_hand, l_cc_net, 0, true, nil) + end + }) + --name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height + mobs:spawn_specific("mobs_fish:tropical", l_spawn_in, l_spawn_near, 5, 20, 30, l_spawn_chance, 1, -31000, 0) + mobs:register_egg("mobs_fish:tropical", "Tropical fish", "animal_fish_blue_white_fish_blue_white_item.png", 0) + +end diff --git a/mobs_fish/models/animal_clownfish.b3d b/mobs_fish/models/animal_clownfish.b3d Binary files differnew file mode 100644 index 0000000..f6b7bec --- /dev/null +++ b/mobs_fish/models/animal_clownfish.b3d diff --git a/mobs_fish/models/base/clownfish.blend b/mobs_fish/models/base/clownfish.blend Binary files differnew file mode 100644 index 0000000..878fa84 --- /dev/null +++ b/mobs_fish/models/base/clownfish.blend diff --git a/mobs_fish/models/base/fish_blue_white.blend b/mobs_fish/models/base/fish_blue_white.blend Binary files differnew file mode 100644 index 0000000..ce99508 --- /dev/null +++ b/mobs_fish/models/base/fish_blue_white.blend diff --git a/mobs_fish/models/base/fish_blue_white.xcf b/mobs_fish/models/base/fish_blue_white.xcf Binary files differnew file mode 100644 index 0000000..0e654aa --- /dev/null +++ b/mobs_fish/models/base/fish_blue_white.xcf diff --git a/mobs_fish/models/base/fish_clownfish_mesh.xcf b/mobs_fish/models/base/fish_clownfish_mesh.xcf Binary files differnew file mode 100644 index 0000000..0ec5909 --- /dev/null +++ b/mobs_fish/models/base/fish_clownfish_mesh.xcf diff --git a/mobs_fish/models/fish_blue_white.b3d b/mobs_fish/models/fish_blue_white.b3d Binary files differnew file mode 100644 index 0000000..0008a86 --- /dev/null +++ b/mobs_fish/models/fish_blue_white.b3d diff --git a/mobs_fish/textures/animal_clownfish_clownfish_item.png b/mobs_fish/textures/animal_clownfish_clownfish_item.png Binary files differnew file mode 100644 index 0000000..151d48e --- /dev/null +++ b/mobs_fish/textures/animal_clownfish_clownfish_item.png diff --git a/mobs_fish/textures/animal_fish_blue_white_fish_blue_white_item.png b/mobs_fish/textures/animal_fish_blue_white_fish_blue_white_item.png Binary files differnew file mode 100644 index 0000000..e0a883d --- /dev/null +++ b/mobs_fish/textures/animal_fish_blue_white_fish_blue_white_item.png diff --git a/mobs_fish/textures/clownfish.png b/mobs_fish/textures/clownfish.png Binary files differnew file mode 100644 index 0000000..9503fd3 --- /dev/null +++ b/mobs_fish/textures/clownfish.png diff --git a/mobs_fish/textures/clownfish2.png b/mobs_fish/textures/clownfish2.png Binary files differnew file mode 100644 index 0000000..86d3179 --- /dev/null +++ b/mobs_fish/textures/clownfish2.png diff --git a/mobs_fish/textures/fish.png b/mobs_fish/textures/fish.png Binary files differnew file mode 100644 index 0000000..55dd017 --- /dev/null +++ b/mobs_fish/textures/fish.png diff --git a/mobs_fish/textures/fish2.png b/mobs_fish/textures/fish2.png Binary files differnew file mode 100644 index 0000000..b3e0528 --- /dev/null +++ b/mobs_fish/textures/fish2.png diff --git a/mobs_fish/textures/fish3.png b/mobs_fish/textures/fish3.png Binary files differnew file mode 100644 index 0000000..2e7b1df --- /dev/null +++ b/mobs_fish/textures/fish3.png diff --git a/mobs_fish/textures/originals/animal_clownfish_clownfish.png b/mobs_fish/textures/originals/animal_clownfish_clownfish.png Binary files differnew file mode 100644 index 0000000..651b5dd --- /dev/null +++ b/mobs_fish/textures/originals/animal_clownfish_clownfish.png diff --git a/mobs_fish/textures/originals/animal_clownfish_mesh.png b/mobs_fish/textures/originals/animal_clownfish_mesh.png Binary files differnew file mode 100644 index 0000000..a696187 --- /dev/null +++ b/mobs_fish/textures/originals/animal_clownfish_mesh.png diff --git a/mobs_fish/textures/originals/animal_clownfish_mesh2.png b/mobs_fish/textures/originals/animal_clownfish_mesh2.png Binary files differnew file mode 100644 index 0000000..39c617a --- /dev/null +++ b/mobs_fish/textures/originals/animal_clownfish_mesh2.png diff --git a/mobs_fish/textures/originals/animal_fish_blue_white_fish_blue_white.png b/mobs_fish/textures/originals/animal_fish_blue_white_fish_blue_white.png Binary files differnew file mode 100644 index 0000000..e0a883d --- /dev/null +++ b/mobs_fish/textures/originals/animal_fish_blue_white_fish_blue_white.png |