Jordan Irwin
ae9c9c32dc
Add more nodes to spawn on
2021-05-06 21:40:37 -07:00
Jordan Irwin
9046b0fad7
Begin porting to creatures (cmer) mob engine
2021-05-06 21:40:05 -07:00
Jordan Irwin
ff01e876f5
Change default settings
2021-05-06 21:35:00 -07:00
Jordan Irwin
da35fb58ac
Cleanup
2021-05-06 21:34:38 -07:00
Jordan Irwin
4db155bd9b
Move all settings values into settings.lua
2021-05-06 21:30:26 -07:00
Jordan Irwin
428b88bdda
Cleanup logging
2021-05-06 21:28:05 -07:00
Jordan Irwin
2603c721d2
Use asm_spawneggs to create egg
2021-05-06 21:16:44 -07:00
Jordan Irwin
592e247c1c
Spawn on nether:rack if nether mod available
2021-05-06 21:11:18 -07:00
Jordan Irwin
a4d47e7e6b
Remove WTFPL license
2021-05-06 21:03:18 -07:00
AntumDeluge
9739add50c
Set default max light for spawn to 4
2021-05-06 21:03:01 -07:00
AntumDeluge
5eb1de1627
Add settings & set max/min height for spawning:
...
- sneeker.spawn_minlight
- Sets the minimum light required for spawn to occur.
- sneeker.spawn_minheight
- Sets the lowest position at which sneeker can spawn.
- sneeker.spawn_maxheight
- Sets the highest position at which sneeker can spawn.
2021-05-06 21:01:40 -07:00
AntumDeluge
3497f917f9
Call 'core.*' instead of 'minetest.*'
2021-05-06 20:54:51 -07:00
AntumDeluge
88794f7a8f
settings: Use 'enable_debug_mods' instead of 'sneeker.debug'
2021-05-06 20:51:49 -07:00
AntumDeluge
6b94bef75e
User alternate message if spawn chance is less than 1%
2021-05-06 20:49:38 -07:00
AntumDeluge
394465e515
Fix 'spawn_cap'
2021-05-06 20:45:58 -07:00
AntumDeluge
a003553309
Set default maximum spawn to 10
2021-05-06 20:42:51 -07:00
AntumDeluge
3f12094bdf
Lower spawn rate & chance
2021-05-06 20:41:42 -07:00
AntumDeluge
f26ca5c2b9
Make 'spawn_cap' local to 'spawn.lua'
2021-05-06 20:39:02 -07:00
AntumDeluge
87dec04c58
Make 'spawn_maxlight' local to 'spawn.lua'
2021-05-06 20:34:18 -07:00
AntumDeluge
41bf1ae241
Set 'spawn_maxlight' to 5 for lower spawn rate
2021-05-06 20:29:43 -07:00
AntumDeluge
b271747df7
Change 'spawn_maxlight' default value to '7'
2021-05-06 20:26:20 -07:00
AntumDeluge
d12f80d1f3
Change 'spawn_interval' default to 2 minutes (120)
2021-05-06 20:25:17 -07:00
AntumDeluge
1d9c2ed3c5
Change 'spawn_chance' default to '2' (1/2 or 50%)
2021-05-06 20:23:44 -07:00
AntumDeluge
e96d9da420
Add more debugging output
2021-05-06 20:21:40 -07:00
AntumDeluge
6b8a1b7f82
Fix finding number of active entities in world
2021-05-06 20:19:08 -07:00
AntumDeluge
da60a0f9ab
Don't set local 'spawnit'
2021-05-06 20:18:43 -07:00
AntumDeluge
fe42ca01db
Add method 'sneeker.get_pos_string':
...
Returns x, y, z coordinates in a string.
2021-05-06 20:14:21 -07:00
AntumDeluge
21d78e0b65
Add debugging output in case of denied spawn
2021-05-06 20:03:37 -07:00
AntumDeluge
3a3de549bf
Fix global name:
...
- 'sneeker' not 'sneaker'
2021-05-06 19:59:49 -07:00
AntumDeluge
58b239b4ae
Minor edit to log message
2021-05-06 19:57:26 -07:00
AntumDeluge
c905656ec8
Changes to 'sneeker.log' method:
...
Only log message if minetest setting 'log_mods' is 'true'.
2021-05-06 19:56:00 -07:00
AntumDeluge
ea3ab21024
Change debug message in 'sneeker.log_debug'
2021-05-06 19:48:48 -07:00
AntumDeluge
23477fb85f
Add debug message to display in log when turned on
2021-05-06 19:48:29 -07:00
AntumDeluge
a73dc9aa39
Put node light in local variable & add debugging output
2021-05-06 19:46:51 -07:00
AntumDeluge
a5025cdfb8
Use setting 'sneeker.spawn_maxlight' to determine node light for spawn
2021-05-06 19:44:49 -07:00
AntumDeluge
439646417a
Add method 'sneaker.spawn' to spawn entity
2021-05-06 19:42:16 -07:00
AntumDeluge
1f04669a68
Do not spawn if spawn cap is reached
2021-05-06 19:42:16 -07:00
AntumDeluge
05670a46c7
Put mob & spawnegg names in 'sneeker' attributes
2021-05-06 19:41:57 -07:00
AntumDeluge
af4f5219f1
Set spawn cap at 25
2021-05-06 19:35:02 -07:00
AntumDeluge
43bfded8b2
Change settings naming convention from 'sneeker_*' to 'sneeker.*'
2021-05-06 19:33:34 -07:00
AntumDeluge
517c7afd06
Re-label to 'sneeker'
2021-05-06 19:31:05 -07:00
AntumDeluge
40f0c24552
Move settings variables & functions:
...
- Settings to 'settings.lua'
- Functions to 'functions.lua'
2021-05-06 19:24:36 -07:00
AntumDeluge
e2badd6a6f
Add debugging setting & log method
2021-05-06 19:18:37 -07:00
AntumDeluge
58d9d44c35
Add logging messages
2021-05-06 19:13:35 -07:00
AntumDeluge
3d06833867
settingtypes.txt: Add 'sneaker_spawn_cap'
2021-05-06 19:08:46 -07:00
AntumDeluge
0b7e8b89c6
Change spawn rate:
...
- Use settings file to set 'chance' & 'interval'
- Set spawn chance to 1/18000 (18000)
- Set spawn interval to 40 minutes (2400)
2021-05-06 19:08:27 -07:00
AntumDeluge
beaff3d886
Add variable 'sneaker.spawn_cap':
...
Will set maximun number of sneakers that can be spawned in world at one
time.
2021-05-06 19:03:24 -07:00
AntumDeluge
a52acac435
Remove unnecessary variable 'time_sec'
2021-05-06 19:00:40 -07:00
AntumDeluge
c0a53e2340
Add 'sneaker.log' method
2021-05-06 19:00:17 -07:00
AntumDeluge
f838db1cef
Set license for new code as CC0
2021-05-06 18:57:53 -07:00