mods - mobs_jam - imported fish - tropical and clowfish from blert2112 modpack
* imported commit c32d5a0d5cdc8471208d30a2a9f37c2adb4ea1d9 from upstream mobs_jam of minenux mod * improved desription and readme about inclusion * use settings for mesh vs texture maps, original mod uses txt file related to https://codeberg.org/minenux/minetest-mod-mobs_water/issues/10 * added textures and models
@ -1791,7 +1791,7 @@ function mob_class:smart_mobs(s, p, dist, dtime)
|
|||||||
|
|
||||||
local s1 = self.path.lastpos
|
local s1 = self.path.lastpos
|
||||||
local target_pos = p
|
local target_pos = p
|
||||||
|
if not target_pos then return end
|
||||||
|
|
||||||
-- is it becoming stuck?
|
-- is it becoming stuck?
|
||||||
if abs(s1.x - s.x) + abs(s1.z - s.z) < .5 then
|
if abs(s1.x - s.x) + abs(s1.z - s.z) < .5 then
|
||||||
@ -2552,7 +2552,7 @@ function mob_class:do_states(dtime)
|
|||||||
|
|
||||||
-- get mob and enemy positions and distance between
|
-- get mob and enemy positions and distance between
|
||||||
local s = self.object:get_pos()
|
local s = self.object:get_pos()
|
||||||
local p = self.attack and self.attack:get_pos()
|
local p = self.attack and self.attack:get_pos() or self.object:get_pos()
|
||||||
local dist = p and get_distance(p, s) or 500
|
local dist = p and get_distance(p, s) or 500
|
||||||
|
|
||||||
-- stop attacking if player out of range or invisible
|
-- stop attacking if player out of range or invisible
|
||||||
@ -2586,6 +2586,8 @@ function mob_class:do_states(dtime)
|
|||||||
else
|
else
|
||||||
self.target_time_lost = 0
|
self.target_time_lost = 0
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
self:stop_attack()
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.attack_type == "explode" then
|
if self.attack_type == "explode" then
|
||||||
@ -2741,7 +2743,7 @@ function mob_class:do_states(dtime)
|
|||||||
p = {x = p1.x, y = p1.y, z = p1.z}
|
p = {x = p1.x, y = p1.y, z = p1.z}
|
||||||
end
|
end
|
||||||
|
|
||||||
if p then self:yaw_to_pos(p) end
|
if p then self:yaw_to_pos(p) else self:stop_attack() end
|
||||||
|
|
||||||
-- move towards enemy if beyond mob reach
|
-- move towards enemy if beyond mob reach
|
||||||
if dist > (self.reach + (self.reach_ext or 0)) then
|
if dist > (self.reach + (self.reach_ext or 0)) then
|
||||||
|
@ -1 +1 @@
|
|||||||
MOBS mod of animals, monters and extra, reduced version from tenplush1 and others mods
|
MOBS mod of animals, fish, farms, monters and extra, reduced version from other mods
|
||||||
|
199
mods/mobs_jam/fishs.lua
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
|
||||||
|
local SPRITE_VERSION = minetest.settings:get("mobs_anima.fish_sprite") or false -- set to true to use upright sprites instead of meshes of texture mapping, more faster on slow machines without 3d good gpu
|
||||||
|
|
||||||
|
-- local variables
|
||||||
|
local l_spawn_chance = 10000
|
||||||
|
local l_water_level = minetest.settings:get("water_level") - 1
|
||||||
|
local l_visual = "mesh"
|
||||||
|
local l_visual_size = {x = .75, y = .75}
|
||||||
|
local l_clown_mesh = "mobs_clowfish.b3d"
|
||||||
|
local l_trop_mesh = "mobs_fish_blue_white.b3d"
|
||||||
|
local l_clown_textures = {
|
||||||
|
{"mobs_clownfish.png"},
|
||||||
|
{"mobs_clownfish2.png"}
|
||||||
|
}
|
||||||
|
local l_trop_textures = {
|
||||||
|
{"mobs_fish.png"},
|
||||||
|
{"mobs_fish2.png"},
|
||||||
|
{"mobs_fish3.png"}
|
||||||
|
}
|
||||||
|
|
||||||
|
if SPRITE_VERSION then
|
||||||
|
l_visual = "upright_sprite"
|
||||||
|
l_visual_size = {x = .5, y = .5}
|
||||||
|
l_clown_mesh = nil
|
||||||
|
l_trop_mesh = nil
|
||||||
|
l_clown_textures = {{"animal_clownfish_clownfish_item.png"}}
|
||||||
|
l_trop_textures = {{"animal_fish_blue_white_fish_blue_white_item.png"}}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- Clownfish
|
||||||
|
mobs:register_mob("mobs_jam: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},
|
||||||
|
rotate = 270,
|
||||||
|
visual = l_visual,
|
||||||
|
mesh = l_clown_mesh,
|
||||||
|
textures = l_clown_textures,
|
||||||
|
visual_size = l_visual_size,
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
stepheight = 0,
|
||||||
|
fly = true,
|
||||||
|
fly_in = "default:water_source",
|
||||||
|
fall_speed = 0,
|
||||||
|
view_range = 8,
|
||||||
|
water_damage = 0,
|
||||||
|
air_damage = 0,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 24,
|
||||||
|
speed_run = 24,
|
||||||
|
stand_start = 1,
|
||||||
|
stand_end = 80,
|
||||||
|
walk_start = 81,
|
||||||
|
walk_end = 155,
|
||||||
|
fly_start = 81,
|
||||||
|
fly_end = 155,
|
||||||
|
run_start = 81,
|
||||||
|
run_end = 155
|
||||||
|
},
|
||||||
|
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
|
||||||
|
mobs:capture_mob(self, clicker, 25, 80, 0, true, "mobs_jam:clownfish")
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_flop = function(self)
|
||||||
|
|
||||||
|
-- print("=== am on land, help!", self.state)
|
||||||
|
|
||||||
|
self.object:set_acceleration({
|
||||||
|
x = math.random(-0.1, 0.1),
|
||||||
|
y = -10,
|
||||||
|
z = math.random(-0.1, 0.1)
|
||||||
|
})
|
||||||
|
|
||||||
|
self.object:set_velocity({x = 0, y = -10, z = 0})
|
||||||
|
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
mobs:spawn({
|
||||||
|
name = "mobs_jam:clownfish",
|
||||||
|
nodes = {
|
||||||
|
"default:water_source", "default:water_flowing",
|
||||||
|
"default:river_water_source", "default:river_water_flowing"
|
||||||
|
},
|
||||||
|
neighbors = {"default:sand","default:dirt","group:seaplants","group:seacoral"},
|
||||||
|
min_light = 5,
|
||||||
|
interval = 30,
|
||||||
|
chance = l_spawn_chance,
|
||||||
|
max_height = l_water_level,
|
||||||
|
active_object_count = 5
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
mobs:register_egg("mobs_jam:clownfish", "Clownfish",
|
||||||
|
"animal_clownfish_clownfish_item.png", 0)
|
||||||
|
|
||||||
|
|
||||||
|
-- Tropical fish
|
||||||
|
mobs:register_mob("mobs_jam: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},
|
||||||
|
rotate = 270,
|
||||||
|
visual = l_visual,
|
||||||
|
mesh = l_trop_mesh,
|
||||||
|
textures = l_trop_textures,
|
||||||
|
visual_size = l_visual_size,
|
||||||
|
makes_footstep_sound = false,
|
||||||
|
stepheight = 0,
|
||||||
|
fly = true,
|
||||||
|
fly_in = "default:water_source",
|
||||||
|
fall_speed = 0,
|
||||||
|
view_range = 8,
|
||||||
|
water_damage = 0,
|
||||||
|
lava_damage = 5,
|
||||||
|
light_damage = 0,
|
||||||
|
air_damage = 0,
|
||||||
|
animation = {
|
||||||
|
speed_normal = 24,
|
||||||
|
speed_run = 24,
|
||||||
|
stand_start = 1,
|
||||||
|
stand_end = 80,
|
||||||
|
walk_start = 81,
|
||||||
|
walk_end = 155,
|
||||||
|
run_start = 81,
|
||||||
|
run_end = 155
|
||||||
|
},
|
||||||
|
|
||||||
|
on_rightclick = function(self, clicker)
|
||||||
|
|
||||||
|
mobs:capture_mob(self, clicker, 25, 80, 0, true, "mobs_jam:tropical")
|
||||||
|
end,
|
||||||
|
|
||||||
|
on_flop = function(self)
|
||||||
|
|
||||||
|
-- print("=== am on land, help!", self.state)
|
||||||
|
|
||||||
|
self.object:set_acceleration({
|
||||||
|
x = math.random(-0.1, 0.1),
|
||||||
|
y = -10,
|
||||||
|
z = math.random(-0.1, 0.1)
|
||||||
|
})
|
||||||
|
|
||||||
|
self.object:set_velocity({x = 0, y = -10, z = 0})
|
||||||
|
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
mobs:spawn({
|
||||||
|
name = "mobs_jam:tropical",
|
||||||
|
nodes = {
|
||||||
|
"default:water_source", "default:water_flowing",
|
||||||
|
"default:river_water_source", "default:river_water_flowing"
|
||||||
|
},
|
||||||
|
neighbors = {"default:sand","default:dirt","group:seaplants","group:seacoral"},
|
||||||
|
min_light = 5,
|
||||||
|
interval = 30,
|
||||||
|
chance = l_spawn_chance,
|
||||||
|
max_height = l_water_level,
|
||||||
|
active_object_count = 5
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
mobs:register_egg("mobs_jam:tropical", "Tropical fish",
|
||||||
|
"animal_fish_blue_white_fish_blue_white_item.png", 0)
|
||||||
|
|
||||||
|
|
||||||
|
local function add_food_group(item)
|
||||||
|
|
||||||
|
local def = minetest.registered_items[item]
|
||||||
|
local grp = def.groups
|
||||||
|
|
||||||
|
grp.food_fish_raw = 1
|
||||||
|
|
||||||
|
minetest.override_item(item, {groups = grp})
|
||||||
|
end
|
||||||
|
|
||||||
|
add_food_group("mobs_jam:tropical")
|
||||||
|
add_food_group("mobs_jam:clownfish")
|
||||||
|
|
||||||
|
mobs:alias_mob("mobs_fish:clownfish", "mobs_jam:clownfish")
|
||||||
|
mobs:alias_mob("mobs_fish:tropical", "mobs_jam:tropical")
|
||||||
|
|
||||||
|
print("[MOD] Mobs JAM - animal - Fish - loaded")
|
@ -62,6 +62,10 @@ ddoo("penguin") -- D00Med
|
|||||||
ddoo("panda") -- AspireMint
|
ddoo("panda") -- AspireMint
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not minetest.get_modpath("mobs_fish") and minetest.settings:get_bool("mobs_animal.fish") ~= false then
|
||||||
|
dofile(path .. "fishs.lua") -- mobs_water / mobs_fish
|
||||||
|
end
|
||||||
|
|
||||||
if not minetest.get_modpath("mobs_doomed") and not minetest.get_modpath("dmobs") then
|
if not minetest.get_modpath("mobs_doomed") and not minetest.get_modpath("dmobs") then
|
||||||
dofile(path .. "fox.lua") -- D00Med
|
dofile(path .. "fox.lua") -- D00Med
|
||||||
dofile(path .. "owl.lua") -- D00Med
|
dofile(path .. "owl.lua") -- D00Med
|
||||||
|
@ -15,6 +15,20 @@ Texture Copyright (CC0) creative commons zero by LordNeo
|
|||||||
mobs_balrog_balrog_whip.png
|
mobs_balrog_balrog_whip.png
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Source Code: CC-BY-SA-NC for fishs Author: Sapier &
|
||||||
|
Model/Textures: CC-BY-SA 3.0 for fishs Author: Sapier
|
||||||
|
mobs_clowfish.b3d
|
||||||
|
mobs_fish_blue_white.b3d
|
||||||
|
animal_clownfish_clownfish_item.png
|
||||||
|
animal_fish_blue_white_fish_blue_white_item.png
|
||||||
|
mobs_clownfish.png
|
||||||
|
mobs_clownfish2.png
|
||||||
|
mobs_fish.png
|
||||||
|
mobs_fish2.png
|
||||||
|
mobs_fish3.png
|
||||||
|
|
||||||
|
|
||||||
Chicken/Cow/Panda/Pig/Sheep sounds from freesounds.org under CC0
|
Chicken/Cow/Panda/Pig/Sheep sounds from freesounds.org under CC0
|
||||||
|
|
||||||
Mutton, Pork and Rabbit meat textures by Piezo_ under CC0
|
Mutton, Pork and Rabbit meat textures by Piezo_ under CC0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name = mobs_jam
|
name = mobs_jam
|
||||||
depends = mobs, default, fire, mobs, tnt
|
depends = mobs, default, fire, mobs, tnt
|
||||||
optional_depends = farming, lucky_block, nether
|
optional_depends = farming, lucky_block, nether
|
||||||
description = MOBS mod of animals, monters and extra, reduced version from tenplush1 and others mods
|
description = MOBS mod of animals, fish, farms, monters and extra, reduced version from other mods
|
||||||
min_minetest_version = 0.4.16
|
min_minetest_version = 0.4.16
|
||||||
media_license = CC-BY-SA-3.0
|
media_license = CC-BY-SA-3.0
|
||||||
|
BIN
mods/mobs_jam/models/mobs_clowfish.b3d
Normal file
BIN
mods/mobs_jam/models/mobs_fish_blue_white.b3d
Normal file
@ -14,7 +14,7 @@ Reason is the nascisic and petty behaviour of mayority of minetest developers
|
|||||||
|
|
||||||
It provides mobs:
|
It provides mobs:
|
||||||
|
|
||||||
* `mobs_animal` a mixed from original PilzAdam with the ones of tenplus1
|
* `mobs_animal` a mixed from original PilzAdam with the ones of tenplus1 and
|
||||||
* `bee`
|
* `bee`
|
||||||
* `chicken`
|
* `chicken`
|
||||||
* `cow`
|
* `cow`
|
||||||
@ -24,6 +24,8 @@ It provides mobs:
|
|||||||
* `penguin`
|
* `penguin`
|
||||||
* `kitten`
|
* `kitten`
|
||||||
* `warthog`
|
* `warthog`
|
||||||
|
* `clowfish`
|
||||||
|
* `tropical`
|
||||||
* `mobs_monster` disected from original PilzAdam, adapted to mobs_redo
|
* `mobs_monster` disected from original PilzAdam, adapted to mobs_redo
|
||||||
* `fire_spirit`
|
* `fire_spirit`
|
||||||
* `oerkki`
|
* `oerkki`
|
||||||
@ -63,10 +65,19 @@ Optionally
|
|||||||
* intlib
|
* intlib
|
||||||
* lucky_blocks
|
* lucky_blocks
|
||||||
|
|
||||||
## Animals:
|
### Configurations
|
||||||
|
|
||||||
|
animals has a bunch of options
|
||||||
|
|
||||||
|
balrog needs `enable_tnt` to set to true if you want to explote on dead!
|
||||||
|
|
||||||
|
## Mobs:
|
||||||
|
|
||||||
**Note**: *After breeding, animals need to rest for 4 minutes and baby animals take 4 minutes to grow up, also feeding them helps them grow quicker...*
|
**Note**: *After breeding, animals need to rest for 4 minutes and baby animals take 4 minutes to grow up, also feeding them helps them grow quicker...*
|
||||||
|
|
||||||
|
### Clowfish
|
||||||
|
Small fish on water
|
||||||
|
|
||||||
### Bee
|
### Bee
|
||||||
Tends to buzz around flowers and gives honey when killed, you can also right-click a bee to pick it up and place in inventory. 3x bee's in a row can craft a beehive.
|
Tends to buzz around flowers and gives honey when killed, you can also right-click a bee to pick it up and place in inventory. 3x bee's in a row can craft a beehive.
|
||||||
|
|
||||||
@ -121,6 +132,10 @@ Found in dark areas like most monsters, Oerkki wander the caverns stealing away
|
|||||||
Fire Spirits will not tolerate players roaming around their domain and will fiercely attack until their dying puff of smoke.
|
Fire Spirits will not tolerate players roaming around their domain and will fiercely attack until their dying puff of smoke.
|
||||||
They will drop their spirit and some fire dust when using ethereal.
|
They will drop their spirit and some fire dust when using ethereal.
|
||||||
|
|
||||||
|
### Tropical fish
|
||||||
|
|
||||||
|
Big fish to catch on waters
|
||||||
|
|
||||||
### balrog
|
### balrog
|
||||||
|
|
||||||
The final boss! it could inclusive crash the server.. be carefully!
|
The final boss! it could inclusive crash the server.. be carefully!
|
||||||
@ -137,6 +152,8 @@ CC-BY-SA-NC unless permission of
|
|||||||
This mod handles several others works under following licences:
|
This mod handles several others works under following licences:
|
||||||
|
|
||||||
* Copyright (C) 2016-2020 tenplus1
|
* Copyright (C) 2016-2020 tenplus1
|
||||||
|
* Copyright (C) 2015 Sapier
|
||||||
|
* Copyright (C) 2015 blert2112
|
||||||
* Copyright (C) 2015 LordNeo
|
* Copyright (C) 2015 LordNeo
|
||||||
* Copyright (C) 2014 Hamlet
|
* Copyright (C) 2014 Hamlet
|
||||||
* Copyright (C) 2014 STHGOM / sparky
|
* Copyright (C) 2014 STHGOM / sparky
|
||||||
|
@ -8,3 +8,6 @@ mobs_animal.penguin (Enable Penguin) bool true
|
|||||||
mobs_animal.rat (Enable Rat) bool true
|
mobs_animal.rat (Enable Rat) bool true
|
||||||
mobs_animal.sheep (Enable Sheep) bool true
|
mobs_animal.sheep (Enable Sheep) bool true
|
||||||
mobs_animal.warthog (Enable Warthog) bool true
|
mobs_animal.warthog (Enable Warthog) bool true
|
||||||
|
mobs_animal.fish (Enable Fish) bool true
|
||||||
|
|
||||||
|
mobs_animal.fish_sprite (Enable sprites for Fishs event texture mapping) bool false
|
BIN
mods/mobs_jam/textures/animal_clownfish_clownfish_item.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.4 KiB |
BIN
mods/mobs_jam/textures/mobs_clownfish.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
mods/mobs_jam/textures/mobs_clownfish2.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
mods/mobs_jam/textures/mobs_fish.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
mods/mobs_jam/textures/mobs_fish2.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
mods/mobs_jam/textures/mobs_fish3.png
Normal file
After Width: | Height: | Size: 36 KiB |