DS
8d387433b1
Fix the documentation of InvRef:get_lists() and clean up code ( #12150 )
2022-03-29 18:06:16 +02:00
SmallJoker
0c1e9603db
HUD: Reject and warn on invalid stat types ( #11548 )
...
This comes into play on older servers which do not know the "stat" type.
Warnings are only logged once to avoid spam within globalstep callbacks
2021-08-21 20:04:04 +02:00
Loic Blot
de85bc9227
fix: some code tidy about includes & irr namespaces
2021-05-03 19:49:19 +02:00
Loic Blot
ccdd886e27
refacto: Hud: make driver, client, player, inventory, tsrc private & drop unused guienv
...
also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack
2021-05-03 19:49:19 +02:00
JosiahWI
11f3deb9c4
Pass ContentFeatures as reference to read_content_features ( #10464 )
2020-10-13 16:36:01 +01:00
sfan5
3475759d1a
Expose collision information to LuaEntity on_step
2020-04-27 20:45:46 +02:00
Beha
b8aaef704d
Move the clamping of hp/breath when their maximums change to read_object_properties(). ( #8689 )
...
This prevents set_properties() calls that have nothing to do with hp_max or breath_max overriding the saved hp before another mod has the chance to set a player's intended hp_max (such as in on_joinplayer).
2019-07-30 17:29:45 +02:00
Dániel Juhász
325bf68041
Raycast: export exact pointing location ( #6304 )
...
* Return intersection point in node coordinates.
* Clarify 'intersection_point' documentation
2018-08-16 20:10:08 +02:00
Dániel Juhász
3face01a20
Node definition manager refactor ( #7016 )
...
* Rename IWritableNodeDefManager to NodeDefManager
* Make INodeDefManager functions const
* Use "const *NodeDefManager" instead of "*INodeDefManager"
* Remove unused INodeDefManager class
* Merge NodeDefManager and CNodeDefManager
* Document NodeDefManager
2018-02-10 21:04:16 +01:00
red-001
9649e47214
[CSM] Add basic HUD manipulation. ( #6067 )
...
* [CSM] Add basic HUD manipulation.
Workaround for on_connect not working right now.
2018-01-20 14:09:58 +01:00
Loïc Blot
1c1c97cbd1
Modernize source code: last part ( #6285 )
...
* Modernize source code: last par
* Use empty when needed
* Use emplace_back instead of push_back when needed
* For range-based loops
* Initializers fixes
* constructors, destructors default
* c++ C stl includes
2017-08-20 13:30:50 +02:00
Loïc Blot
921151d97a
C++ modernize: Pragma once ( #6264 )
...
* Migrate cpp headers to pragma once
2017-08-17 22:19:39 +02:00
bigfoot547
dfa0c15ce0
[CSM] Add function to get the definition of items ( #5732 )
...
Add node def and item def documentation.
Please be ready for merge!
2017-05-21 14:40:55 +02:00
red-001
772944daf6
Fix CSM crash ( #5779 )
...
Caused by dc5bc6c
and them made worse by 5ebf8f9
2017-05-20 16:45:49 +02:00
Vincent Glize
dc5bc6cac7
[CSM] Add event on_place_node API lua ( #5548 )
...
* [CSM] Add event on_place_node API lua
2017-04-29 12:08:16 +02:00
Loïc Blot
f3fe62a0bf
Fix various copy instead of const ref reported by cppcheck ( #5615 )
...
* Also remove InventoryList::peekItem unused function
* Fix some post increment to preincrement reported by cppcheck
2017-04-19 23:02:07 +02:00
Dániel Juhász
58d83a7bb2
Hardware coloring for itemstacks
...
Adds the possibility to colorize item stacks based on their metadata.
In the item/node definition you can specify palette (an image file)
and color (fallback color if the item has no palette or metadata).
Then you can add palette_index to the metadata.
Dropped itemstacks with different colors do not merge.
2017-04-08 18:39:15 -07:00
red-001
88df9fb5b6
Add `get_wielded_item`
2017-03-13 23:56:05 +01:00
sfan5
7279f0b373
Add particle animation, glow
...
This is implemented by reusing and extending the
TileAnimation code for the methods used by particles.
2017-01-18 23:21:01 +01:00
sfan5
5fd1ef9b58
Revert "Adding particle blend, glow and animation ( #4705 )"
...
This reverts commit 93e3555eae
.
2016-11-14 15:28:06 +01:00
Foghrye4
93e3555eae
Adding particle blend, glow and animation ( #4705 )
2016-11-15 00:09:59 +10:00
Loic Blot
613797a304
Replace various std::map with UNORDERED_MAP + various cleanups
...
This is part 2 for 5f084cd98d
Other improvements:
* Use the defined ItemGroupList when used
* make Client::checkPrivilege const
* inline some trivial functions
* Add ActiveObjectMap typedef
* Add SettingsEntries typedef
2016-10-05 10:53:19 +02:00
RealBadAngel
3295f3c401
Fix tiling issues for PLANTLIKE and FIRELIKE with FSAA
2015-08-05 22:52:32 +02:00
kwolekr
7b171ea2be
Fix code style from recent commits and add misc. optimizations
2015-07-02 23:14:30 -04:00
TeTpaAka
c0335f7d13
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
dcc48976ce
Move get_schematic and read_schematic to l_mapgen.cpp
2014-12-10 01:49:57 -05:00
kwolekr
cfba55ba0a
Remove get_noiseparams function. read_noiseparams should be used from now on
2014-12-10 00:56:44 -05:00
kwolekr
2fd3d52020
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
kwolekr
7616537bc0
Add Generator Element Management framework
...
Add BiomeManager, OreManager, DecorationManager, and SchematicManager
2014-11-12 23:02:41 -05:00
kwolekr
28d6326bd4
Update set_mapgen_params and set_gen_notify Lua API to use new flag format
2014-03-08 11:35:04 -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
ShadowNinja
a3586cd18d
Add maximum recursion depth to read_json_value
2014-01-11 14:08:02 -05:00
ShadowNinja
a9df87ede0
Rename get_json_value to read_json_value
2014-01-11 13:52:26 -05:00
ShadowNinja
1ed90c90c3
Add 'minetest.write_json'
2013-12-18 16:46:53 -05:00
Kahrl
1ecf51a13f
Add minetest.parse_json, engine.parse_json
2013-09-02 02:20:08 +02:00
Kahrl
4e1f50035e
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
kwolekr
c1b829077a
Decoration: Add Schematic decoration type
2013-06-22 01:11:52 -04:00
Kahrl
773471750d
Fix class/struct forward declaration inconsistencies (good on ya, MSVC)
2013-06-06 22:57:38 +02:00
sapier
ab43377577
Move scriptapi to separate folder (by sapier)
...
On the lua side, notably minetest.env:<function>(<args>) should now
be replaced by minetest.<function>(<args>).
The old way is and will stay supported for a long time.
Also:
Update and clean up lua_api.txt (by celeron55)
Move EnvRef to lua and remove add_rat and add_firefly (by kahrl)
Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
2013-05-25 00:51:02 +02:00