kwolekr
d50878d608
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
2014-12-09 23:44:04 -05:00
kwolekr
5062b99cb0
Rewrite generate notification mechanism
...
Add support for notify-on-decoration
Clean up mapgen constructors
Clean up mapgen.cpp code style somewhat
Remove trailing whitespace from some files
2014-12-06 13:53:35 -05:00
SmallJoker
2fd14e1bd5
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
2014-12-06 10:07:25 +01:00
Ciaran Gultnieks
c30346ea30
Improve Lua API documentation
...
Changes:
* Add extra documentation for remove_item.
This isn't as silly as it sounds: iterate a list containing items with
unique metadata each, and remove_item the first one you find, placing
into a different - fine, except the remove will invariably remove the
wrong one, leading to items being duplicated and others destroyed.
Arguably it's a bug, and Inventory::removeItem should actually remove
the item you tell it to. (i.e. if the passed ItemStack has metadata,
match it). But it seems reasonable to just document the behaviour
more clearly.
* Improve string_to_pos documentation.
* Clarify dig_node documentation (return value).
* Better on_step documentation.
* get_nodemeta -> get_meta.
* Other minor fixes.
2014-11-28 18:35:45 -05:00
SmallJoker
6a43b3af09
Add minetest.copy_table(table) To get rid off the "table references"
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-27 18:19:01 +10:00
SmallJoker
874109c520
Add option 'eased' to NoiseParams
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-13 23:06:38 +10:00
Craig Robbins
813c088c1c
Added names colours and refactored parseColorString()
2014-10-29 03:10:59 -04:00
David Thompson
fd5eaae2ba
Search for subgames using $MINETEST_SUBGAME_PATH.
2014-10-22 21:05:14 +02:00
RealBadAngel
e5652cb75c
Custom collision boxes node property.
2014-10-19 20:48:21 +02:00
RealBadAngel
0066bd77d2
Add meshnode drawtype.
2014-10-18 16:42:23 +02:00
BlockMen
28438bba27
Add [colorize modifier
2014-10-05 16:49:52 +02:00
Diego Martínez
5baf379f40
Add better documentation for alternate drop definition to lua_api.txt.
2014-10-02 16:49:33 -04:00
BlockMen
f48f686930
Add optional framed glasslike drawtype
2014-10-02 11:35:15 +02:00
TriBlade9
9a685a4f2e
Add firelike drawtype
2014-09-21 15:50:27 -04:00
ShadowNinja
406ed5efac
Add compression API
2014-09-20 14:02:54 -04:00
ShadowNinja
2f170a63c6
Simplify and optimize schematic replacements
2014-09-11 22:25:06 -04:00
kwolekr
f3eefeb794
Add LuaVoxelManip methods: get_node_at() and set_node_at()
2014-09-01 17:33:21 -04:00
kwolekr
9e4e7072da
Update Mapgen VoxelManipulator on buffer invalidation
2014-09-01 15:12:22 -04:00
sapier
8ab2971e0b
Remove invalid doc about minetest.get_time_us()
2014-08-25 21:52:52 +02:00
sapier
d7364d65ac
Add missing doc for minetest.get_us_time()
2014-08-25 21:16:32 +02:00
Craig Robbins
f33d31693e
Fix seg fault if popping from empty stack (L-system trees)
...
See: https://github.com/minetest/minetest/issues/1525
Background
Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack.
ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error
Commit Description
This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace.
L-Systems fix randomness
Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree
Resolves: https://github.com/minetest/minetest/issues/1469
Fix l-system crash when treedef random_level not set by Lua
2014-08-23 06:40:27 +02:00
sapier
996ea60642
Add video driver selection to settings menu (based uppon idea from webdesigner97)
2014-08-23 01:55:54 +02:00
sfan5
b19dd922ec
Add ^[mask texture modifier
2014-08-22 22:42:04 +02:00
rubenwardy
944ffe9e53
Correct spelling mistakes in documentation
2014-08-22 20:55:01 +02:00
sapier
c24e0753fc
Mod profiling support
...
Config settings:
profiling = true/false (gather statistics)
detailed_profiling = true/false (break mod times to callbacks)
Chat commands:
save_mod_profile saves current statistics in debug.txt and shows on console (on default loglevel)
2014-08-19 22:22:57 +02:00
sfan5
5884236046
Rework texture generating code, add texture grouping via ( ... )
2014-07-29 20:02:56 +02:00
sapier
65b8b524c0
Add srollbar formspec element
2014-07-16 15:02:56 +02:00
sapier
96f285f71e
Update version numbers for 0.4.10
2014-07-06 22:39:47 +02:00
sfan5
5f9962e1cc
Fix typos in doc/lua-api.txt
2014-07-05 12:19:55 +02:00
Kahrl
95be18a3c1
Fix typo in doc/lua_api.txt
2014-07-05 01:09:53 +02:00
sapier
1cc40c0a7c
Add support for Android 2.3+
...
There have been plenty of ppl involved in creating this version.
I don't wanna mention names as I'm sure I'd forget someone so I
just tell where help has been done:
- The partial android versions done by various ppl
- Testing on different android devices
- reviewing code (especially the in core changes)
- testing controls
- reviewing texts
A big thank you to everyone helping this to be completed!
2014-06-29 18:17:56 +02:00
RealBadAngel
27538ecef5
Tooltips rework.
...
Separate element for tooltips. Delayed showing,
use global color or given ones.
2014-06-24 22:11:47 +02:00
RealBadAngel
04fbf47744
Add tooltips for button, imagebutton and checkbox.
2014-06-19 00:22:03 +02:00
sapier
7b3602bab3
Fix regression dirt texture not beeing default in non cloud menu
2014-06-14 20:51:57 +02:00
ShadowNinja
e7706593c6
Add success and output return values to chat commands
2014-05-28 18:36:46 -04:00
rubenwardy
832d7973c8
Add item eat callback
2014-05-26 18:41:58 -04:00
sapier
c3984569c0
Add formspec toolkit and refactor mainmenu to use it
...
Fix crash on using cursor keys in client menu without selected server
Add support for non fixed size tabviews
2014-05-16 22:57:14 +02:00
ShadowNinja
c4359ff65c
Use "core" namespace internally
2014-05-08 13:02:04 -04:00
sapier
d3ee617f37
Fix heart + bubble bar size on different texture packs
...
Add DPI support for statbar
Move heart+bubble bar to Lua HUD
Add statbar size (based upon an idea by blue42u)
Add support for customizing breath and statbar
2014-05-07 21:46:27 +02:00
sapier
1838a3fd69
Add support for dpi based HUD scaling
...
Add support for (configurable) multiline hotbar
Improved screensize handling
Add userdefined gui scale by BlockMen
2014-04-27 21:53:13 +02:00
BlockMen
3a6d6e4751
Move the old stuff to doc
2014-04-25 19:33:31 +02:00
ShadowNinja
f2a1900345
Update documentation on is_ground_content
2014-04-24 18:27:25 -04:00
proller
0279f32db7
Remove liquid_finite and weather
2014-04-18 21:56:48 +04:00
BlockMen
c0ab09af74
Add player:set_eye_offset() by @MirceaKitsune and clean up
2014-04-12 17:44:20 +02:00
BlockMen
a1db9242ec
Add third person view
2014-04-12 17:44:15 +02:00
sapier
142e2d3b74
Cleanup client init states by bumping protocol version
...
Don't use TOSERVER_RECEIVED_MEDIA but TOSERVER_CLIENT_READY as indicatio for client ready
Handle clients with protocol version < 23 (almost) same way as before
Make client tell server about it's version
Add client state to not send bogus player position updates prior init complete
Add access to statistics information (peer connction time,rtt,version)
Fix clients standing stalled in world while preloading item visuals (new clients only)
Add get_player_information to read client specific information from lua
2014-04-08 21:12:20 +02:00
sapier
a4e2198e41
Replace pause and message menu by formspec ones
2014-03-05 18:44:14 +01:00
ShadowNinja
9a3b7715e2
Remove "Server -!- " prefix from player messages
2014-02-27 00:00:22 -05:00
kwolekr
c163859057
Schematic: Add force_placement parameter to minetest.place_structure API
2014-02-15 19:46:57 -05:00
kwolekr
3570f3e396
Add minetest.set_noiseparam_defaults() Lua API
2014-02-15 19:13:14 -05:00
kwolekr
2a01050a0c
Add capability to read table flag fields from Lua API
2014-02-09 12:44:31 -05:00
kwolekr
83bafbe08b
Make flag strings clear specified flag with 'no' prefix
...
Remove flagmask field from set_mapgen_params table
Add small bits of needed documentation
2014-02-08 17:50:59 -05:00
sapier
857a49e081
Add minetest.kick_player(name, reason)
2014-02-03 17:33:59 -05:00
Perttu Ahola
6a3fa9df12
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
2014-02-01 18:38:21 +01:00
Perttu Ahola
86a6cca3cf
Add player:set_sky() with simple skybox support
2014-02-01 18:34:26 +01:00
RealBadAngel
21f1bec724
New HUD element - waypoint.
2014-01-26 21:31:59 +01:00
ShadowNinja
76d4396fa1
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
2014-01-23 19:21:56 -05:00
ShadowNinja
1b5b6fe692
Add pointed_thing to minetest.register_on_placenode
...
As suggested by qwrwed.
2014-01-21 22:06:40 -05:00
kwolekr
1146db9956
Update lua_api.txt documentation
2014-01-19 03:00:47 -05:00
ShadowNinja
574ed6a363
Add minetest.override_item
2014-01-13 21:41:00 -05:00
Kahrl
8966c16ad2
Add formspec table
2014-01-13 18:11:08 -05:00
khonkhortisan
2b1eff7725
Allow vertical axis particle rotation constraint
...
Use tables for adding particles, deprecate former way.
separate particles(pawner) definition, add default values, work with no
arguments
2014-01-13 17:34:56 -05:00
Novatux
676f34a02b
Fix doc and forceloading crash.
2014-01-12 14:31:32 +01:00
ShadowNinja
bd8ddf1a52
Add InvRef::get/set_lists()
2014-01-11 13:52:26 -05:00
Novatux
84b94eb198
Add forceloading
2014-01-11 17:54:00 +01:00
Novatux
e21b29f422
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.
2014-01-11 17:23:28 +01:00
ShadowNinja
c3eb7fe316
Document "wielditem" visual
2014-01-08 17:10:57 -05:00
ShadowNinja
c46574f30f
Pass pointed_thing to after_place_node
2014-01-06 21:25:10 -05:00
kwolekr
1ad81c1ce3
Bump version to 0.4.9
2014-01-01 16:54:28 -05:00
ShadowNinja
e1f9ba435f
Don't throw a error when writing JSON fails
2013-12-18 18:18:43 -05:00
ShadowNinja
1ed90c90c3
Add 'minetest.write_json'
2013-12-18 16:46:53 -05:00
kwolekr
c3708b456e
Add map feature generation notify Lua API
2013-12-14 01:52:24 -05:00
ShadowNinja
83853ccd41
Remove support for optdepends.txt
2013-12-13 13:10:24 -05:00
stujones11
d9ef072305
Make line_of_sight return blocking node position
2013-12-12 16:11:00 -05:00
kaeza
33de69a173
Add 'on_prejoinplayer' callback
2013-12-12 13:42:14 -05:00
sfan5
e15681080e
Fix small mistake in Lua API docs
2013-12-06 18:37:32 +01:00
PilzAdam
e51ad5337f
Use a table in set_physics_override()
2013-12-03 23:20:00 +01:00
PilzAdam
15be2659ea
Add sneak and sneak_glitch to set_physics_override()
2013-12-03 23:20:00 +01:00
kwolekr
20e3d550fa
Decoration: Add schematic Y-slice probability support
2013-12-01 01:24:59 -05:00
Novatux
06baf05c64
Add documentation for minetest.swap_node
2013-11-30 18:57:56 +01:00
kwolekr
ff7d7080e3
LuaVoxelManip: Add area parameters back to calc_lighting and set_lighting, made optional this time; also fixed a slight bug with night values being ignored
2013-11-30 00:27:39 -05:00
kwolekr
769b2d7c05
LuaVoxelManip: Add get_light_data() and set_light_data()
2013-11-30 00:01:43 -05:00
sapier
2e66aca357
Fix modstore/favourites hang by adding asynchronous lua job support
2013-11-29 22:09:14 +01:00
ShadowNinja
7433d65d3e
Rollback fixes and get_node_actions
2013-11-27 18:13:06 -05:00
kwolekr
122875c30c
Bump version to 0.4.8
2013-11-24 02:23:49 -05:00
sapier
90e7832408
Fix invalid listname and listsize not handled correctly in set_size
2013-11-16 15:52:41 +01:00
sapier
0f9440fa61
Fix "TODO read modinfo" in modmanager to improve ui usability
2013-11-10 19:37:45 +01:00
PilzAdam
1afd359550
Fix typo in lua_api.txt
2013-11-08 18:16:08 +01:00
4Evergreen4
1d856b734b
Add wrapper for minetest.rotate_and_place.
2013-11-07 20:14:26 -05:00
Vanessa Ezekowitz
d886f34003
Add 6d facedir rotation prediction routine
2013-11-06 21:08:36 -05:00
BlockMen
25edae00ea
Reworked formspecs and kahrl's hexcolor parser
2013-11-03 22:14:37 +01:00
ShadowNinja
06a5eceb81
Add basic protection support to builtin
2013-11-02 14:01:10 -04:00
Novatux
bd6d4666ab
Add a callback: minetest.register_on_craft(itemstack, player,
...
old_craft_grid, craft_inv) and
minetest.register_craft_predict(itemstack, player, old_craft_grid,
craft_inv)
2013-11-01 15:55:34 +01:00
ShadowNinja
12504a18ec
Remove vector metatable setting
...
This not only makes the vector functions faster, but also makes them more
consistent with other functions.
2013-10-17 09:41:01 +03:00
Novatux
34e0a0ca0f
Add tool callback
2013-10-16 21:58:29 +04:00
Sokomine
19742d8d98
Add support for parameter 'visual_scale' for drawtypes 'signlike' and 'torchlike' like used for drawtype 'plantlike'
2013-10-14 21:38:56 +03:00
PilzAdam
a9c0961e0c
Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStack
2013-09-28 23:46:48 +02:00
PilzAdam
731392866f
Allow to manually specify param2 in minetest.item_place() and return success
2013-09-28 23:46:48 +02:00
Kahrl
5dce44ec5e
Add --version option
2013-09-28 21:30:17 +02:00
Kahrl
f0edd88dff
Remove doc/gpl-2.0.txt, add doc/lgpl-2.1.txt
2013-09-28 21:30:17 +02:00
BlockMen
27947d85f7
Add option to scale image to percentage values
2013-09-20 20:03:58 +02:00
ShadowNinja
c9eb17aba3
Fix comments about length of server step
...
6b927229f5
Changed the default server step
from 0.05s to 0.1s
2013-09-17 01:47:45 +02:00
PilzAdam
4feea0ac68
Add offset to automatic_face_movement_dir
2013-09-10 23:31:44 +02:00
PilzAdam
dd5c451e03
Allow non-string arguments for minetest.is_yes()
2013-09-10 21:38:44 +02:00
PilzAdam
d820a6bfd8
Add Settings interface for Lua
2013-09-10 18:31:38 +02:00
Kahrl
217b66e5d2
Add --migrate to manpages and update manpage dates
2013-09-10 16:44:11 +02:00
Novatux
6291fd1cbb
Add minetest.get_gametime() API function, that returns the number of seconds since the world was created.
2013-09-08 11:09:50 +02:00
PilzAdam
7860097eda
Use player:set_hotbar_image() instead of hardcoded hotbar.png
2013-09-05 00:21:16 +02:00
Kahrl
1ecf51a13f
Add minetest.parse_json, engine.parse_json
2013-09-02 02:20:08 +02:00
sapier
09a50d0458
Add translation for main menu
...
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
2013-08-17 16:01:43 +02:00
Sfan5
a97c085e9e
Fix documentation about colors in formspec
2013-08-15 19:38:54 +02:00
Kahrl
4e1f50035e
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
PilzAdam
fc72d7fbb6
Fix typos
2013-08-14 00:50:03 +02:00
sapier
fc571ad46d
Add support for entities to automatic face movement direction
2013-08-13 23:48:47 +02:00
kwolekr
c06caa14c3
Decoration: Fix schematic probability mess with new MTS file version
2013-08-11 15:34:49 -04:00
BlockMen
7b13d119ed
Add support for different drowning damage and allow drowning in other nodetypes
2013-08-06 17:49:39 +02:00
Perttu Ahola
8831669505
Allow mods to listen to cheat detections using minetest.register_on_cheat()
2013-08-04 00:45:49 +03:00
PilzAdam
45589fae58
Add replacements to schematics
2013-08-03 03:22:14 +02:00
sapier
251e3e01c7
Add support for setting stepheight for entities
2013-07-30 19:48:02 +02:00
PilzAdam
4fb4efd8ed
Play sounds/main_menu.ogg in menu
2013-07-28 23:29:03 +02:00
proller
037e84d377
Better snow fall, finite liquid transform, leveled nodes api
2013-07-28 17:14:31 +04:00
proller
3aedfac968
Weather support
2013-07-27 23:21:48 +04:00
BlockMen
a59f85c1a0
Add support of pressed_texture of image_button
...
Fix params number
Add pressed texture name
Fix string def
Fix syntax error
2013-07-24 01:02:43 +02:00
hdastwb
a0f5b70568
added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir
2013-07-24 00:31:32 +02:00
sapier
baf5614880
Add port to favorites if not 30000
...
Major modmgr overhaul
Add missing formspec checkbox doc
2013-07-22 18:09:59 +02:00
PilzAdam
8cae659786
Add an option to disable object <-> object collision for Lua entities
2013-07-20 20:43:11 +02:00
PilzAdam
413f0d0353
Add liquid_range to nodedef
2013-07-20 20:41:17 +02:00
PilzAdam
cba90d4441
Make range of tools configureable
2013-07-20 20:37:59 +02:00
RealBadAngel
d19c8b815d
Add set_breath and get_breath to lua API.
2013-07-20 20:34:11 +02:00
Kahrl
6027c8d259
Add VoxelArea:position, VoxelArea:iter and VoxelArea:iterp
2013-07-11 22:57:26 +02:00
PilzAdam
c813a3cc53
Remove note in lua-api.txt that there are no vector helper functions
2013-07-08 13:41:46 +02:00
sapier
88d43af276
Fix many formspec menu bugs
2013-07-07 19:49:52 -04:00
ShadowNinja
ae8ff4b8e2
Add vector helpers
2013-07-07 01:49:11 -04:00
Sfan5
307c57dcc4
Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor
2013-07-06 10:32:58 +02:00
sapier
967121a34b
Replace C++ mainmenu by formspec powered one
2013-07-02 19:58:20 -04:00
kwolekr
dd6d1afd8e
Decoration: Add schematic rotation support
2013-07-01 18:04:51 -04:00
kwolekr
067888d549
LuaVoxelManip: Fix minor bug with set_lighting, remove coordinate params for light and liquid updates
2013-06-29 22:23:00 -04:00
kwolekr
21a4adcd27
Update documentation for get_mapgen_object
2013-06-29 16:24:32 -04:00
kwolekr
3f13dc790c
Add voxelarea.lua helper to builtin
2013-06-28 11:07:45 -04:00
kwolekr
9e100bc42b
Apply various fixes to several things
2013-06-27 22:35:35 -04:00
kwolekr
6b3169e4d0
LuaVoxelManip: Separate VoxelManip data get/set from emerging/blitting data back to map
2013-06-27 22:35:35 -04:00
kwolekr
2e292b67a0
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API
2013-06-27 22:35:35 -04:00
kwolekr
18882a4d26
Add Lua PerlinNoiseMap:get#dMap_flat API
2013-06-27 22:35:35 -04:00
kwolekr
8aa930f28e
Add minetest.get_mapgen_object to API
2013-06-27 22:35:35 -04:00
kwolekr
d6ac3d8d9a
Add LuaVoxelManip
2013-06-27 22:35:35 -04:00
kwolekr
309c5f3641
Decoration: Add support for zero probability, fix breakage from last commit
2013-06-22 20:49:01 -04:00
kwolekr
4d77781ce7
A handful of minor fixes to various things
2013-06-22 17:27:48 -04:00
kwolekr
c1b829077a
Decoration: Add Schematic decoration type
2013-06-22 01:11:52 -04:00
Kahrl
469d0b120e
Remove deprecated functions that don't work anymore from lua_api.txt
2013-06-20 07:52:04 +02:00
PilzAdam
53066024f6
Add drowning
2013-06-19 15:47:00 +00:00