aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
AgeCommit message (Collapse)Author
2023-02-27Add minetest.get_player_window_information() (#12367)rubenwardy
2022-12-24Add callback on_mapblocks_changedJude Melton-Houghton
2022-12-15Use a Lua error handler that calls tostring (#11913)Jude Melton-Houghton
2022-12-12Fix `plantlike_rooted` world-aligned node base textures (#12994)Jude Melton-Houghton
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
2022-11-09Fix typos and en_US/en_GB inconsistency in various files (#12902)Abdou-31
2022-10-30Allow rotating entity selectionboxes (#12379)Lars Müller
2022-10-18Implement vector and node conversion in Lua (#12609)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-13Use enum to define custom registry indicesJude Melton-Houghton
2022-10-04Consolidate API object code (#12728)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-30Implement tool use soundssfan5
2022-09-16Add paramtype2s for 4 horizontal rotations and 64 colors (#11431)Wuzzy
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits. It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir). color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-08-13Check hp_max > 0 for entities (#12667)Lars Müller
2022-07-30Fix some warnings (#12615)rubenwardy
2022-07-14Add check_mod_configuration to main menurubenwardy
2022-07-14Reduce code duplication between c_converter.cpp and helper.cppsfan5
2022-07-14Remove unnecessary float limits from script APIsfan5
Leaves a check for NaN and inf.
2022-07-13Animated particlespawners and more (#11545)Lexi Hale
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
2022-07-09Sounds: Various little improvements (#12486)SmallJoker
Use SimpleSoundSpec where reasonable (OpenAL) Ensure the sound IDs do not underflow or get overwritten -> loop in u16 Proper use of an enum.
2022-06-28Remove tile_images and special_materials obsolete code (#12455)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-06-20Re-order sound-related code (#12382)SmallJoker
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-11No damage effects on hp_max change (#11846)Lars Müller
2022-05-26Reduce size of ContentFeatures structuresfan5
On my system this is a reduction from 4664 to 3704 bytes. This is not for the sake of saving RAM but ensuring commonly used structures fit into caches better.
2022-05-10Use native packer to transfer globals into async env(s)sfan5
2022-05-10Support packing arbitrary graphs (#12289)Jude Melton-Houghton
2022-05-04hud_get: Return precision field for waypoints (#12215)Lars Müller
2022-05-02Async environment for mods to do concurrent tasks (#11131)sfan5
2022-05-02Refactor some Lua API functions in preparation for async envsfan5
2022-03-29Store vector metatable in registryJude Melton-Houghton
2022-03-29Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS
2022-02-08Remove awful Mingw32 workaroundssfan5
Instead a warning is triggered if an affected compiler is detected. closes #12022
2022-02-04Fix types of get_mapgen_setting_noiseparams (#12025)Lars Müller
2021-12-18Don't let HTTP API pass through untrusted functionsfan5
This has been a problem since the first day, oops.
2021-10-01Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-09-10Clean up/improve some scriptapi error handling codesfan5
2021-08-28Remove redundant on_dieplayer callssavilli
2021-08-21HUD: Reject and warn on invalid stat types (#11548)SmallJoker
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-07-27Add bold, italic and monospace font styling for HUD text elements (#11478)sfan5
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-06-30Inventory: Make addList() consistent (#11382)SmallJoker
Fixes list clearing for inv:set_list() using same size, since 2db6b07. addList() now clears the list in all cases. Use setSize() to resize without clearing.
2021-06-20Inventory: show error on invalid list names (#11368)SmallJoker
2021-06-04Add metatables to lua vectors (#11039)DS
Add backwards-compatible metatable functions for vectors.
2021-05-03fix: some code tidy about includes & irr namespacesLoic Blot
2021-05-03refacto: Hud: make driver, client, player, inventory, tsrc private & drop ↵Loic Blot
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-03-30Degrotate support for mesh nodes (#7840)Vitaliy
2021-03-09Use place_param2 client-side for item appearance & prediction (#11024)sfan5
2021-02-17Add nametag background setting and object property (#10937)rubenwardy
2021-02-17Fix short_description fallback order (#10943)rubenwardy
2021-01-29Rework use_texture_alpha to provide three opaque/clip/blend modessfan5
The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29Drop never documented 'alpha' property from nodedefsfan5
Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.