mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-04 23:31:05 +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())
|
||||
|
||||
--###################
|
||||
--################### axolotl
|
||||
--###################
|
||||
|
||||
local axolotl = {
|
||||
type = "animal",
|
||||
spawn_class = "water",
|
||||
|
@ -74,7 +45,6 @@ local axolotl = {
|
|||
run_start = 61, run_end = 81, run_speed = 20,
|
||||
},
|
||||
|
||||
-- This should should make axolotls breedable, but it doesn't.
|
||||
follow = {
|
||||
"mcl_fishing:clownfish_raw"
|
||||
},
|
||||
|
@ -96,7 +66,6 @@ local axolotl = {
|
|||
end
|
||||
if mcl_mobs:feed_tame(self, clicker, 1, true, false) then return end
|
||||
end,
|
||||
|
||||
makes_footstep_sound = false,
|
||||
fly = true,
|
||||
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)
|
||||
|
||||
|
||||
local water = 0
|
||||
|
||||
mcl_mobs:spawn_specific(
|
||||
|
|
Loading…
Reference in a new issue