mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Axolotl cleanup, remove clutter
This commit is contained in:
parent
708fcfb368
commit
d4c2501d62
1 changed files with 0 additions and 32 deletions
|
@ -1,34 +1,5 @@
|
||||||
--MCmobs v0.4
|
|
||||||
--maikerumine
|
|
||||||
--made for MC like Survival game
|
|
||||||
--License for code WTFPL and otherwise stated in readmes
|
|
||||||
|
|
||||||
local pi = math.pi
|
|
||||||
local atann = math.atan
|
|
||||||
local atan = function(x)
|
|
||||||
if not x or x ~= x then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return atann(x)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local dir_to_pitch = function(dir)
|
|
||||||
local dir2 = vector.normalize(dir)
|
|
||||||
local xz = math.abs(dir.x) + math.abs(dir.z)
|
|
||||||
return -math.atan2(-dir.y, xz)
|
|
||||||
end
|
|
||||||
|
|
||||||
local function degrees(rad)
|
|
||||||
return rad * 180.0 / math.pi
|
|
||||||
end
|
|
||||||
|
|
||||||
local S = minetest.get_translator(minetest.get_current_modname())
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
|
|
||||||
--###################
|
|
||||||
--################### axolotl
|
|
||||||
--###################
|
|
||||||
|
|
||||||
local axolotl = {
|
local axolotl = {
|
||||||
type = "animal",
|
type = "animal",
|
||||||
spawn_class = "water",
|
spawn_class = "water",
|
||||||
|
@ -74,7 +45,6 @@ local axolotl = {
|
||||||
run_start = 61, run_end = 81, run_speed = 20,
|
run_start = 61, run_end = 81, run_speed = 20,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- This should should make axolotls breedable, but it doesn't.
|
|
||||||
follow = {
|
follow = {
|
||||||
"mcl_fishing:clownfish_raw"
|
"mcl_fishing:clownfish_raw"
|
||||||
},
|
},
|
||||||
|
@ -96,7 +66,6 @@ local axolotl = {
|
||||||
end
|
end
|
||||||
if mcl_mobs:feed_tame(self, clicker, 1, true, false) then return end
|
if mcl_mobs:feed_tame(self, clicker, 1, true, false) then return end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
fly = true,
|
fly = true,
|
||||||
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
|
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
|
||||||
|
@ -119,7 +88,6 @@ local axolotl = {
|
||||||
|
|
||||||
mcl_mobs:register_mob("mobs_mc:axolotl", axolotl)
|
mcl_mobs:register_mob("mobs_mc:axolotl", axolotl)
|
||||||
|
|
||||||
|
|
||||||
local water = 0
|
local water = 0
|
||||||
|
|
||||||
mcl_mobs:spawn_specific(
|
mcl_mobs:spawn_specific(
|
||||||
|
|
Loading…
Reference in a new issue