summaryrefslogtreecommitdiff
path: root/mobs_fish
diff options
context:
space:
mode:
authorblert2112 <cdilts@bellsouth.net>2015-07-24 19:59:02 -0400
committerblert2112 <cdilts@bellsouth.net>2015-07-24 19:59:02 -0400
commitd7384fa12f16dc3e10327d4695ea6286f44bfa5c (patch)
tree0a0572f83655abbbd5f1f4c157a572e162dd7090 /mobs_fish
name changes for compatability
Diffstat (limited to 'mobs_fish')
-rw-r--r--mobs_fish/License.txt6
-rw-r--r--mobs_fish/depends.txt2
-rw-r--r--mobs_fish/init.lua86
-rw-r--r--mobs_fish/models/animal_clownfish.b3dbin0 -> 91816 bytes
-rw-r--r--mobs_fish/models/base/clownfish.blendbin0 -> 547964 bytes
-rw-r--r--mobs_fish/models/base/fish_blue_white.blendbin0 -> 477072 bytes
-rw-r--r--mobs_fish/models/base/fish_blue_white.xcfbin0 -> 2650897 bytes
-rw-r--r--mobs_fish/models/base/fish_clownfish_mesh.xcfbin0 -> 1056192 bytes
-rw-r--r--mobs_fish/models/fish_blue_white.b3dbin0 -> 91816 bytes
-rw-r--r--mobs_fish/textures/animal_clownfish_clownfish_item.pngbin0 -> 1920 bytes
-rw-r--r--mobs_fish/textures/animal_fish_blue_white_fish_blue_white_item.pngbin0 -> 1458 bytes
-rw-r--r--mobs_fish/textures/clownfish.pngbin0 -> 26917 bytes
-rw-r--r--mobs_fish/textures/clownfish2.pngbin0 -> 26690 bytes
-rw-r--r--mobs_fish/textures/fish.pngbin0 -> 34034 bytes
-rw-r--r--mobs_fish/textures/fish2.pngbin0 -> 36866 bytes
-rw-r--r--mobs_fish/textures/fish3.pngbin0 -> 36506 bytes
-rw-r--r--mobs_fish/textures/originals/animal_clownfish_clownfish.pngbin0 -> 7530 bytes
-rw-r--r--mobs_fish/textures/originals/animal_clownfish_mesh.pngbin0 -> 552106 bytes
-rw-r--r--mobs_fish/textures/originals/animal_clownfish_mesh2.pngbin0 -> 384405 bytes
-rw-r--r--mobs_fish/textures/originals/animal_fish_blue_white_fish_blue_white.pngbin0 -> 1458 bytes
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
new file mode 100644
index 0000000..f6b7bec
--- /dev/null
+++ b/mobs_fish/models/animal_clownfish.b3d
Binary files differ
diff --git a/mobs_fish/models/base/clownfish.blend b/mobs_fish/models/base/clownfish.blend
new file mode 100644
index 0000000..878fa84
--- /dev/null
+++ b/mobs_fish/models/base/clownfish.blend
Binary files differ
diff --git a/mobs_fish/models/base/fish_blue_white.blend b/mobs_fish/models/base/fish_blue_white.blend
new file mode 100644
index 0000000..ce99508
--- /dev/null
+++ b/mobs_fish/models/base/fish_blue_white.blend
Binary files differ
diff --git a/mobs_fish/models/base/fish_blue_white.xcf b/mobs_fish/models/base/fish_blue_white.xcf
new file mode 100644
index 0000000..0e654aa
--- /dev/null
+++ b/mobs_fish/models/base/fish_blue_white.xcf
Binary files differ
diff --git a/mobs_fish/models/base/fish_clownfish_mesh.xcf b/mobs_fish/models/base/fish_clownfish_mesh.xcf
new file mode 100644
index 0000000..0ec5909
--- /dev/null
+++ b/mobs_fish/models/base/fish_clownfish_mesh.xcf
Binary files differ
diff --git a/mobs_fish/models/fish_blue_white.b3d b/mobs_fish/models/fish_blue_white.b3d
new file mode 100644
index 0000000..0008a86
--- /dev/null
+++ b/mobs_fish/models/fish_blue_white.b3d
Binary files differ
diff --git a/mobs_fish/textures/animal_clownfish_clownfish_item.png b/mobs_fish/textures/animal_clownfish_clownfish_item.png
new file mode 100644
index 0000000..151d48e
--- /dev/null
+++ b/mobs_fish/textures/animal_clownfish_clownfish_item.png
Binary files differ
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
new file mode 100644
index 0000000..e0a883d
--- /dev/null
+++ b/mobs_fish/textures/animal_fish_blue_white_fish_blue_white_item.png
Binary files differ
diff --git a/mobs_fish/textures/clownfish.png b/mobs_fish/textures/clownfish.png
new file mode 100644
index 0000000..9503fd3
--- /dev/null
+++ b/mobs_fish/textures/clownfish.png
Binary files differ
diff --git a/mobs_fish/textures/clownfish2.png b/mobs_fish/textures/clownfish2.png
new file mode 100644
index 0000000..86d3179
--- /dev/null
+++ b/mobs_fish/textures/clownfish2.png
Binary files differ
diff --git a/mobs_fish/textures/fish.png b/mobs_fish/textures/fish.png
new file mode 100644
index 0000000..55dd017
--- /dev/null
+++ b/mobs_fish/textures/fish.png
Binary files differ
diff --git a/mobs_fish/textures/fish2.png b/mobs_fish/textures/fish2.png
new file mode 100644
index 0000000..b3e0528
--- /dev/null
+++ b/mobs_fish/textures/fish2.png
Binary files differ
diff --git a/mobs_fish/textures/fish3.png b/mobs_fish/textures/fish3.png
new file mode 100644
index 0000000..2e7b1df
--- /dev/null
+++ b/mobs_fish/textures/fish3.png
Binary files differ
diff --git a/mobs_fish/textures/originals/animal_clownfish_clownfish.png b/mobs_fish/textures/originals/animal_clownfish_clownfish.png
new file mode 100644
index 0000000..651b5dd
--- /dev/null
+++ b/mobs_fish/textures/originals/animal_clownfish_clownfish.png
Binary files differ
diff --git a/mobs_fish/textures/originals/animal_clownfish_mesh.png b/mobs_fish/textures/originals/animal_clownfish_mesh.png
new file mode 100644
index 0000000..a696187
--- /dev/null
+++ b/mobs_fish/textures/originals/animal_clownfish_mesh.png
Binary files differ
diff --git a/mobs_fish/textures/originals/animal_clownfish_mesh2.png b/mobs_fish/textures/originals/animal_clownfish_mesh2.png
new file mode 100644
index 0000000..39c617a
--- /dev/null
+++ b/mobs_fish/textures/originals/animal_clownfish_mesh2.png
Binary files differ
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
new file mode 100644
index 0000000..e0a883d
--- /dev/null
+++ b/mobs_fish/textures/originals/animal_fish_blue_white_fish_blue_white.png
Binary files differ