Commit Graph

27 Commits

Author SHA1 Message Date
AntumDeluge
468d2a7a2a Make 'spawn_cap' local to 'spawn.lua' 2017-05-31 12:01:44 -07:00
AntumDeluge
73b221c13f Make 'spawn_maxlight' local to 'spawn.lua' 2017-05-31 11:57:20 -07:00
AntumDeluge
2b0871207f Change 'spawn_interval' default to 2 minutes (120) 2017-05-29 02:57:56 -07:00
AntumDeluge
6605ac1545 Change 'spawn_chance' default to '2' (1/2 or 50%) 2017-05-29 02:57:06 -07:00
AntumDeluge
822d73920d Add more debugging output 2017-05-29 02:55:13 -07:00
AntumDeluge
b7f0f34a41 Fix finding number of active entities in world 2017-05-29 02:54:14 -07:00
AntumDeluge
84f51c893b Don't set local 'spawnit' 2017-05-29 02:53:20 -07:00
AntumDeluge
85e849767f Add method 'sneeker.get_pos_string':
Returns x, y, z coordinates in a string.
2017-05-29 02:49:02 -07:00
AntumDeluge
8485715aba Add debugging output in case of denied spawn 2017-05-29 01:44:06 -07:00
AntumDeluge
ea60b5fe9b Fix global name:
- 'sneeker' not 'sneaker'
2017-05-29 01:29:08 -07:00
AntumDeluge
2ddc96de06 Minor edit to log message 2017-05-29 01:25:51 -07:00
AntumDeluge
a2ce6cfea8 Changes to 'sneeker.log' method:
Only log message if minetest setting 'log_mods' is 'true'.
2017-05-29 01:25:28 -07:00
AntumDeluge
0ad9f2bd2a Put node light in local variable & add debugging output 2017-05-29 01:01:14 -07:00
AntumDeluge
05019c9d7d Use setting 'sneeker.spawn_maxlight' to determine node light for spawn 2017-05-29 01:00:39 -07:00
AntumDeluge
1dc5b92314 Add method 'sneaker.spawn' to spawn entity 2017-05-29 00:58:55 -07:00
AntumDeluge
d336800b35 Do not spawn if spawn cap is reached 2017-05-29 00:14:26 -07:00
AntumDeluge
398971d08c Put mob & spawnegg names in 'sneeker' attributes 2017-05-29 00:06:18 -07:00
AntumDeluge
9d7c566fdb Change settings naming convention from 'sneeker_*' to 'sneeker.*' 2017-05-28 18:32:29 -07:00
AntumDeluge
b5c7aeb15d Re-label to 'sneeker' 2017-05-27 19:54:26 -07:00
AntumDeluge
3f835fa65d Add logging messages 2017-05-27 19:15:23 -07:00
AntumDeluge
46a23df877 Change spawn rate:
- Use settings file to set 'chance' & 'interval'
- Set spawn chance to 1/18000 (18000)
- Set spawn interval to 40 minutes (2400)
2017-05-27 19:13:47 -07:00
AntumDeluge
930d52cb3d Remove unnecessary variable 'time_sec' 2017-05-27 19:07:41 -07:00
AntumDeluge
b8a2e98ea0 Set license for new code as CC0 2017-05-27 17:36:45 -07:00
AntumDeluge
e8a37511ea Replace double-quoted strings with single-quoted 2017-05-27 17:26:10 -07:00
AntumDeluge
83c26a3a41 Relabel to 'sneaker' 2017-05-27 17:23:59 -07:00
AntumDeluge
299b12b5a4 Run spawn function every 20 minutes 2017-05-15 15:23:18 -07:00
AntumDeluge
1da3049808 Add Rui's creeper mod code:
Forked from Git commit 036666e. Original repo & forum thread appear to
have been deleted.
2017-05-15 15:21:03 -07:00