new mod: glow_slimes

This commit is contained in:
Sergei Mozhaisky 2020-11-07 18:09:50 +01:00
parent 6d88999923
commit b1109922fc
22 changed files with 610 additions and 0 deletions

View File

@ -0,0 +1,2 @@
License for code GNU GPL
License for media (Sounds, textures, models) Creative Commons Attribution-ShareAlike 4.0 <https://creativecommons.org/licenses/by-sa/4.0/legalcode>

View File

@ -0,0 +1,7 @@
Glow Slimes mod by Irremann
based on mod tmw_slimes by Piezo_
Mod adds blue (ocean) slime, green, yellow, orange, pink and ice slime. Slimes spawned in caves and stain everything around with glowing phlegm.
if you kill a slime, then you will get some coins (currency mod) and dyes (dye mod).
The stone covered with mucus is suitable for growing plants. Of course you need light and water as usual.

View File

@ -0,0 +1,4 @@
mobs
default
currency
dye

View File

@ -0,0 +1,458 @@
mobs:register_mob("glow_slimes:ice_slime", {
light_source = LIGHT_MAX,
group_attack = true,
type = "animal",
passive = false,
attack_type = "dogfight",
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 16,
hp_max = 20,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.4, 0.2},
visual_size = {x = 2, y = 2},
visual = "mesh",
mesh = "slime_liquid.b3d",
blood_texture = "tmw_slime_goo.png^[colorize:#DFF:190]",
textures = {
{"tmw_slime_goo_block.png^[colorize:#DFF:190","tmw_slime_goo_block.png^[colorize:#DFF:190^[colorize:#FFF:96"},
},
makes_footstep_sound = false,
walk_velocity = 0.5,
run_velocity = 1.25,
view_range = 15,
drops = {
{name = 'currency:minegeld_cent_5', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_10', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_25', chance = 5, min = 0, max = 1},
{name = 'default:snow', chance = 5, min = 0, max = 1},
},
water_damage = 0,
lava_damage = 10,
light_damage = 2,
replace_rate = 2,
replace_what = {
{"air", "default:snowblock", 0},
{"air", "default:ice", 0},
{"air", "glow_slimes:ice_crystal", 0},
},
animation = {
idle_start = 0,
idle_end = 19,
move_start = 21,
move_end = 41,
fall_start = 42,
fall_end = 62,
jump_start = 63,
jump_end = 83
},
on_rightclick = function(self, clicker)
if mobs:capture_mob(self, clicker, 30, 50, 80, true, "glow_slimes:ice_slime") then return end
end,
})
mobs:register_mob("glow_slimes:blue_slime", {
group_attack = true,
type = "animal",
passive = false,
attack_type = "dogfight",
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 16,
hp_max = 20,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.4, 0.2},
visual_size = {x = 2, y = 2},
visual = "mesh",
mesh = "slime_liquid.b3d",
blood_texture = "tmw_slime_goo.png^[colorize:#00F:190]",
textures = {
{"tmw_slime_goo_block.png^[colorize:#00F:190","tmw_slime_goo_block.png^[colorize:#00F:190^[colorize:#FFF:96"},
},
makes_footstep_sound = false,
view_range = 15,
walk_velocity = 0.5,
run_velocity = 4,
view_range = 48, --This thing will chase you all the way to shore.
fly = true,
fly_in = {"default:water_source", "default:water_flowing", "default:river_water_source", "default:river_water_flowing"},
drops = {
{name = 'currency:minegeld_cent_5', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_10', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_25', chance = 5, min = 0, max = 1},
{name = 'dye:blue', chance = 5, min = 0, max = 1},
{name = 'dye:cyan', chance = 5, min = 0, max = 1},
},
water_damage = 0,
lava_damage = 10,
light_damage = 0,
animation = {
idle_start = 0,
idle_end = 19,
move_start = 21,
move_end = 41,
fall_start = 42,
fall_end = 62,
jump_start = 63,
jump_end = 83
},
on_rightclick = function(self, clicker)
if mobs:capture_mob(self, clicker, 30, 50, 80, true, "glow_slimes:blue_slime") then return end
end,
})
mobs:register_mob("glow_slimes:green_slime", {
light_source = LIGHT_MAX,
group_attack = true,
type = "animal",
passive = false,
attack_type = "dogfight",
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 16,
hp_max = 20,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.4, 0.2},
visual_size = {x = 2, y = 2},
visual = "mesh",
mesh = "slime_liquid.b3d",
blood_texture = "tmw_slime_goo.png^[colorize:#0F0:190]",
textures = {
{"tmw_slime_goo_block.png^[colorize:#0F0:190","tmw_slime_goo_block.png^[colorize:#0F0:190^[colorize:#FFF:96"},
},
makes_footstep_sound = false,
walk_velocity = 0.5,
run_velocity = 1.25,
jump_height = 7,
jump = true,
view_range = 15,
drops = {
{name = 'currency:minegeld_cent_5', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_10', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_25', chance = 5, min = 0, max = 1},
{name = 'dye:green', chance = 5, min = 0, max = 1},
},
water_damage = 0,
lava_damage = 10,
light_damage = 2,
replace_rate = 2,
replace_what = {
{"default:stone", "glow_slimes:stone_with_green_slime", -1},
{"default:cobble", "glow_slimes:stone_with_green_slime", -1},
},
animation = {
idle_start = 0,
idle_end = 19,
move_start = 21,
move_end = 41,
fall_start = 42,
fall_end = 62,
jump_start = 63,
jump_end = 83
},
on_rightclick = function(self, clicker)
if mobs:capture_mob(self, clicker, 30, 50, 80, true, "glow_slimes:green_slime") then return end
end,
})
mobs:register_mob("glow_slimes:pink_slime", {
light_source = LIGHT_MAX,
group_attack = true,
type = "animal",
passive = false,
attack_type = "dogfight",
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 30,
hp_max = 50,
armor = 100,
collisionbox = {-0.1, -0.01, -0.1, 0.1, 0.2, 0.1},
visual_size = {x = 1, y = 1},
visual = "mesh",
mesh = "slime_liquid.b3d",
blood_texture = "tmw_slime_goo.png^[colorize:#F7B:190]",
textures = {
{"tmw_slime_goo_block.png^[colorize:#F7B:190","tmw_slime_goo_block.png^[colorize:#F7B:190^[colorize:#FFF:96"},
},
makes_footstep_sound = false,
walk_velocity = 1.5,
run_velocity = 2.25,
jump_height = 20,
jump = true,
view_range = 15,
drops = {
{name = 'default:gold_lump', chance = 25, min = 0, max = 10},
{name = 'default:diamond', chance = 25, min = 0, max = 2},
{name = 'default:pick_diamond', chance = 5, min = 0, max = 1},
{name = 'default:axe_diamond', chance = 5, min = 0, max = 1},
{name = 'dye:pink', chance = 5, min = 0, max = 1},
},
water_damage = 0,
lava_damage = 10,
light_damage = 0,
-- replace_rate = 2,
-- replace_what = {
-- {"default:stone", "glow_slimes:stone_with_yellow_slime", -1},
-- {"default:cobble", "glow_slimes:stone_with_yellow_slime", -1},
-- },
animation = {
idle_start = 0,
idle_end = 19,
move_start = 21,
move_end = 41,
fall_start = 42,
fall_end = 62,
jump_start = 63,
jump_end = 83
},
on_rightclick = function(self, clicker)
if mobs:capture_mob(self, clicker, 30, 50, 80, true, "glow_slimes:pink_slime") then return end
end,
})
mobs:register_mob("glow_slimes:yellow_slime", {
light_source = LIGHT_MAX,
group_attack = true,
type = "animal",
passive = false,
attack_type = "dogfight",
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 16,
hp_max = 20,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.4, 0.2},
visual_size = {x = 2, y = 2},
visual = "mesh",
mesh = "slime_liquid.b3d",
blood_texture = "tmw_slime_goo.png^[colorize:#FF0:190]",
textures = {
{"tmw_slime_goo_block.png^[colorize:#FF0:190","tmw_slime_goo_block.png^[colorize:#FF0:190^[colorize:#FFF:96"},
},
makes_footstep_sound = false,
walk_velocity = 0.5,
run_velocity = 1.25,
jump_height = 7,
jump = true,
view_range = 15,
drops = {
{name = 'currency:minegeld_cent_5', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_10', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_25', chance = 5, min = 0, max = 1},
{name = 'dye:orange', chance = 5, min = 0, max = 1},
{name = 'dye:white', chance = 5, min = 0, max = 1},
},
water_damage = 0,
lava_damage = 0,
light_damage = 2,
replace_rate = 2,
replace_what = {
{"default:stone", "glow_slimes:stone_with_yellow_slime", -1},
{"default:cobble", "glow_slimes:stone_with_yellow_slime", -1},
},
animation = {
idle_start = 0,
idle_end = 19,
move_start = 21,
move_end = 41,
fall_start = 42,
fall_end = 62,
jump_start = 63,
jump_end = 83
},
on_rightclick = function(self, clicker)
if mobs:capture_mob(self, clicker, 30, 50, 80, true, "glow_slimes:yellow_slime") then return end
end,
})
mobs:register_mob("glow_slimes:orange_slime", {
light_source = LIGHT_MAX,
group_attack = true,
type = "animal",
passive = false,
attack_type = "dogfight",
pathfinding = 1,
damage = 2,
reach = 2,
hp_min = 16,
hp_max = 20,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.4, 0.2},
visual_size = {x = 2, y = 2},
visual = "mesh",
mesh = "slime_liquid.b3d",
blood_texture = "tmw_slime_goo.png^[colorize:#F80:190]",
textures = {
{"tmw_slime_goo_block.png^[colorize:#F80:190","tmw_slime_goo_block.png^[colorize:#F80:190^[colorize:#FFF:96"},
},
makes_footstep_sound = false,
walk_velocity = 0.5,
run_velocity = 1.25,
jump_height = 7,
jump = true,
view_range = 15,
drops = {
{name = 'currency:minegeld_cent_5', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_10', chance = 5, min = 0, max = 1},
{name = 'currency:minegeld_cent_25', chance = 5, min = 0, max = 1},
{name = 'dye:orange', chance = 5, min = 0, max = 1},
{name = 'dye:white', chance = 5, min = 0, max = 1},
},
water_damage = 0,
lava_damage = 0,
light_damage = 2,
replace_rate = 2,
replace_what = {
{"default:stone", "glow_slimes:stone_with_yellow_slime", -1},
{"default:cobble", "glow_slimes:stone_with_yellow_slime", -1},
},
animation = {
idle_start = 0,
idle_end = 19,
move_start = 21,
move_end = 41,
fall_start = 42,
fall_end = 62,
jump_start = 63,
jump_end = 83
},
on_rightclick = function(self, clicker)
if mobs:capture_mob(self, clicker, 30, 50, 80, true, "glow_slimes:orange_slime") then return end
end,
})
minetest.registered_entities["glow_slimes:ice_slime"].glow = 10
minetest.registered_entities["glow_slimes:blue_slime"].glow = 10
minetest.registered_entities["glow_slimes:green_slime"].glow = 10
minetest.registered_entities["glow_slimes:pink_slime"].glow = 10
minetest.registered_entities["glow_slimes:yellow_slime"].glow = 10
minetest.registered_entities["glow_slimes:orange_slime"].glow = 10
mobs:register_egg("glow_slimes:ice_slime", "Ice Slime", "tmw_slime_inventory.png^[colorize:#DFF:190", 0)
mobs:register_egg("glow_slimes:blue_slime", "Blue Slime", "tmw_slime_inventory.png^[colorize:#00F:190", 0)
mobs:register_egg("glow_slimes:green_slime", "Green Slime", "tmw_slime_inventory.png^[colorize:#0F0:190", 0)
mobs:register_egg("glow_slimes:pink_slime", "Pink Slime", "tmw_slime_inventory.png^[colorize:#F7B:190", 0)
mobs:register_egg("glow_slimes:yellow_slime", "Yellow Slime", "tmw_slime_inventory.png^[colorize:#FF0:190", 0)
mobs:register_egg("glow_slimes:orange_slime", "Orange Slime", "tmw_slime_inventory.png^[colorize:#F80:190", 0)
minetest.register_node("glow_slimes:stone_with_yellow_slime", {
description = "Stone with yellow slime",
tiles = {
"stone_with_yellow_slime_top.png",
"default_cobble.png",
"stone_with_yellow_slime_side.png",
"stone_with_yellow_slime_side.png",
"stone_with_yellow_slime_side.png",
"stone_with_yellow_slime_side.png",
},
light_source = 6,
groups = {cracky=2, slippery = 3, soil = 3, field = 1, wet = 1},
sounds = default.node_sound_stone_defaults(),
drop = {
max_items = 2,
items = {
{items = {'default:cobble'}},
{items = {'dye:yellow'},rarity = 3},
{items = {'dye:orange'},rarity = 3},
{items = {'dye:white'},rarity = 3},
}
},
})
minetest.register_node("glow_slimes:stone_with_green_slime", {
description = "Stone with green slime",
tiles = {
"stone_with_green_slime_top.png",
"default_cobble.png",
"stone_with_green_slime_side.png",
"stone_with_green_slime_side.png",
"stone_with_green_slime_side.png",
"stone_with_green_slime_side.png",
},
light_source = 6,
groups = {cracky=2, slippery = 3, soil = 3, field = 1, wet = 1},
sounds = default.node_sound_stone_defaults(),
drop = {
max_items = 2,
items = {
{items = {'default:cobble'}},
{items = {'dye:green'},rarity = 3},
}
},
})
minetest.register_node("glow_slimes:ice_crystal", {
description = "Ice Crystal",
tiles = {"default_ice.png"},
groups = {cracky = 2, falling_node = 1},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "underch_crystal.obj",
light_source = 6,
is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "default:ice 4",
type = "shapeless",
recipe = {"glow_slimes:ice_crystal"}
})
minetest.register_alias("glow_slimes:stone_with_yellow_slime", "farming:soil_wet")
minetest.register_alias("glow_slimes:stone_with_green_slime", "farming:soil_wet")
mobs:spawn({
name = "glow_slimes:ice_slime",
nodes = {"default:stone", "default:cobble", "default:snowblock", "default:ice"},
interval = 30,
chance = 25000,
max_height = -15000,
})
mobs:spawn({
name = "glow_slimes:blue_slime",
nodes = {"default:water_source", "default:river_water_source", "default:sand"},
neighbors = {"default:water_flowing","default:water_source"},
interval = 30,
chance = 25000,
max_height = -5,
})
mobs:spawn({
name = "glow_slimes:green_slime",
nodes = {"default:stone", "default:cobble", "glow_slimes:stone_with_green_slime"},
interval = 30,
chance = 6000,
max_height = -40,
})
mobs:spawn({
name = "glow_slimes:pink_slime",
nodes = {"default:stone", "default:cobble", "glow_slimes:stone_with_yellow_slime"},
interval = 30,
chance = 3000,
max_height = -250,
})
mobs:spawn({
name = "glow_slimes:yellow_slime",
nodes = {"default:stone", "default:cobble", "glow_slimes:stone_with_yellow_slime"},
interval = 30,
chance = 6000,
max_height = -1000,
})
mobs:spawn({
name = "glow_slimes:orange_slime",
nodes = {"default:stone", "default:cobble", "glow_slimes:stone_with_yellow_slime"},
interval = 30,
chance = 6000,
max_height = -2000,
})

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,32 @@
# Blender MTL File: 'crystal.blend'
# Material Count: 3
newmtl Material
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
newmtl Material.001
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
newmtl Material.002
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View File

