Page 1 of 1

[Mod] Bad Terrain [bad_terrain]

Posted: Wed Jul 26, 2017 05:12
by duane
This mod damages players when they stand on dangerous terrain. Anything with the "surface_hot" or "poison" group set will cause damage every three seconds. The surface_cold group will cause damage more slowly. Players are informed in chat when they take damage from nodes. Ice and snow are automatically added to the surface_cold group.

It also provides support for traps set off by a player coming too close. A trap node must have two groups set, the "trap" group and a group specific for the trap type, including:

electricity_trap
explosive_trap (my favorite)
fire_trap
ice_trap (entombs the player)
lava_trap (set this in a low ceiling)
slippery_floor_trap

This is mostly support for my other mods, but you might want to play with it.


The source is available on github.

Code: LGPL2
Textures: CC0

Mod dependencies: default

Download: https://github.com/duane-r/bad_terrain/ ... master.zip

Problems

Posted: Wed Jul 26, 2017 05:12
by duane
None so far

Re: [Mod] Bad Terrain [bad_terrain]

Posted: Sat Jan 06, 2018 10:58
by azekill_DIABLO
hey, why no one saw this :D

it's excellent!

Re: [Mod] Bad Terrain [bad_terrain]

Posted: Wed Oct 09, 2019 16:11
by Skamiz Kazzarch
Trying to remake your setup described in your mapgen mod thread and got the error that dinv is a null variable on line 192. An optional dependency on dinv fixed it.

Re: [Mod] Bad Terrain [bad_terrain]

Posted: Thu Oct 10, 2019 01:39
by duane
Skamiz Kazzarch wrote:Trying to remake your setup described in your mapgen mod thread and got the error that dinv is a null variable on line 192. An optional dependency on dinv fixed it.
Thanks. I've added that.