Preliminarily clean out old mcl_mobs api.lua

This commit is contained in:
cora 2022-09-09 03:24:40 +02:00
parent 7c696052e0
commit 6a2109ad68
3 changed files with 34 additions and 3899 deletions

File diff suppressed because it is too large Load Diff

View File

@ -338,7 +338,7 @@ function mcl_mobs:spawn_setup(def)
summary_chance = summary_chance + chance
end
function mcl_mobs:spawn_specific(name, dimension, type_of_spawning, biomes, min_light, max_light, interval, chance, aoc, min_height, max_height, day_toggle, on_spawn)
function mcl_mobs.register_spawn(name, dimension, type_of_spawning, biomes, min_light, max_light, interval, chance, aoc, min_height, max_height, day_toggle, on_spawn)
-- Do mobs spawn at all?
if not mobs_spawn then
@ -377,6 +377,15 @@ function mcl_mobs:spawn_specific(name, dimension, type_of_spawning, biomes, min_
spawn_dictionary[key]["day_toggle"] = day_toggle
summary_chance = summary_chance + chance
end
function mcl_mobs:spawn_specific(...)
return mcl_mobs.register_spawn(...)
end
function mobs:spawn_specific(...)
return mcl_mobs.register_spawn(...)
end
local two_pi = 2 * math.pi

View File

@ -26,12 +26,16 @@ mcl_mobs:register_mob("mobs_mc:shulker", {
xp_max = 5,
armor = 150,
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.99, 0.5},
visual = "mesh",
visual = "cube",
mesh = "mobs_mc_shulker.b3d",
textures = { "mobs_mc_endergolem.png", },
textures = {
"mobs_mc_endergolem.png",
"mobs_mc_endergolem.png",
"mobs_mc_endergolem.png",
},
-- TODO: sounds
-- TODO: Make shulker dye-able
visual_size = {x=3, y=3},
visual_size = {x=1, y=1},
walk_chance = 0,
knock_back = false,
jump = false,