est31
ee0564abf5
Document limitations of minetest.get_password_hash
2015-12-02 18:32:14 +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
paramat
6daea5adfc
Lua_api.txt: Add documentation for biome definition
2015-11-29 21:55:58 +00:00
Maksim Gamarnik
bcf249297c
Merge last Minetest commits
2015-11-10 20:29:00 +02:00
Maksim Gamarnik
919be490f9
Update
...
Sync all Minetest commits
2015-11-10 13:49:24 +02:00
est31
a61208d92d
Add LuaSecureRandom
2015-11-08 15:57:15 -05:00
kwolekr
897caf3178
Improve LuaVoxelManip documentation
2015-11-07 11:59:24 -05:00
BlockMen
7477ba044c
Add support for audio feedback if placing node failed
2015-11-07 13:23:38 +01:00
kwolekr
d93a706ccb
Schematics: Add core.place_schematic_on_vmanip API
...
Fix memory leak in minetest.place_schematic
Slightly refactor Schematic code
2015-11-05 01:18:32 -05:00
kwolekr
4072700558
Add callback parameter for core.emerge_area()
2015-11-02 18:43:09 -05:00
BlockMen
0e8e40eaa9
Add option to disable backface culling for models
...
- Disabled by default (except players)
- Fixes #2984
2015-10-25 12:06:08 +01:00
PilzAdam
2fb30ef4d3
Improve Lua settings menu
...
* Add key settings to setting table and ignore them later
This way they are added to the auto-generated minetest.conf.example
* Add flags type
* Add input validation for int, float and flags
* Break in-game graphic settings into multiple sections
* Parse settingtpes.txt in mods and games
* Improve description for a lot of settings
* Fix typos and wording in settingtypes.txt
* Convert language setting to an enum
2015-10-24 19:39:15 +02:00
paramat
ae975d7c91
Decoration API: Add flag for placement on liquid surface
...
Add findLiquidSurface() function to mapgen.cpp
Update lua_api.txt
2015-10-23 21:30:20 +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
paramat
d21809ec2e
ABMs: Make catch-up behaviour optional
...
Default is true for backwards compatibility
Update lua_api.txt
2015-10-18 16:42:59 +01: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
est31
e2613ec422
Add new ContentParamType2 "CPT2_DEGROTATE"
...
This might break some mods, but it is important for all uses of the param2 to
be documented.
This doesn't need a serialisation version or network protocol version change,
as old clients will still work on new servers, and it is bearable to have
new clients getting non rotated plants on old servers.
2015-10-04 23:59:41 +02:00
kwolekr
726f62097c
doc: Update node callback documentation
2015-10-04 15:34:56 -04:00
Duane Robertson
3416bf155f
Add get_biome_id(biome_name) callback
...
It returns the index used in mg->biomemap for a given biome name.
The biomemap is useless without this unless you re-register all existing biomes,
which could cause problems for anyone else trying to use biomemap.
With this, you can quickly create a lookup table of ids and names.
2015-10-02 22:49:31 +02:00
Tim
0b892a0499
Clarify radii and distance types in documentation
...
Because not all circles are round:
* circles using an euclidean metric are what we usually call "round"
* circles using a maximum metric look like euclidean rectangles with equal adjacent sides (squares)
* circles using a manhattan metric look like an euclidean right angled rhombus (squares, but 45° rotated to the former one)
[ci skip]
2015-09-26 21:28:50 +02:00
kwolekr
23316c9f92
Add /emergeblocks command and core.emerge_area() Lua API
2015-09-23 15:56:24 -04:00
est31
3b175acadd
lua_api.txt: fix typo
...
Thanks to @kaadmy (NeD) for pointing this out.
2015-09-21 18:10:05 +02:00
kwolekr
6831884d5c
Ore: Add puff ore type
2015-09-17 03:04:50 -04:00
kwolekr
f24947f903
Ore: Add ore sheet column height range selection
...
Modders are now able to select the range of ore column height,
and the midpoint at which they 'grow' starting from.
This commit adds three new parameters for the 'sheet' ore type:
column_height_min, column_height_max, and column_midpoint_factor.
clust_size is now deprecated for this ore type.
2015-09-13 00:11:50 -04:00
Robert Zenz
cd033fc5f4
Add more information about how get_node_light works.
2015-09-08 21:14:56 +02:00
est31
9721b4cf60
Bump version to 0.4.13
2015-08-20 04:02:00 +02:00
kwolekr
925187a32b
minimap: Add ability to disable from server
2015-08-13 15:05:48 -04:00
rubenwardy
3a5596ccc8
Fix segfaults caused by the Environment not being initialized yet
2015-08-09 23:36:55 +02:00
est31
2bebf6466b
Actually document what minetest.is_protected should do
2015-08-02 19:09:55 +02:00
est31
d4a7cfcd71
Add AreaStore data structure
2015-07-27 06:42:56 +02:00
est31
713002778f
Optional reconnect functionality
...
Enable the server to request the client to reconnect.
This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
2015-07-23 07:38:13 +02:00
Robert Zenz
85f7c44568
Add note that chat messages can be marked as handled.
2015-07-22 05:43:30 +02:00
est31
93d11fe669
Document game main menu image system
2015-07-21 17:17:46 +02:00
Elia Argentieri
44d030306e
Added get_player_velocity() method. Fixes #1176
2015-07-20 05:40:44 +02:00
RealBadAngel
dd9ca2e7ed
Fix relief mapping issues
2015-07-16 15:36:48 +02:00
paramat
3b67110599
Biome API decorations: 'spawnby' searches a 3D neighbourhood
...
The neighbours checked are the 8 nodes horizontally surrounding the decoration base
and the 8 nodes horizontally surrounding the ground node below the decoration
2015-07-08 22:44:10 +01:00
TeTpaAka
af7af11b4a
Fix bug when craft input isn't replaced
2015-06-22 19:30:35 +02:00
MirceaKitsune
ee7dfd7ba0
Fix some issues with animations, and allow non-looped animations to be defined
2015-06-22 01:53:38 +02:00
est31
571e159a1a
Add list-rings
...
Adds list-rings, a method to implement item sending between inventories via shift-click.
Nice insider feature: a ring consisting of a single inventory list serves as nice clean-up method.
Also adds them to minimal game, and the standard inventory.
Craft output slots are not supported.
2015-06-16 14:51:26 +02:00
TeTpaAka
14b9820f48
Add minetest.register_on_player_hpchange
2015-06-13 19:40:31 +02:00
TeTpaAka
db4fc8326e
Add return list of individual counts to find_node_in_area
2015-06-13 19:39:18 +02:00
TeTpaAka
76c89a3f84
Add some missing getter functions to the lua API
...
ObjectRef:
get_properties
get_armor_groups
get_animation
get_attach
get_bone_position
Players:
get_physics_override
hud_get_hotbar_itemcount
hud_get_hotbar_image
hud_get_hotbar_selected_image
get_sky
get_day_night_ratio
get_local_animation
get_eye_offset
Global:
minetest.get_gen_notify
minetest.get_noiseparams
2015-05-31 23:21:45 +10:00
kwolekr
482b1c3b13
SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
...
This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap.
Retrieving smaller slices of noise from the computation result as needed
optimizes memory usage while maintaining a reasonable amount of CPU overhead.
2015-05-31 23:20:49 +10:00
kwolekr
c98bc68584
Add optional buffer param for bulk data array writes in Lua
2015-05-31 23:20:45 +10:00
kwolekr
3793a8ee42
SAPI: Accept either ARGB8 table or ColorString to specify colors
2015-05-31 23:20:32 +10:00
ShadowNinja
fc80cc0daf
Add core.get_dir_list
...
Conflicts:
builtin/mainmenu/tab_texturepacks.lua
2015-05-31 23:20:28 +10:00
ShadowNinja
f52eb6a064
Add core.request_insecure_environment()
2015-05-31 23:17:52 +10:00
ShadowNinja
f683d0066d
Add core.mkdir
2015-05-31 23:17:48 +10:00
ShadowNinja
3a97d94aa9
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-31 23:17:44 +10:00
TeTpaAka
7858734443
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
2015-05-31 23:16:23 +10:00
Brandon
b070300551
Add minetest.register_on_punchplayer
2015-05-31 23:16:16 +10:00
TeTpaAka
3b1900abcb
Add get and set functions for the nametag color
2015-05-31 23:16:13 +10:00
Novatux
274181bee5
Add code to support raillike group names
...
Conflicts:
builtin/game/misc.lua
2015-05-31 23:15:49 +10:00
est31
50e023ff42
is_player() is no player-only function
2015-05-31 23:14:11 +10:00
TeTpaAka
4573eef202
Add some missing getter functions to the lua API
...
ObjectRef:
get_properties
get_armor_groups
get_animation
get_attach
get_bone_position
Players:
get_physics_override
hud_get_hotbar_itemcount
hud_get_hotbar_image
hud_get_hotbar_selected_image
get_sky
get_day_night_ratio
get_local_animation
get_eye_offset
Global:
minetest.get_gen_notify
minetest.get_noiseparams
2015-05-28 16:46:35 +02:00
kwolekr
793f960e04
SAPI/Noise: Add PerlinNoiseMap:getMapSlice() function
...
This adds the ability to grab 'slices' of noise calculated by PerlinNoiseMap.
Retrieving smaller slices of noise from the computation result as needed
optimizes memory usage while maintaining a reasonable amount of CPU overhead.
2015-05-17 04:04:17 -04:00
kwolekr
f560198cd7
Add optional buffer param for bulk data array writes in Lua
2015-05-17 00:07:45 -04:00
kwolekr
5292177986
SAPI: Accept either ARGB8 table or ColorString to specify colors
2015-05-16 20:15:03 -04:00
ShadowNinja
d85feedccc
Add core.get_dir_list
2015-05-16 18:33:22 -04:00
ShadowNinja
2dd64f03da
Add core.request_insecure_environment()
2015-05-16 18:33:19 -04:00
ShadowNinja
310295c511
Add core.mkdir
2015-05-16 18:32:37 -04:00
ShadowNinja
1008aefa8c
Add mod security
...
Due to compatibility concerns, this is temporarily disabled.
2015-05-16 18:32:31 -04:00
TeTpaAka
676750bd57
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
2015-05-15 16:21:01 -04:00
Brandon
aeaeed77e7
Add minetest.register_on_punchplayer
2015-05-15 11:09:55 +02:00
TeTpaAka
888e2f9b45
Add get and set functions for the nametag color
2015-05-15 11:03:27 +02:00
kwolekr
19f7ff2ac8
Schematics: Add per-node force placement option
2015-05-13 17:01:54 +10:00
kwolekr
4d5237fc9f
Schematics: Add indent-with-space option for schematic Lua table serialization
2015-05-13 17:01:19 +10:00
kwolekr
ab896a72b3
NodeResolver: Remove NodeResolveMethod
...
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-05-13 17:01:16 +10:00
kwolekr
bd168fd717
Add core.find_nodes_with_meta() script API
2015-05-13 17:00:59 +10:00
Novatux
84334c37cc
Add code to support raillike group names
2015-05-12 20:48:55 +02:00
est31
de86d6dabf
is_player() is no player-only function
2015-05-12 05:52:49 +02:00
kwolekr
4a54c965a5
Schematics: Add per-node force placement option
2015-05-09 18:44:00 -04:00
kwolekr
097b9ead50
Schematics: Add indent-with-space option for schematic Lua table serialization
2015-05-07 02:54:35 -04:00
kwolekr
e8fb94705c
NodeResolver: Remove NodeResolveMethod
...
This simplifies NodeResolver logic and makes some interfaces cleaner.
2015-05-07 02:36:01 -04:00
kwolekr
cba840d188
Add core.find_nodes_with_meta() script API
2015-05-05 16:21:59 -04:00
ShadowNinja
126ded5c24
Add minetest.global_exists()
2015-04-21 22:58:37 +02:00
kwolekr
6495b9b57b
Ore: Add biomes parameter
2015-04-20 20:25:33 -04:00
kwolekr
737d4078c9
Schematics: Refactor NodeResolver and add NodeResolveMethod
...
NodeResolver name lists now belong to the NodeResolver object instead of
the associated NodeDefManager. In addition to minimizing unnecessary
abstraction and overhead, this move permits NodeResolvers to look up nodes
that they had previously set pending for resolution. So far, this
functionality has been used in the case of schematics for
serialization/deserialization.
2015-04-16 16:27:05 -04:00
kwolekr
4c5f712673
Schematics: Reorganize (de)serialization and add Lua serialization API
2015-04-13 03:10:52 -04:00
est31
5119498ae2
Document for api functions that rely on current_modname, that it doesn't work when not loading mods
2015-04-08 23:05:26 +02:00
kwolekr
55d3aa7960
Schematics: Prepend mod path to relative schematic filepaths
2015-04-08 00:28:56 -04:00
kwolekr
87ea5c96a6
ObjDefManager, Mapgen SAPI: Huge refactoring
...
- General code cleanup
- Unified object creation and loading
- Specifying objects in APIs is now orthogonal (i.e. anything can take an ID,
name string, or the raw table definition (and automatically registers if present
2015-03-31 23:27:58 -04:00
kwolekr
ae55a60e16
GenElementManager: Pass opaque handles to Lua and rename to ObjDefManager
...
Add core.clear_registered_schematics() and refactor schematics somewhat
2015-03-31 01:11:51 -04:00
ShadowNinja
dd1c4e3716
Document nil player as being allowed for can_dig
2015-03-27 15:11:28 -04:00
paramat
c4d375a253
lua_api/l_mapgen: generate_ores/decorations: make p1, p2 optional
2015-03-24 18:07:29 +00:00
Loic Blot
455863a38f
Revert "Add a Lua call to do damages / heals" ok @ShadowNinja
...
This reverts commit 467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.
2015-03-22 18:01:56 +01:00
kwolekr
16407b9f46
Add support for the PCG32 PRNG algo (and associated script APIs)
2015-03-22 00:48:08 -04:00
Loic Blot
7caacf745b
Add a Lua call to do damages / heals
2015-03-18 14:52:35 +01:00
paramat
6817647244
lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorations
2015-03-11 03:36:39 +00:00
paramat
be0c4804a5
Biome API: Enable decorations placed on water
...
Add schematic decoration force placement flag
2015-03-06 03:32:15 +00:00
BlockMen
08d843e1c2
Improve group-based connection between raillike nodes
2015-03-05 23:24:32 +01:00
Craig Robbins
102e0ee00d
Change find_surface_nodes_in_area to find_nodes_in_area_under_air
2015-02-27 21:42:00 +10:00
Loic Blot
0d823b300e
Add find_surface_nodes_in_area LUA call which permit to only get the nodes which touch air. This permit to massively improve performance for mods like plantlife
2015-02-27 21:34:33 +10:00
rubenwardy
01954fdc73
Wrap lines longer than 80 characters in lua_api.txt ...and minor formating changes
2015-02-27 13:41:17 +10:00
Kahrl
eb49a8d55e
Disallow object:remove() if the object is a player
...
Rebased by Zeno- (conflict in lua_api.txt)
2015-02-23 16:49:48 +10:00
Perttu Ahola
bb4840d977
Bump version to 0.4.12
2015-02-18 23:50:01 +01:00
rubenwardy
14ad8f26bb
Fix minetest.item_eat's replace_with_item, fixes #2292
2015-02-16 10:24:19 +01:00
TriBlade9
91f12acc60
Added ratio argument to colorize, removed the weird alpha-based ratio.
2015-01-20 22:56:20 +10: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
b22e48d3a7
Lua-api.txt: Document that paramtype='light' results in light propagation with attenuation and is essential for a light source to spread it's light
2015-01-11 22:30:28 -05:00
ShadowNinja
a16be38b0d
Add registered_ores and registered_decorations
2015-01-05 18:24:15 -05:00
kwolekr
5370bf9a50
Add minetest.generate_ores() and minetest.generate_decorations()
2015-01-04 22:38:48 -05:00
Craig Robbins
451feb2b70
Remove freezemelt documentation from lua_api.txt
2015-01-04 21:53:25 +10:00
kwolekr
1c2805b733
Add warning about using deprecated fields in Mapgen API and update docs
2015-01-04 03:24:40 -05:00
Wuzzy
22f202d248
Rewrite lua_api.txt into Markdown format
...
Just Markdown, no variant of it. File name intentionally
not changed to “lua_api.md” because of fear to break references
to that file. The file can still be renamed later.
2015-01-03 00:48:38 -05:00
Diego Martínez
cf4ce127a0
Fix documentation for string functions
2014-12-30 00:42:50 -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
2e5d9bb332
LuaVoxelManip: Remove blank allocator
2014-12-29 01:31:37 -05:00
kwolekr
3814cafc24
LuaItemStack: Fix and document behavior of set_name, set_count, set_wear, set_metadata
2014-12-28 23:59:24 -05:00
kwolekr
4437065263
Decoration: Add height_min and height_max parameters
...
Also set default height_min/height_max to -31000 and 31000,
respectively, for ore and biomes
2014-12-28 22:37:27 -05:00
kwolekr
c4a39d536f
Ore: Add Vein ore type
2014-12-28 21:17:12 -05:00
kwolekr
c176763482
Ore: Add Blob ore type
2014-12-28 03:11:00 -05:00
kwolekr
20b9e50aa9
LuaVoxelManip: Add option to allocate blank data
2014-12-27 23:09:36 -05:00
kwolekr
a7c93a7160
Bump version to 0.4.11
2014-12-24 22:28:06 -05:00
paramat
63311232cf
lua_api.txt: improve noise documentation. Remove previous eased 3D noise format example
2014-12-20 14:50:57 -05:00
Craig Robbins
572eec5567
Fix typo in lua_api.txt
2014-12-15 01:09:17 +10:00
kwolekr
a3e54044a9
Add support for NoiseParams in minetest.get_perlin() and add docs on NoiseParams to lua_api.txt
2014-12-12 02:02:44 -05:00
kwolekr
fefcad5137
Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparams
2014-12-09 23:44:04 -05:00
kwolekr
4f8d54e249
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
cd74934c42
Add Lua helper functions vector.apply(v) math.sign(x, tolerance)
2014-12-06 10:07:25 +01:00
Ciaran Gultnieks
e45c914ce5
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
e42349140d
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
d3141906d2
Add option 'eased' to NoiseParams
...
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-13 23:06:38 +10:00
Craig Robbins
642ea2c378
Added names colours and refactored parseColorString()
2014-10-29 03:10:59 -04:00
RealBadAngel
983201a10b
Custom collision boxes node property.
2014-10-19 20:48:21 +02:00
RealBadAngel
1c09928344
Add meshnode drawtype.
2014-10-18 16:42:23 +02:00
BlockMen
efa7ad44fa
Add [colorize modifier
2014-10-05 16:49:52 +02:00
Diego Martínez
fcd0cffe0a
Add better documentation for alternate drop definition to lua_api.txt.
2014-10-02 16:49:33 -04:00
BlockMen
e25777936f
Add optional framed glasslike drawtype
2014-10-02 11:35:15 +02:00
TriBlade9
2d6eb3d2f3
Add firelike drawtype
2014-09-21 15:50:27 -04:00
ShadowNinja
33f6656d33
Add compression API
2014-09-20 14:02:54 -04:00
ShadowNinja
0b45befa69
Simplify and optimize schematic replacements
2014-09-11 22:25:06 -04:00
kwolekr
ee1fee1578
Add LuaVoxelManip methods: get_node_at() and set_node_at()
2014-09-01 17:33:21 -04:00
kwolekr
9adbca89cd
Update Mapgen VoxelManipulator on buffer invalidation
2014-09-01 15:12:22 -04:00
sapier
25da503d04
Remove invalid doc about minetest.get_time_us()
2014-08-25 21:52:52 +02:00
sapier
04d3b7f969
Add missing doc for minetest.get_us_time()
2014-08-25 21:16:32 +02:00
Craig Robbins
8152f54ac6
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
sfan5
bf60cf56ec
Add ^[mask texture modifier
2014-08-22 22:42:04 +02:00
rubenwardy
0859915fb4
Correct spelling mistakes in documentation
2014-08-22 20:55:01 +02:00
sapier
4b2e3ceaad
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
c1170e9791
Rework texture generating code, add texture grouping via ( ... )
2014-07-29 20:02:56 +02:00
sapier
73907a2c7e
Add srollbar formspec element
2014-07-16 15:02:56 +02:00
sapier
9fe198016a
Update version numbers for 0.4.10
2014-07-06 22:39:47 +02:00
sfan5
c5b58526ff
Fix typos in doc/lua-api.txt
2014-07-05 12:19:55 +02:00
Kahrl
7639c203f5
Fix typo in doc/lua_api.txt
2014-07-05 01:09:53 +02:00
RealBadAngel
1328c078f5
Tooltips rework.
...
Separate element for tooltips. Delayed showing,
use global color or given ones.
2014-06-24 22:11:47 +02:00
RealBadAngel
bbaf49826e
Add tooltips for button, imagebutton and checkbox.
2014-06-19 00:22:03 +02:00
ShadowNinja
d37ee7bca8
Add success and output return values to chat commands
2014-05-28 18:36:46 -04:00
rubenwardy
b7ccc0b817
Add item eat callback
2014-05-26 18:41:58 -04:00
sapier
d83d1a95b7
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
ShadowNinja
4ed066b463
Update documentation on is_ground_content
2014-04-24 18:27:25 -04:00
proller
495ed5ec8b
Remove liquid_finite and weather
2014-04-18 21:56:48 +04:00
BlockMen
a5db2961b2
Add player:set_eye_offset() by @MirceaKitsune and clean up
2014-04-12 17:44:20 +02:00
BlockMen
8909fe913c
Add third person view
2014-04-12 17:44:15 +02:00
sapier
bc7084892d
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
89c5163c02
Replace pause and message menu by formspec ones
2014-03-05 18:44:14 +01:00
ShadowNinja
bf37cbf242
Remove "Server -!- " prefix from player messages
2014-02-27 00:00:22 -05:00
kwolekr
8b7de5ea21
Schematic: Add force_placement parameter to minetest.place_structure API
2014-02-15 19:46:57 -05:00
kwolekr
d48f851863
Add minetest.set_noiseparam_defaults() Lua API
2014-02-15 19:13:14 -05:00
kwolekr
64b8216144
Add capability to read table flag fields from Lua API
2014-02-09 12:44:31 -05:00
kwolekr
2a896ffbf7
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
23c7c86bad
Add minetest.kick_player(name, reason)
2014-02-03 17:33:59 -05:00
Perttu Ahola
0ad66f64a5
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
2014-02-01 18:38:21 +01:00
Perttu Ahola
89f9a3e607
Add player:set_sky() with simple skybox support
2014-02-01 18:34:26 +01:00
RealBadAngel
6d28b11897
New HUD element - waypoint.
2014-01-26 21:31:59 +01:00
ShadowNinja
ca5b6594b9
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
2014-01-23 19:21:56 -05:00
ShadowNinja
6a6a7e8fd3
Add pointed_thing to minetest.register_on_placenode
...
As suggested by qwrwed.
2014-01-21 22:06:40 -05:00
kwolekr
64311f6a74
Update lua_api.txt documentation
2014-01-19 03:00:47 -05:00
ShadowNinja
487c8aaf56
Add minetest.override_item
2014-01-13 21:41:00 -05:00
Kahrl
d58f5a0878
Add formspec table
2014-01-13 18:11:08 -05:00
khonkhortisan
5874af4d8f
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
65fa1fa276
Fix doc and forceloading crash.
2014-01-12 14:31:32 +01:00
ShadowNinja
78c4bfc4cc
Add InvRef::get/set_lists()
2014-01-11 13:52:26 -05:00
Novatux
0a96131bf4
Add forceloading
2014-01-11 17:54:00 +01:00
Novatux
cd1033d41f
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too.
2014-01-11 17:23:28 +01:00
ShadowNinja
6d3b145407
Document "wielditem" visual
2014-01-08 17:10:57 -05:00
ShadowNinja
306041087c
Pass pointed_thing to after_place_node
2014-01-06 21:25:10 -05:00
kwolekr
c7c4c681e4
Bump version to 0.4.9
2014-01-01 16:54:28 -05:00
ShadowNinja
e2b44bca93
Don't throw a error when writing JSON fails
2013-12-18 18:18:43 -05:00
ShadowNinja
c24cde1d75
Add 'minetest.write_json'
2013-12-18 16:46:53 -05:00
kwolekr
85d7b64e2c
Add map feature generation notify Lua API
2013-12-14 01:52:24 -05:00
ShadowNinja
75b4da3a7e
Remove support for optdepends.txt
2013-12-13 13:10:24 -05:00
stujones11
ace4953a52
Make line_of_sight return blocking node position
2013-12-12 16:11:00 -05:00
kaeza
ba7af927a7
Add 'on_prejoinplayer' callback
2013-12-12 13:42:14 -05:00
sfan5
d7e524cd79
Fix small mistake in Lua API docs
2013-12-06 18:37:32 +01:00
PilzAdam
8dae6c5967
Use a table in set_physics_override()
2013-12-03 23:20:00 +01:00
PilzAdam
844cac9e3a
Add sneak and sneak_glitch to set_physics_override()
2013-12-03 23:20:00 +01:00
kwolekr
017876a37c
Decoration: Add schematic Y-slice probability support
2013-12-01 01:24:59 -05:00
Novatux
b316c48e59
Add documentation for minetest.swap_node
2013-11-30 18:57:56 +01:00
kwolekr
5b10914dcd
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
876a1eb687
LuaVoxelManip: Add get_light_data() and set_light_data()
2013-11-30 00:01:43 -05:00
ShadowNinja
1b1e315a6a
Rollback fixes and get_node_actions
2013-11-27 18:13:06 -05:00
kwolekr
246783bfc8
Bump version to 0.4.8
2013-11-24 02:23:49 -05:00
sapier
cab1a45764
Fix invalid listname and listsize not handled correctly in set_size
2013-11-16 15:52:41 +01:00
sapier
6b98489ed9
Fix "TODO read modinfo" in modmanager to improve ui usability
2013-11-10 19:37:45 +01:00
PilzAdam
beef60c7c0
Fix typo in lua_api.txt
2013-11-08 18:16:08 +01:00
4Evergreen4
317945eb1e
Add wrapper for minetest.rotate_and_place.
2013-11-07 20:14:26 -05:00
Vanessa Ezekowitz
adef84e93d
Add 6d facedir rotation prediction routine
2013-11-06 21:08:36 -05:00
BlockMen
18314f400f
Reworked formspecs and kahrl's hexcolor parser
2013-11-03 22:14:37 +01:00
ShadowNinja
1850e0ecb7
Add basic protection support to builtin
2013-11-02 14:01:10 -04:00
Novatux
0f0a497d0f
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
c428b28e43
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
64da618bed
Add tool callback
2013-10-16 21:58:29 +04:00
Sokomine
d7fc2a18b2
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
714d83e833
Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStack
2013-09-28 23:46:48 +02:00
PilzAdam
80a7f12664
Allow to manually specify param2 in minetest.item_place() and return success
2013-09-28 23:46:48 +02:00
BlockMen
89896b73fb
Add option to scale image to percentage values
2013-09-20 20:03:58 +02:00
ShadowNinja
7bcf638de9
Fix comments about length of server step
...
6b927229f5f9cb9a8163ecec482160975199fa0f Changed the default server step
from 0.05s to 0.1s
2013-09-17 01:47:45 +02:00
PilzAdam
20e1cc7140
Add offset to automatic_face_movement_dir
2013-09-10 23:31:44 +02:00
PilzAdam
56f58ccf3b
Allow non-string arguments for minetest.is_yes()
2013-09-10 21:38:44 +02:00
PilzAdam
14d20ac1a4
Add Settings interface for Lua
2013-09-10 18:31:38 +02:00
Novatux
b8ccaf35f4
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
49f6e00cf3
Use player:set_hotbar_image() instead of hardcoded hotbar.png
2013-09-05 00:21:16 +02:00
Kahrl
1f772a3890
Add minetest.parse_json, engine.parse_json
2013-09-02 02:20:08 +02:00
sapier
281dc6a502
Add translation for main menu
...
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
2013-08-17 16:01:43 +02:00
Sfan5
f27b1a3b1b
Fix documentation about colors in formspec
2013-08-15 19:38:54 +02:00
Kahrl
ee90d438b8
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
PilzAdam
2f7fb3e2f2
Fix typos
2013-08-14 00:50:03 +02:00
sapier
ce907a371e
Add support for entities to automatic face movement direction
2013-08-13 23:48:47 +02:00
kwolekr
6aa6aaf3f3
Decoration: Fix schematic probability mess with new MTS file version
2013-08-11 15:34:49 -04:00
BlockMen
b131a282ba
Add support for different drowning damage and allow drowning in other nodetypes
2013-08-06 17:49:39 +02:00
Perttu Ahola
eadddb8a83
Allow mods to listen to cheat detections using minetest.register_on_cheat()
2013-08-04 00:45:49 +03:00
PilzAdam
62dc2c0c8f
Add replacements to schematics
2013-08-03 03:22:14 +02:00
sapier
12a654708c
Add support for setting stepheight for entities
2013-07-30 19:48:02 +02:00
proller
d2cbeba8b6
Better snow fall, finite liquid transform, leveled nodes api
2013-07-28 17:14:31 +04:00
proller
cdb2b82262
Weather support
2013-07-27 23:21:48 +04:00
BlockMen
bbe6259cb7
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
f482d200df
added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir
2013-07-24 00:31:32 +02:00
sapier
5f8013ae39
Add port to favorites if not 30000
...
Major modmgr overhaul
Add missing formspec checkbox doc
2013-07-22 18:09:59 +02:00
PilzAdam
617d8cba5d
Add an option to disable object <-> object collision for Lua entities
2013-07-20 20:43:11 +02:00
PilzAdam
6f29410895
Add liquid_range to nodedef
2013-07-20 20:41:17 +02:00
PilzAdam
9cc15d669e
Make range of tools configureable
2013-07-20 20:37:59 +02:00
RealBadAngel
b737eaa357
Add set_breath and get_breath to lua API.
2013-07-20 20:34:11 +02:00
Kahrl
6712aaec9d
Add VoxelArea:position, VoxelArea:iter and VoxelArea:iterp
2013-07-11 22:57:26 +02:00
PilzAdam
456624b450
Remove note in lua-api.txt that there are no vector helper functions
2013-07-08 13:41:46 +02:00
sapier
4f7abcbafa
Fix many formspec menu bugs
2013-07-07 19:49:52 -04:00
ShadowNinja
de5f1f9b42
Add vector helpers
2013-07-07 01:49:11 -04:00
Sfan5
67b58fa494
Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor
2013-07-06 10:32:58 +02:00
sapier
62794622d6
Replace C++ mainmenu by formspec powered one
2013-07-02 19:58:20 -04:00
kwolekr
5fa252aa8b
Decoration: Add schematic rotation support
2013-07-01 18:04:51 -04:00
kwolekr
ee2d8bc482
LuaVoxelManip: Fix minor bug with set_lighting, remove coordinate params for light and liquid updates
2013-06-29 22:23:00 -04:00
kwolekr
dd78709092
Update documentation for get_mapgen_object
2013-06-29 16:24:32 -04:00
kwolekr
2b512c6182
Add voxelarea.lua helper to builtin
2013-06-28 11:07:45 -04:00
kwolekr
5f60730da4
Apply various fixes to several things
2013-06-27 22:35:35 -04:00
kwolekr
0e1e60e195
LuaVoxelManip: Separate VoxelManip data get/set from emerging/blitting data back to map
2013-06-27 22:35:35 -04:00
kwolekr
5c8a16016c
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API
2013-06-27 22:35:35 -04:00
kwolekr
700c16fba1
Add Lua PerlinNoiseMap:get#dMap_flat API
2013-06-27 22:35:35 -04:00
kwolekr
f9c5ed3c7b
Add minetest.get_mapgen_object to API
2013-06-27 22:35:35 -04:00
kwolekr
669194d224
Add LuaVoxelManip
2013-06-27 22:35:35 -04:00