@ -0,0 +1,107 @@
# Blender v2.76 (sub 0) OBJ File: 'crystal.blend'
# www.blender.org
mtllib underch_crystal.mtl
o Cube.001
v 0.172286 -0.548977 -0.222058
v 0.165892 -0.528919 0.010751
v -0.065309 -0.563236 0.007358
v -0.058916 -0.583294 -0.225451
v 0.179327 0.201377 -0.503659
v 0.171710 0.225272 -0.226315
v -0.103720 0.184391 -0.230357
v -0.096103 0.160496 -0.507701
v 0.007959 0.394590 -0.413866
v -0.238829 -0.557870 -0.066808
v -0.011182 -0.528529 -0.111069
v 0.036394 -0.554673 0.116299
v -0.191253 -0.584014 0.160560
v -0.549483 0.180196 -0.033148
v -0.278287 0.215150 -0.085875
v -0.221610 0.184005 0.184988
v -0.492806 0.149051 0.237716
v -0.434139 0.382762 0.109765
v 0.032617 -0.584181 0.104827
v -0.156722 -0.543012 -0.025937
v -0.021474 -0.523372 -0.215584
v 0.167865 -0.564541 -0.084819
v 0.215590 0.116995 0.447251
v -0.009969 0.166039 0.291472
v 0.151151 0.189436 0.065547
v 0.376709 0.140392 0.221326
v 0.226702 0.351514 0.307113
vt 0.500000 0.250000
vt 0.250000 0.250000
vt 0.250000 -0.000000
vt 0.500000 -0.000000
vt 0.750000 0.750000
vt 1.000000 0.750000
vt 0.875000 1.000000
vt 1.000000 -0.000000
vt 0.750000 0.000000
vt 0.500000 0.750000
vt 0.250000 0.750000
vt 0.000000 0.750000
vt 0.000000 -0.000000
vt 0.125000 1.000000
vt 0.375000 1.000000
vt 0.625000 1.000000
vt 0.000000 0.250000
vt 0.750000 0.250000
vn 0.100900 -0.985800 -0.134500
vn -0.225200 0.644000 -0.731100
vn -0.186600 -0.033700 -0.981900
vn 0.928000 0.338600 -0.155300
vn 0.193700 -0.023500 0.980800
vn -0.909500 -0.389400 0.145500
vn -0.906600 0.353700 0.230400
vn 0.113100 0.455200 0.883200
vn 0.693400 0.717800 -0.062600
vn 0.145000 -0.985400 0.088900
vn 0.738800 0.672800 -0.037700
vn 0.999600 0.000900 0.027400
vn -0.058500 0.299800 0.952200
vn -0.998000 -0.058400 -0.022400
vn 0.065800 -0.351100 -0.934000
vn -0.044200 0.388600 -0.920400
vn -0.902700 0.425900 -0.061500
vn -0.112500 0.686700 0.718200
vn -0.095900 -0.980800 -0.169900
vn -0.426000 0.478900 0.767600
vn -0.586400 -0.226800 0.777700
vn -0.769200 0.386900 -0.508500
vn 0.584800 0.171100 -0.792900
vn 0.753200 -0.436800 0.491900
vn 0.759600 0.306700 0.573500
vn 0.534200 0.615200 -0.579800
vn -0.569200 0.754000 -0.327900
usemtl Material.001
s off
f 10/1/1 11/2/1 12/3/1 13/4/1
f 15/5/2 14/6/2 18/7/2
f 10/8/3 14/6/3 15/5/3 11/9/3
f 11/9/4 15/5/4 16/10/4 12/4/4
f 12/4/5 16/10/5 17/11/5 13/3/5
f 14/12/6 10/13/6 13/3/6 17/11/6
f 14/12/7 17/11/7 18/14/7
f 17/11/8 16/10/8 18/15/8
f 16/10/9 15/5/9 18/16/9
usemtl Material
f 1/17/10 2/13/10 3/3/10 4/2/10
f 6/10/11 5/5/11 9/16/11
f 1/9/12 5/5/12 6/10/12 2/4/12
f 2/4/13 6/10/13 7/11/13 3/3/13
f 3/3/14 7/11/14 8/12/14 4/13/14
f 5/5/15 1/9/15 4/8/15 8/6/15
f 5/5/16 8/6/16 9/7/16
f 8/12/17 7/11/17 9/14/17
f 7/11/18 6/10/18 9/15/18
usemtl Material.002
f 19/4/19 20/9/19 21/18/19 22/1/19
f 24/5/20 23/6/20 27/7/20
f 19/8/21 23/6/21 24/5/21 20/9/21
f 20/9/22 24/5/22 25/10/22 21/4/22
f 21/4/23 25/10/23 26/11/23 22/3/23
f 23/12/24 19/13/24 22/3/24 26/11/24
f 23/12/25 26/11/25 27/14/25
f 26/11/26 25/10/26 27/15/26
f 25/10/27 24/5/27 27/16/27

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 833 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B