67 Commits

Author SHA1 Message Date
paramat
ce609f9e68 Liquids: Flow into and destroy 'floodable' nodes
Add new node property 'floodable', default false
Define "air" as floodable = true in C++ and lua
2016-01-07 05:57:19 +00:00
HybridDog
907dfc9317 Fix missing localization for obj 2015-12-20 16:25:33 +01:00
Alex Ford
3d8a7bc124 Add on_secondary_use when right clicking an item in the air 2015-12-02 02:18:44 +00:00
Robert Zenz
06dcc1cf5e Simplify regex used in check_modname_prefix and other improvements.
Simplified the regex used, added comments and changed the error message
to contain the correct mod name.
2015-11-24 01:49:59 +01:00
Rui
1c53992d19 Log static_spawn error only once 2015-11-21 00:13:28 +01:00
Robert Zenz
5177c073c0 Add the player name to dropped items
The player name is now added in the field "dropped_by" on the created
entity.
2015-11-12 00:47:11 +01:00
kwolekr
897caf3178 Improve LuaVoxelManip documentation 2015-11-07 11:59:24 -05:00
kwolekr
4072700558 Add callback parameter for core.emerge_area() 2015-11-02 18:43:09 -05:00
Rui914
f4e29e66bb minetest. to core. 2015-10-31 02:28:06 +01:00
BlockMen
b966a46591 Check if hitter has inventory when punching item
Fixes #3280
2015-10-25 18:15:31 +01:00
Robert Zenz
b52fd16e28 Add more ways to pass data to check_player_privs
The callback can now be invoked with either the player object or name as
the first parameter, and with either a table or a list of strings, like
this:

    minetest.check_player_privs(player_name, { shout = true, fly = true })
    minetest.check_player_privs(player_name, "shout", "fly")
    minetest.check_player_privs(player, { shout = true, fly = true })
    minetest.check_player_privs(player, "shout", "fly")
2015-10-22 19:55:48 +02:00
ShadowNinja
677ab7463d Refactor logging
- Add warning log level
- Change debug_log_level setting to enumeration string
- Map Irrlicht log events to MT log events
- Encapsulate log_* functions and global variables into a class, Logger
- Unify dstream with standard logging mechanism
- Unify core.debug() with standard core.log() script API
2015-10-14 01:03:54 -04:00
Rui
8a77a994bb Localize digprop_err function 2015-10-12 02:05:11 +02:00
Fernando Carmona Varo
a9b58d826c Added minetest.wallmounted_to_dir 2015-10-04 03:19:18 +02:00
est31
2a2707e629 Some map border related fixes
1. Check for entity addition success in spawn_item implementation
2. Check for success in item_drop callback, so that the player
doesn't lose the item if they are outside bounds and try to drop it.
3. When existing player joins game, check that their position is inside
map bounds. If not, set their position to the return value of findSpawnPos().
4. Make findSpawnPos() respect the border

2 fixes a lua crash if a player drops an item outside map bounds.
3 fixes an assertion crash if a player leaves when being outside map bounds,
and then rejoins.
2015-09-29 23:06:15 +02:00
kwolekr
23316c9f92 Add /emergeblocks command and core.emerge_area() Lua API 2015-09-23 15:56:24 -04:00
Rui
394dc38650 Small fixes of minetest.has_feature 2015-09-03 06:10:17 +02:00
Rui
c55c7875b4 Minor tweaks __builtin:falling_node 2015-09-01 19:14:08 +02:00
kwolekr
2fb4917d8e SAPI: Track last executed mod and include in error messages 2015-08-12 23:56:12 -04:00
Marcin
7527fea2ae Add ability to specify coordinates for /spawnentity 2015-07-18 08:35:36 +02:00
Craig Davison
e49c838c0b Remove reference to deprecated privilege 2015-06-14 23:53:30 +02:00
TeTpaAka
14b9820f48 Add minetest.register_on_player_hpchange 2015-06-13 19:40:31 +02:00
HybridDog
d4f46baafa Decrease minetest.after globalstep lag
* abort if theres no active timer
* only reduce the timer.time of all timers when its necessary
* move updating timers_to_add into a seperate function
2015-06-06 21:00:38 +02:00
est31
51c32c262f Nicer time setting logging
Now logs

ACTION[ServerThread]: player sets time to 6:03

instead of

