name changes for compatability
6
mobs_fish/License.txt
Normal file
@ -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
|
2
mobs_fish/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
mobs
|
86
mobs_fish/init.lua
Normal file
@ -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
|
BIN
mobs_fish/models/animal_clownfish.b3d
Normal file
BIN
mobs_fish/models/base/clownfish.blend
Normal file
BIN
mobs_fish/models/base/fish_blue_white.blend
Normal file
BIN
mobs_fish/models/base/fish_blue_white.xcf
Normal file
BIN
mobs_fish/models/base/fish_clownfish_mesh.xcf
Normal file
BIN
mobs_fish/models/fish_blue_white.b3d
Normal file
BIN
mobs_fish/textures/animal_clownfish_clownfish_item.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.4 KiB |
BIN
mobs_fish/textures/clownfish.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
mobs_fish/textures/clownfish2.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
mobs_fish/textures/fish.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
mobs_fish/textures/fish2.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
mobs_fish/textures/fish3.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
mobs_fish/textures/originals/animal_clownfish_clownfish.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
mobs_fish/textures/originals/animal_clownfish_mesh.png
Normal file
After Width: | Height: | Size: 539 KiB |
BIN
mobs_fish/textures/originals/animal_clownfish_mesh2.png
Normal file
After Width: | Height: | Size: 375 KiB |
After Width: | Height: | Size: 1.4 KiB |