by LodeRunner » Mon Nov 17, 2014 04:18
Folks,
I have a few questions about how this mod is implemented. I've been trying to tweak a few items to better suit my singleplayer design, but being new to MT/MC and lua, I'm in need of some assistance.
1a) After looking at the lua files for various mobs, I'm trying to understand the numbers in this line (tweaked by me):
"mobs:register_spawn("mobs:dungeon_master", {"default:stone"}, 2, -1, 7000, 1, -100)"
I know that the last value is the level below sea level where the mob will spawn, no higher. I know that one of them has to do with the light level--I think it's the "-1", but I could be wrong. What I'm wanting to do is control the light level at which various mobs will spawn. I tried the SimpleMobs++ mod, but I had Dungeon Masters spawning above ground and INSIDE my base in the middle of the day! Why have a base with doors on it if this can happen?
1b) If the "-1" is the light level, what does this value represent? I thought the values for light ranged from 1 to 15? Is this a special value for, say, "any light level"?
1c) Does the relative placement of the light source have any impact on the spawning potential? In MC, there was some mention at one point about placing torches on the FLOOR, not walls, as mobs only spawned on the floor. By maximizing the intensity of light on the floor itself, you could more effectively prevent mob spawning in highly-enclosed areas like tight caverns. What controls the actual spawning conditions and where is that stored--in the line that I quoted above, or somewhere else, or both?
2) Can non-flying mobs climb ladders, or is this an effective barrier to them? I only play singleplayer right now, so no other players are present.
3) Assuming the answer to Question #2 is "no, they cannot climb", then what is the use for trapdoors in singleplayer mode? Purely aesthetics?
4) Is there a way to have hostile mobs attack each other, similar to what happens with skeletons in MC? I'd like to have this as a possibility.
Thanks for any information you can provide, and please be patient. I'm still learning both minetest and lua.
LodeRunner
Wait...didn't I just explore this cavern?