ACTION[ServerThread]: player sets time to 6:3
2015-06-02 06:49:05 +02:00
LeMagnesium
6aecfb8151 Added hour:minute format to time command
* The time command now accepts parameters in the form <hour>:<minute>,
    and if invoked with no parameters returns the current time in said format.
2015-05-16 18:15:34 -04:00
Brandon
aeaeed77e7 Add minetest.register_on_punchplayer 2015-05-15 11:09:55 +02:00
tenplus1
7f61ce3ca2 Don't crash if an item gets dropped into unloaded space
Items dropped into unloaded map space will crash game so here's a fix...
2015-05-15 00:15:25 +02:00
est31
d3d4f0e78e Item entity merging refactor
Don't ident too much, and add a comment.
2015-05-15 00:06:18 +02:00
Novatux
84334c37cc Add code to support raillike group names 2015-05-12 20:48:55 +02:00
Tomas Brod
94f3a87a67 Fix minetest.clear_* creating new LOCAL table instead of clearing the existing one.
On calling clear_redistered_biomes the registered_biomes table is cleared
by creating a new empty table, but the pointer is not updated to point to
the new one. So after calling more register_biome, the registered_biome
table always contains 0 items, which is an error. Instead, the table is
cleared by removing all its items so the pointer (minetest.registered_*)
remains valid.
2015-04-26 15:45:58 -04:00
est31
36ada329b5 Add reason to kicked log message and use present tense 2015-04-05 04:18:47 +02:00
SmallJoker
ae0d39fcbc Radius parameter for /deleteblocks here 2015-03-05 00:10:53 +10:00
est31
ef9fd92918 Add /setpassword and /clearpassword logging 2015-02-27 23:00:28 +01:00
Loic Blot
ad693a80de Fix unused (and so, broken) enable_rollback_recording. This option must be reloaded at server loop but loaded when server starts, for data consistency (not a hot load variable)
ok @ShadowNinja
2015-02-18 09:28:39 +01:00
rubenwardy
14ad8f26bb Fix minetest.item_eat's replace_with_item, fixes #2292 2015-02-16 10:24:19 +01:00
kwolekr
50d5b59eeb Hud: Modify Y-positioning of health/breath starbars to prevent overlapping with Hotbar 2015-02-08 12:47:45 -05:00
kwolekr
3ccfc96d0d Prevent null concatenation when /deleteblocks is provided an incorrect format 2015-01-27 22:36:53 -05:00
kwolekr
4e33a698b7 Simplify deleteblocks chat command argument parsing
Add optional core.pos_to_string decimal place rounding
Move core.string_to_pos to builtin/common/misc_helpers.lua for consistency
2015-01-15 18:05:13 -05:00
kwolekr
66b0d25786 Add ability to delete MapBlocks from map
Also add a Lua API and chatcommand for this
2015-01-15 16:48:56 -05:00
kwolekr
94563e9837 builtin: Unify register wrapper functions and wrap clear_registered_* functions too 2015-01-13 12:36:05 -05:00
paramat
a24491ae18 Remove builtin_biome.lua from builtin and add simple biome minimal 2015-01-11 22:32:48 -05:00
ShadowNinja
a16be38b0d Add registered_ores and registered_decorations 2015-01-05 18:24:15 -05:00
kwolekr
eb208e6b75 Expose mapgen parameters on scripting init
Add minetest.get_mapgen_params()
Deprecate minetest.register_on_mapgen_init()
2014-12-29 12:59:59 -05:00
kwolekr
3d2219596e Temporarily set default biome in builtin
This should probably be removed when minetest_game has proper biomes.
If I hear "the whole map is just stone!" again after this, I am going to detonate.
2014-12-18 09:57:38 -05:00
Calinou
2e6eeedeb4 Make dropped items larger and rotate faster
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-04 21:10:12 +10:00
Craig Davison
f7c264cec7 Fix some undeclared global variables 2014-11-26 22:50:08 +10:00
ShadowNinja
4b3c14a9d2 Add strict module
Also fix leaking globals found by it.
2014-11-19 12:40:54 -05:00
Wouters Dorian
f20441e849 Improved VoxelArea variable locality, thus performance
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-14 00:10:09 +10:00
Ryan Newell
c4ddc515f9 Add last_login field to auth.txt
Also shortens some related code and adds more parameters to string.split.
2014-11-08 12:49:50 -05:00
LeMagnesium
ddd48ba303 Add a better error message when trying to teleport another player without bring privileges 2014-10-07 16:52:52 -04:00