aboutsummaryrefslogtreecommitdiff
path: root/builtin/common (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add luacheck to check builtin (#7895)rubenwardy2019-08-064-14/+12
|
* Builtin: Forward old return valuesSmallJoker2019-08-021-1/+1
| | | | Was forgotten in 69bf964.
* Add /help formspec for commands and privileges (#8385)SmallJoker2019-07-202-7/+145
| | | | | * Trigger for 'all' as well * Add description textarea, double-click to copy
* Use vector.dot and vector.cross in vector.angleHybridDog2019-07-161-5/+3
|
* Add vector.dot and vector.crossHybridDog2019-07-161-0/+12
| | | | Mostly copied from MarkuBu's code
* Optimize core.after in a simple way (#8351)DS2019-03-271-5/+13
|
* core.after: Improve assertion message (#8388)ANAND2019-03-171-1/+1
|
* Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738)ANAND2019-03-171-0/+9
|
* Add math.factorial (#8298)HybridDog2019-03-051-0/+14
|
* Fix string.split returning an empty table if string starts with sepearator ↵Pierre-Yves Rollo2018-11-011-1/+1
| | | | | | | (#7827) Calling string.split(":A:B:C:D", ":") returns an empty array. This is due to first empty string not making repeat loop decreasing max_split which has a 0 value when reaching until. Changing max_splits default value from -1 to -2 fixes that issue.
* Builtin//misc_helpers: Various fixes (#7737)Paramat2018-09-231-3/+3
| | | | | Remove unused variable 'seplen'. Fix 'cparam2'->'param2'. Do not initialise variable 'p' twice.
* Pointed_thing_to_face_pos: Avoid crash when player is inside a node (#7342)Paramat2018-05-161-0/+6
| | | | | | Avoid crash in some situations when player is inside a node, causing 'above' to equal 'under'. In this situation return 'under' which is the node position very close to the face position that would normally be returned.
* Add online content repositoryrubenwardy2018-04-192-30/+40
| | | | Replaces mods and texture pack tabs with a single content tab
* core.rotate_node: Do not trigger after_place_node (#6900)SmallJoker2018-03-291-3/+3
|
* Allow dumping userdata (#7012)you2018-02-081-1/+6
|
* Vector functions: Fix vector.direction() function, improve documentation (#6801)Paramat2017-12-211-26/+5
| | | vector.direction() now returns a normalised vector with direction p1 to p2.
* Give subgames the ability to disallow specific mapgens (#6792)Ezhh2017-12-161-1/+1
|
* Pointed thing to face pos: Use 'eye height' object property (#6754)Paramat2017-12-091-1/+2
|
* core.rotate_node: Run callbacks like with any regular placed node (#6648)SmallJoker2017-11-211-37/+11
|
* Set placer to nil instead of a non-functional one in item_OnPlace (#6449)DTA72017-09-211-6/+8
| | | | | | * Set placer to nil instead of a non-functional one This requires nil checks in core.rotate_node and core.rotate_and_place.
* Fix Rotate Node Placement (#6424)tenplus12017-09-161-2/+6
| | | This properly checks for creative mode or privilege when using fixed rotate_node() function.
* Fix core.wrap_text and make its behaviour consistent with the docssfan52017-09-121-50/+16
| | | | Code based on initial implementation by @dsohler.
* Add '@n' escape sequences and some documentation on translated strings.Nathanaël Courant2017-08-261-0/+2
|
* Add clientside translations.Ekdohibs2017-08-241-0/+38
|
* Add minetest.rgba function that returns ColorString from RGBA or RGB valuesGael-de-Sailly2017-06-221-0/+6
|
* Improve chatcommand params consistency (#5985)Ezhh2017-06-151-2/+2
| | | | | | * Fix and improve params consistency * Move parenthesis requirement to descriptions
* Fix sending color codes to clients that don't support them. (#5950)red-0012017-06-091-31/+13
| | | Also remove `disable_escape_sequences` since it's not needed anymore.
* [CSM] Add function to get player privileges (#5933)red-0012017-06-071-0/+25
| | | | | | * [CSM] Add function to get player privileges + move related help functions to common * Added @Zeno- const
* Builtin: Fix subgame mod selection (#5367)SmallJoker2017-05-171-0/+3
|
* CSM: Document forgotten functionsSmallJoker2017-05-161-1/+1
|
* minetest.deserialize: Throw error when argument not string (#5738)SmallJoker2017-05-091-0/+4
|
* Use a settings object for the main settingsShadowNinja2017-05-061-3/+3
| | | | | | | This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
* Pointed thing to face pos: Fix crash if opening door with slab or stairMarkuBu2017-04-191-2/+2
| | | | | | Avoids crash caused when 'pointed thing -under' and '-above' are not face-neighbours, for example in the case of pointing to the top half of a door.
* [CSM] Use more gettext (#5553)red-0012017-04-101-7/+18
|
* minetest.after(): simplify further, pause in singleplayer (#5500)Auke Kok2017-04-021-11/+1
| | | | | | Using the `dtime` value entirely, this will stop the clock if the game is paused in singleplayer. Since most of the clocks were fixed a long time ago, this should again be safe to use.
* First commit for fine pointed (#5485)MarkuBu2017-04-011-0/+32
|
* Add functions to strip color information. (#5472)Diego Martínez2017-03-281-1/+14
|
* Fix a type bug in colorize functionLoïc Blot2017-03-281-1/+1
| | | | This bug was introduced by dd2f1d7551bfd70357ad4f3fb180704194272147 and reported by @kilbith
* Change command prefix to "." and add "help" command.red-0012017-03-261-1/+72
|
* Typo fixLoïc Blot2017-03-241-1/+1
|
* Add multiline support to colorize. (#5444)red-0012017-03-241-1/+8
|
* Block access to the `io` libraryred-0012017-03-191-8/+9
|
* Give CSM access to use `core.colorize()` (#5113)red-0012017-03-171-0/+32
|
* [CSM] Improve security for client-sided mods (#5100)red-0012017-03-131-2/+3
|
* [CSM] Add local formspecs. (#5094)red-0012017-03-131-1/+2
|
* [CSM] sound_play & sound_stop support + client_lua_api doc (#5096)Loïc Blot2017-03-131-0/+43
| | | | | | | | | | * squashed: CSM: Implement register_globalstep * Re-use fatal error mechanism from server to disconnect client on CSM error * Little client functions cleanups * squashed: CSM: add core.after function * core.after is shared code between client & server * ModApiUtil get_us_time feature enabled for client
* [CSM] Add client-sided chat commands (#5092)red-0012017-03-131-0/+30
|
* Vector: Add vector.sort(a, b): return box edgesAuke Kok2017-01-231-0/+5
| | | | | This function returns the box corners of the smallest box that includes the two given coordinates.
* Revert "Adding particle blend, glow and animation (#4705)"sfan52016-11-141-37/+0
| | | | This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
* Adding particle blend, glow and animation (#4705)Foghrye42016-11-151-0/+37
|