Commit Graph

413 Commits

Author SHA1 Message Date
Lars Müller
408faa11a1 Allow removal of item definition fields () 2024-05-20 20:37:40 +02:00
sfan5
c4703a7f19 Fix wrong collision axis in Lua moveresult
introduced by c24a04d246221e13a626f4a4dd34037a5332a935
2024-05-17 14:32:57 +02:00
grorp
af8cb63292 Add object's own position for each collision to moveresult () 2024-05-05 13:28:59 +02:00
sfan5
c24a04d246 Optimize pushing collision data for entity on_step
Since this is fixed overhead for every entity, this is important to optimize.
This optimizes one very common case.

before:
  push_collision_move_result [us] _____________ 64512x   3.562

after:
  push_collision_move_result [us] _____________ 72636x   0.831
2024-05-03 16:28:29 +02:00
sfence
72cb4e9bea Allow nil puncher in object:punch () 2024-04-28 17:55:04 +02:00
OgelGames
a7bde8e523 Hide internal detached inventory functions () 2024-04-28 00:07:45 +02:00
LoneWolfHT
c63c05b141 Fix crash when player leaves before breath removal job 2024-04-24 22:32:07 +02:00
cx384
8a5e49c856 Refactor builtin HUD () 2024-04-10 11:43:15 +02:00
1F616EMO~nya
2d8e4df7bc Allow optional actor ObjectRef value in node interaction calls () 2024-04-05 13:00:50 +02:00
cx384
234b01a8c2 Item meta pointing range () 2024-03-17 15:55:38 +01:00
SmallJoker
61a5733692 Unittest: Add inventory callback tests 2024-03-16 20:14:05 +01:00
cx384
60810c2d37 Add L-system trees as decorations () 2024-03-12 20:10:28 +01:00
y5nw
fc80f65a6d Try to preserve metatable when exchanging data with the async env ()
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-03-06 18:04:49 +01:00
DS
d4d4712361 Implement get_node with a get_node_raw ()
Add /bench_bulk_get_node
Considerably improves the execution speed of core.get_node
2024-03-03 15:53:23 +01:00
Gregor Parzefall
84dd812da4 Fix hud_elem_type warning triggered by builtin minimap
Fixes a deprecation warning introduced by adaa4cc2f3c6e624b2c9ab7f40df4139b2a61c5a.
2024-02-19 19:04:43 +01:00
sfan5
3cac17d23e Lua on each mapgen thread () 2024-02-13 22:47:30 +01:00
sfan5
d4b107e2e8 Enable dynamic_add_media to take the file data instead of a path 2024-02-13 22:44:10 +01:00
sfan5
af69d4f7a9 Allow dynamic_add_media at mod load time 2024-02-13 22:44:10 +01:00
kromka-chleba
6c8ae2b72a Fix liquid falling if in "float" group ()
* Make falling liquid source nodes replace flowing nodes

This makes falling liquid source nodes in group:float replace
flowing nodes on the ground instead of being placed above
the flowing node.

* Make flowing liquids "fall through" for source nodes

This makes liquids in float and falling_node groups fall through
flowing liquid nodes instead of being supported by them in the air.

---------

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-02-12 23:24:54 +01:00
cx384
adaa4cc2f3 Move hard coded minimap to builtin () 2024-02-07 20:13:23 +01:00
Lars Mueller
f0180ad488 Fix revoke callbacks being run for false values passed to set_privileges 2024-01-22 22:24:32 +01:00
Lars Müller
afc48cf224 Address set_player_privs footgun ()
---------

Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-01-22 20:06:03 +01:00
cx384
5958714309 Tool specific pointing and blocking pointable type () 2024-01-22 18:27:08 +01:00
Wuzzy
08ee6d8d4b Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode () 2024-01-17 17:47:06 +01:00
Jude Melton-Houghton
e7dd9737bd Reduce minetest.after time complexity and provide ordering guarantee
---------

Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-01-16 23:46:43 +01:00
sfence
ceaa7e2fb0 Add API for restoring PseudoRandom and PcgRandom state () 2024-01-16 23:20:52 +01:00
cx384
467d3a8c62 Rename hud_elem_type to type () 2023-12-29 21:51:02 +01:00
sfan5
93dfa8a6d8 Optimize and improve built-in PNG writer () 2023-12-27 11:56:48 +01:00
Lars Mueller
d58cc7fb7a Fix on_(grant|revoke) not being run by mods 2023-12-21 18:54:50 +01:00
DS
8cf76e004f Add new flags to minetest.features for 5.8.0 features () 2023-11-12 20:08:57 +01:00
savilli
852d6a7976 Fix potential freeze in core.check_for_falling 2023-08-27 20:12:53 +02:00
fluxionary
587e2b2526 Set item description as infotext for item entities () 2023-08-24 12:00:18 +07:00
sfan5
43c9c38a28 Fix itemdef defaults not being applied in async env 2023-08-14 18:16:36 +02:00
sfan5
4fdd2dec59 Move core.run_callbacks and related to common folder 2023-06-23 09:05:26 +02:00
mazes-80
23f7aab354 Item Entity: prevent moveresult assert when attached () 2023-06-05 12:00:11 +02:00
DS
ea095d3f69 Fix core.item_eat for same-item replace_with_item and split stacks before dropping ()
The replace_with_item can be added to the slot of the wield item, which
is afterwards overwritten. This causes item loss.
2023-03-27 20:02:23 +02:00
Vitra Suchovich
2dafce6206 Say /setpassword is insecure 2023-02-18 00:04:52 +01:00
Jude Melton-Houghton
5c248c2d7d Add callback on_mapblocks_changed 2022-12-24 08:24:59 -05:00
Jude Melton-Houghton
f80ea73bfb Let mods choose a forceload limit () 2022-12-03 10:41:34 -05:00
Wuzzy
3c7f26d937 Add support for attached facedir/4dir nodes () 2022-11-24 17:56:07 -05:00
Jude Melton-Houghton
475005012a Improve ABM and LBM registration error handling () 2022-11-20 21:26:54 +01:00
Abdou-31
d1b80b462e Fix typos and en_US/en_GB inconsistency in various files () 2022-11-09 11:57:19 -05:00
Jude Melton-Houghton
8f1593e4e8 Add VoxelArea() constructor () 2022-10-22 08:05:45 -04:00
DS
22cbc05808 Add an item pick up callback (2) ()
Co-authored-by: SmallJoker <mk939@ymail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-10-01 15:21:06 -04:00
20kdc
b1233056b7 Add zstd compression support () 2022-09-28 09:06:14 -04:00
Jude Melton-Houghton
f4a01f3a5d Avoid duplication of mod metadata in memory ()
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-26 17:03:43 -04:00
Jude Melton-Houghton
310b12b5ed Content ID caching in Lua ()
* Cache content IDs in Lua

Co-authored-by: sfan5 <sfan5@live.de>
2022-09-18 17:46:48 +02:00
Wuzzy
1d04903c19 Add paramtype2s for 4 horizontal rotations and 64 colors ()
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-16 13:18:55 +02:00
Zughy
3132efcc01 Reassure previous nil behaviour for tiles and special_tiles ()
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-08-13 15:35:28 +01:00
Jude Melton-Houghton
ab8dfb45b4 Allow buffer argument to VoxelManip:get_light_data () 2022-08-13 08:53:47 +02:00