7028 Commits

Author SHA1 Message Date
Anand S
bf27f17b1c Add hasprivs chat command (#7336)
Require 'basic_privs' priv
Only the online players are listed.
2019-03-13 15:00:13 +13:00
SmallJoker
19f6ec9450 Fix the /shutdown command (#7431) 2019-03-13 15:00:03 +13:00
number Zero
31a79083a3 Fix typo (GH#7421) 2019-03-13 14:59:49 +13:00
Loïc Blot
9071062448 CSM/SSM: Add on_mods_loaded callback (#7411)
* CSM/SSM: Add on_mods_loaded callback
2019-03-13 14:59:09 +13:00
ClobberXD
e3dcdbad3a Check if player exists on use of /privs (#7554)
* /privs: Check if player exists
2019-03-13 14:53:40 +13:00
paramat
88795b9f9a Spawn level: Add 'get_spawn_level(x, z)' API
Returns a suitable player spawn y co-ordinate for unmodified terrain.
2019-03-13 14:47:04 +13:00
Paramat
74f64c1c73 Vertical biome blend: Tune PRNG seed for finer detail (#7329) 2019-03-13 14:46:13 +13:00
paramat
8b5b291147 Biomes: Fix vertical biome blend 2019-03-13 14:45:34 +13:00
paramat
f93cac5239 Biome API: Add 'get_biome_name(biome_id)' API
Change name of default biome to a more suitable lowercase 'default'.
2019-03-13 14:43:12 +13:00
paramat
5f7cfce654 Biomes: Add 'get heat', 'get humidity', 'get biome data' APIs
'get biome data' returns biome id, heat and humidity.
Clean up nearby lines in lua_api.txt.
2019-03-13 14:43:10 +13:00
Paramat
f46c0b9c3f Biomes: Add vertical biome blend (#6853)
Add 'vertical blend' parameter to biome registration that defines how
many nodes above the biome's 'y max' limit the blend will extend.
2019-03-13 14:42:17 +13:00
luk3yx
55b566f3c2 Append default formspec theme in CSMs. 2019-03-13 08:38:25 +13:00
rubenwardy
5fb79e38a6 Fix cast from const by accessing string data directly (#8354)
Fixes #8327
2019-03-13 08:17:48 +13:00
paramat
ee99140e3a Simple decorations: Make 'place_offset_y' usable with simple decorations
Necessary for placing the base cube of 'plantlike_rooted' drawtype in the
seabed instead of on it.
Useful for placing decorations sunk into, or buried in, the ground.
2019-03-12 21:27:27 +13:00
paramat
e976ac2bb5 Biomes/decorations/ores: Make relative to 'water_level' setting
Add 'biome_zero_level' argument to 'generateBiomes()', 'deco_zero_level'
argument to 'placeAllDecos()' and 'ore_zero_level' to 'placeAllOres()'
to allow mapgens to vertically shift the registered biomes, decorations
and ores per-mapchunk.
Will also allow many realm possibilities in future mapgens.
2019-03-12 21:21:55 +13:00
luk3yx
c069e219f0 Rename gui_formbg.png to builtin_gui_formbg.png.
• Prevents conflicts with custom subgames/mods that could have a different gui_formbg.png.
 • This texture should not be used outside of the engine and minimal subgame to ensure backwards-compatibility.
2019-03-12 20:56:24 +13:00
luk3yx
b3dc9b6b45 (Temporarily) switch to a minetest_game fork.
• (Hopefully temporarily) switch to my minetest_game fork, that removes binoculars (it currently doesn't work with minetest-luk3yx-4 0.4.19), and fixes the player collisionbox offset.
2019-03-12 18:11:01 +13:00
luk3yx
4990564959 Change version to 0.4.19 2019-03-12 18:03:51 +13:00
luk3yx
1f13b7584f Use a formspec background in the "minimal" game
• Use the now built-in gui_formbg.png in the "minimal" game
 • Make the minimal warning text yellow to stand out more.
2019-03-12 17:27:16 +13:00
luk3yx
61e806f312 Add pause menu background and add a copy of gui_formbg.png. 2019-03-12 17:10:29 +13:00
Dániel Juhász
5cff3e4865 Expose getPointedThing to Lua
This commit introduces Raycast, a Lua user object, which can be
used to perform a raycast on the map. The ray is continuable, so one can
also get hidden nodes (for example to see trough glass).
2019-03-12 16:39:17 +13:00
SmallJoker
47b883b4b9 is_area_protected: Rename from intersects_protection (#7073)
* is_area_protected: Rename from intersects_protection
Return first protected position
Clarify docs: Mods may overwrite the function
2019-03-12 15:36:57 +13:00
Paramat
7fb7a79f8d Intersects_protection(): Move from Minetest Game to builtin (#6952)
A useful function that applies 'core.is_protected()' to a 3D lattice of
points evenly spaced throughout a defined volume, with a parameter for
the maximum spacing of points.
2019-03-12 15:36:34 +13:00
red-001
6b3d44e5c5 Allow the join/leave message to be overridden by mods. 2019-03-12 15:33:25 +13:00
luk3yx
4003b03eb3 Add formspec prepends (or appends?)
• Implements https://github.com/minetest/minetest/pull/7099 in a backwards-compatible way.
 • Formspec prepends are appended (I don't think prepending them works) to formspecs before sending them to clients. This way older clients will still be able to display formspec prepends.
2019-03-12 14:52:53 +13:00
luk3yx
0cee3e3c3a Allow main menu music to be disabled. 2019-03-12 13:40:16 +13:00
luk3yx
ac62ffacc2 Regenerate minetest.conf.example 2019-03-08 08:57:47 +13:00
luk3yx
6dfe2a2e3f Update bump_version.sh 2019-03-08 08:47:31 +13:00
rubenwardy
0d8cdab46f Fix incorrect string length check after cast 2019-03-08 08:14:11 +13:00
sfan5
6b505ab61a Update a few dependency versions for buildbot (#8319) 2019-03-08 08:13:25 +13:00
HybridDog
0eaf6f7b54 World config: Make depends easier to read (#7396)
* Do not always show every depends textfieds

When there are no dependencies, it does not longer show an empty list.

* Adjust the list height to avoid a scrollbar when possible

* change minimum height and no dependencies message

* Do not get depends for modpacks
2019-03-08 08:11:10 +13:00
Jozef Behran
f001791201 Optimize interaction distance checker (#8193)
The "what" parameter is being passed by value, most likely by
accident as the type is "const std::string". Convert it to a
reference by adding the missing "&".
2019-03-08 08:10:23 +13:00
Paramat
add01886b5 F5 debug info: Use full words for NSEW directions for readability (#7461) 2019-03-06 19:18:46 +13:00
xerox123official
f1810e9d73 Display pitch angle in debug menu 2019-03-06 19:08:56 +13:00
ThomasMonroe314
22fcad4fe9 F5 debug info: Add colons, use lowercase except for FPS and RTT 2019-03-06 17:02:37 +13:00
paramat
bccd7d209c F5 Debug info: More compact, return to 2 lines
All data fits on width 960, most useful data still visible on width 800.
2019-03-06 17:02:21 +13:00
Paramat
a83fb42e88 F5 debug display: Reformat and remove some information (#6125)
For consistency return to 'FPS =', add comma before FPS.
Remove 'R' from 'range_all' as may be re-keymapped.
Remove inconsistent brackets from 'range_all'.
Change 'v_range' to 'view_range'.
Add 'pos = ' before co-ordinates.
Add spaces around '=' in yaw display.
Remove brackets from around 'yaw' and 'seed'.
Move 'pointing_at' to 3rd line.
Remove 'param1' (0 for all solid nodes and unreadable for light sources due to
light bank encoding).
Remove file name of pointed node top tile (this also removes the need to get
ContentFeatures for the node, slightly improving performance).
Replace quotes around node data with brackets, looks better and more consistent.

Add 'guitext3' for third line.
Use 'setVisible' for all 3 lines to control the setting of each text rectangle.
Improve logic of 3rd line to only run code it needs to depending on whether
pointing data is avaialble and whether node is not 'ignore' and not 'unknown'.
2019-03-06 15:47:04 +13:00
Wuzzy
bee6ec13fd Show param1 and param2 in debug screen (#6031)
* Show param1 and param2 in debug screen

* Add units and some formatting to debug screen

* Minor refactor of param1/param2 debug display
2019-03-06 15:47:02 +13:00
luk3yx
7ffdd430bb Set pause_on_lost_focus to true by default. 2019-03-06 15:44:51 +13:00
rubenwardy
397a7e1dd1 Add check to pause game on lost window focus 2019-03-06 15:42:07 +13:00
number Zero
d5c3e7a2af Mesh generation: Fix performance regression caused by 'plantlike_rooted' PR
Regression caused by ef285b2815962a7a01791059ed984cb12fdba4dd
2019-03-06 15:25:18 +13:00
number Zero
54c3c2df3e Add 'plantlike_rooted' drawtype
Useful for underwater plants.
Node consists of a base cube plus a plantlike extension that can pass through
liquid nodes above without creating air bubbles or interfering with liquid flow.
Uses paramtype2 'leveled', param2 defines height of plantlike extension.
2019-03-06 15:23:23 +13:00
Loïc Blot
39d01bb895 Cpp11 initializers: last src root changeset (#6022)
* Cpp11 initializers: last src root changeset

Finish to migrate all src root folder files to C++11 constructor initializers
2019-03-06 15:20:48 +13:00
luk3yx
8f3251799d Fix compilation error 2019-03-06 14:57:10 +13:00
rubenwardy
f2f15a1944 Fix naming conventions of noise userdata 2019-03-06 14:51:48 +13:00
paramat
ec0be7a24d Gennotify: Add 'minetest.get_decoration_id' API
Returns the decoration ID for the provided decoration name string.
For use with gennotify, to know the decoration IDs for use in
'minetest.set_gen_notify'.
2019-03-06 14:34:14 +13:00
HybridDog
ad9f2fdca4 Add math.factorial (#8298) 2019-03-06 14:28:06 +13:00
DS
ad846371eb Add sounds for falling and attached nodes (#7719)
* Add sounds for falling and attached nodes

The sound specified in `node_definition.sounds.fall` is used.
When a falling node is spawned at a position or an attached node drops, the sound is played at this position.

* allow all sorts of soundspecs
2019-03-06 14:26:26 +13:00
ashtrayoz
35f2bcf9d4 Add callback to preserve node metadata as item metadata 2019-03-06 14:26:17 +13:00
SmallJoker
2cf9d39184 core.spawn_falling_node: Keep metadata (#7476) 2019-03-06 14:24:05 +13:00