mirror of
https://github.com/AntumMT/mod-slimes.git
synced 2024-12-23 01:00:28 +01:00
update
This commit is contained in:
parent
dcf0c0f9ef
commit
9b8d38618a
@ -1,3 +1,5 @@
|
|||||||
default
|
default
|
||||||
tnt
|
tnt
|
||||||
|
mobs
|
||||||
mesecons_materials?
|
mesecons_materials?
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- Green Slimes by TomasJLuis
|
||||||
|
|
||||||
-- sounds
|
-- sounds
|
||||||
local green_sounds = {
|
local green_sounds = {
|
||||||
damage = "slimes_damage",
|
damage = "slimes_damage",
|
||||||
@ -39,7 +41,7 @@ mobs:register_mob("slimes:greensmall", {
|
|||||||
lava_damage = 10,
|
lava_damage = 10,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
})
|
})
|
||||||
mobs:register_egg("slimes:greensmall", "Small Green Slime", "green_slime_front.png", 0)
|
mobs:register_egg("slimes:greensmall", "Small Green Slime", "green_slime_egg.png", 1)
|
||||||
|
|
||||||
-- register medium green slime
|
-- register medium green slime
|
||||||
mobs:register_mob("slimes:greenmedium", {
|
mobs:register_mob("slimes:greenmedium", {
|
||||||
@ -74,7 +76,7 @@ mobs:register_mob("slimes:greenmedium", {
|
|||||||
lava_damage = 10,
|
lava_damage = 10,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
})
|
})
|
||||||
mobs:register_egg("slimes:greenmedium", "Medium Green Slime", "green_slime_front.png", 0)
|
mobs:register_egg("slimes:greenmedium", "Medium Green Slime", "green_slime_egg.png", 1)
|
||||||
|
|
||||||
-- register big green slime
|
-- register big green slime
|
||||||
mobs:register_mob("slimes:greenbig", {
|
mobs:register_mob("slimes:greenbig", {
|
||||||
@ -109,7 +111,7 @@ mobs:register_mob("slimes:greenbig", {
|
|||||||
lava_damage = 10,
|
lava_damage = 10,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
})
|
})
|
||||||
mobs:register_egg("slimes:greenbig", "Big Green Slime", "green_slime_front.png", 0)
|
mobs:register_egg("slimes:greenbig", "Big Green Slime", "green_slime_egg.png", 1)
|
||||||
|
|
||||||
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
|
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
|
||||||
mobs:spawn_specific("slimes:greenbig", {"default:junglegrass"},{"air","default:junglegrass"}, 4, 20, 30, 5000, 8, 0, 32000)
|
mobs:spawn_specific("slimes:greenbig", {"default:junglegrass"},{"air","default:junglegrass"}, 4, 20, 30, 5000, 8, 0, 32000)
|
||||||
@ -119,3 +121,4 @@ mobs:spawn_specific("slimes:greensmall", {"default:junglegrass"},{"air","default
|
|||||||
--mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height)
|
--mobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height)
|
||||||
mobs:register_spawn("slimes:greenmedium", {"default:mossycobble"}, 20, 4, 10000, 8, 32000)
|
mobs:register_spawn("slimes:greenmedium", {"default:mossycobble"}, 20, 4, 10000, 8, 32000)
|
||||||
mobs:register_spawn("slimes:greensmall", {"default:mossycobble"}, 20, 4, 10000, 8, 32000)
|
mobs:register_spawn("slimes:greensmall", {"default:mossycobble"}, 20, 4, 10000, 8, 32000)
|
||||||
|
|
||||||
|
6
init.lua
6
init.lua
@ -1,4 +1,7 @@
|
|||||||
-- Slimes by TenPlus1 and TomasJLuis
|
-- Slimes by TomasJLuis
|
||||||
|
-- Migration to Mobs Redo API by TenPlus1
|
||||||
|
|
||||||
|
-- load mod files
|
||||||
dofile(minetest.get_modpath("slimes").."/greenslimes.lua")
|
dofile(minetest.get_modpath("slimes").."/greenslimes.lua")
|
||||||
dofile(minetest.get_modpath("slimes").."/lavaslimes.lua")
|
dofile(minetest.get_modpath("slimes").."/lavaslimes.lua")
|
||||||
|
|
||||||
@ -11,3 +14,4 @@ if not minetest.get_modpath("mesecons_materials") then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if minetest.setting_get("log_mods") then minetest.log("action", "Slimes loaded") end
|
if minetest.setting_get("log_mods") then minetest.log("action", "Slimes loaded") end
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
-- Lava Slimes by TomasJLuis
|
||||||
|
|
||||||
-- sounds
|
-- sounds
|
||||||
local lava_sounds = {
|
local lava_sounds = {
|
||||||
damage = "slimes_damage",
|
damage = "slimes_damage",
|
||||||
@ -29,7 +31,7 @@ mobs:register_mob("slimes:lavasmall", {
|
|||||||
walk_chance = 0,
|
walk_chance = 0,
|
||||||
jump_chance = 30,
|
jump_chance = 30,
|
||||||
jump_height = 6,
|
jump_height = 6,
|
||||||
armor = 100,
|
armor = 90,
|
||||||
view_range = 15,
|
view_range = 15,
|
||||||
drops = {
|
drops = {
|
||||||
{name = "tnt:gunpowder", chance = 4, min = 1, max = 2},
|
{name = "tnt:gunpowder", chance = 4, min = 1, max = 2},
|
||||||
@ -41,7 +43,7 @@ mobs:register_mob("slimes:lavasmall", {
|
|||||||
replace_rate = 20,
|
replace_rate = 20,
|
||||||
footstep = "fire:basic_flame",
|
footstep = "fire:basic_flame",
|
||||||
})
|
})
|
||||||
mobs:register_egg("slimes:lavasmall", "Small Lava Slime", "lava_slime_front.png", 0)
|
mobs:register_egg("slimes:lavasmall", "Small Lava Slime", "lava_slime_egg.png", 1)
|
||||||
|
|
||||||
-- register medium lava slime
|
-- register medium lava slime
|
||||||
mobs:register_mob("slimes:lavamedium", {
|
mobs:register_mob("slimes:lavamedium", {
|
||||||
@ -63,7 +65,7 @@ mobs:register_mob("slimes:lavamedium", {
|
|||||||
walk_chance = 0,
|
walk_chance = 0,
|
||||||
jump_chance = 30,
|
jump_chance = 30,
|
||||||
jump_height = 6,
|
jump_height = 6,
|
||||||
armor = 100,
|
armor = 90,
|
||||||
view_range = 15,
|
view_range = 15,
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
local num = math.random(2, 4)
|
local num = math.random(2, 4)
|
||||||
@ -78,7 +80,7 @@ mobs:register_mob("slimes:lavamedium", {
|
|||||||
replace_rate = 20,
|
replace_rate = 20,
|
||||||
footstep = "fire:basic_flame",
|
footstep = "fire:basic_flame",
|
||||||
})
|
})
|
||||||
mobs:register_egg("slimes:lavamedium", "Medium Lava Slime", "lava_slime_front.png", 0)
|
mobs:register_egg("slimes:lavamedium", "Medium Lava Slime", "lava_slime_egg.png", 1)
|
||||||
|
|
||||||
-- register big lava slime
|
-- register big lava slime
|
||||||
mobs:register_mob("slimes:lavabig", {
|
mobs:register_mob("slimes:lavabig", {
|
||||||
@ -100,7 +102,7 @@ mobs:register_mob("slimes:lavabig", {
|
|||||||
walk_chance = 0,
|
walk_chance = 0,
|
||||||
jump_chance = 30,
|
jump_chance = 30,
|
||||||
jump_height = 6,
|
jump_height = 6,
|
||||||
armor = 100,
|
armor = 90,
|
||||||
view_range = 15,
|
view_range = 15,
|
||||||
on_die = function(self, pos)
|
on_die = function(self, pos)
|
||||||
local num = math.random(1, 2)
|
local num = math.random(1, 2)
|
||||||
@ -116,7 +118,7 @@ mobs:register_mob("slimes:lavabig", {
|
|||||||
replace_offset = -1,
|
replace_offset = -1,
|
||||||
footstep = "fire:basic_flame",
|
footstep = "fire:basic_flame",
|
||||||
})
|
})
|
||||||
mobs:register_egg("slimes:lavabig", "Big Lava Slime", "lava_slime_front.png", 0)
|
mobs:register_egg("slimes:lavabig", "Big Lava Slime", "lava_slime_egg.png", 1)
|
||||||
|
|
||||||
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
|
--mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height)
|
||||||
|
|
||||||
|
@ -87,3 +87,4 @@ http://www.freesound.org/people/DrMinky/sounds/
|
|||||||
|
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
textures/green_slime_egg.png
Normal file
BIN
textures/green_slime_egg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
textures/jeija_glue.png
Normal file
BIN
textures/jeija_glue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 487 B |
BIN
textures/lava_slime_egg.png
Normal file
BIN
textures/lava_slime_egg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 874 B |
Loading…
Reference in New Issue
Block a user