Commit Graph

210 Commits

Author SHA1 Message Date
bri cassa 88ca34203d Merge remote-tracking branch 'upstream/master' 2023-06-07 21:32:30 +02:00
HybridDog 8bebf6324e
Fix error when picking up a node with deprecated tile definition (#40)
If `image` instead of `tile` was used, the mod passed nil to minetest.inventorycube.
The color field of a tile is now also supported (the code is used only for the particle image calculation).
2022-10-06 18:36:50 +02:00
bri cassa cae46704eb Merge remote-tracking branch 'upstream/master' 2021-09-21 23:00:00 +02:00
sfan5 d19d00d690
Mark pickup sound as ephemeral 2021-09-02 23:42:56 +02:00
Sys Quatre 900614a74c Merge remote-tracking branch 'upstream/master' 2020-09-28 20:52:45 +02:00
HybridDog 1545f82cb7
Fix error for 'nil' player in minetest.handle_node_drops (#36) 2020-09-27 19:15:57 +02:00
Sys Quatre 29983259ee Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-16 22:54:09 +02:00
David Leal de38b20fa6
Add GitHub workflow and LuaCheck (#34)
* Add GitHub workflow and LuaCheck

* Fix LuaCheck warnings

* Improve README.md
2020-05-25 20:42:09 +02:00
HybridDog f015cc1631 Ignore players which are outside the map 2020-05-17 21:12:57 +02:00
HybridDog 72f4225058 Support the moveresult parameter of on_step
The parameter is available in Minetest 5.3.0-dev.
thanks to sofar and VanessaE for the fix and report
2020-05-08 11:54:33 +02:00
Loïc Blot 7cb8086a25
Get player inventory before looping (#30)
This prevents the inventory check on each object in the loop and thus shortens the code.
Additionally, the inventory existence check is removed because get_inventory never returns nil for player objects.
2020-04-15 20:21:48 +02:00
Sys Quatre c6a80bd4fa Merge branch 'master' of yunohost.local:minetest-mods/item_drop into nalc-1.2-dev 2019-12-22 13:35:07 +01:00
HybridDog 8ef6ba3c0f Do not drop items when a Node Breaker digs a node 2019-09-05 12:00:13 +02:00
HybridDog fadfbf7e05 Do not drop items when a Node Breaker digs a node 2019-09-05 12:00:13 +02:00
HybridDog 682a345495 Handle item drops more carefully
Do not ignore itemstrings which contain more than just the name; fixes missing clay drops
Support dropped items with toolwear and/or metadata
2019-07-01 15:46:06 +02:00
HybridDog 5611b4d639 Handle item drops more carefully
Do not ignore itemstrings which contain more than just the name; fixes missing clay drops
Support dropped items with toolwear and/or metadata
2019-07-01 15:46:06 +02:00
texmex 871be4048e Replace another deprecated function 2019-06-15 13:26:24 +02:00
texmex 26d0532cbd
Replace another deprecated function 2019-06-15 13:26:24 +02:00
texmex 95e89b1c94 Merge pull request #24 from Panquesito7/master
Replace deprecated functions with newer ones
2019-06-15 02:51:01 +02:00
texmex becdfd113a
Merge pull request #24 from Panquesito7/master
Replace deprecated functions with newer ones
2019-06-15 02:51:01 +02:00
Panquesito7 faf6d9236d Replace deprecated functions with newer ones 2019-06-14 17:47:21 -05:00
Panquesito7 934ebff45a
Replace deprecated functions with newer ones 2019-06-14 17:47:21 -05:00
HybridDog c943cf2042 Enable pickup_keyinvert by default 2019-06-04 16:44:46 +02:00
HybridDog 5069afa834 Enable pickup_keyinvert by default 2019-06-04 16:44:46 +02:00
HybridDog 666ff41136 Allow disabling the pickup key
To support lecagy setting names, I added two functions. They use the old setting only if the new one is not set.
(I'm not sure if enable_item_pickup_key is a valid legacy setting…)

I did not test this commit thoroughly.
2019-05-29 20:44:59 +02:00
HybridDog 70b3386322 Allow disabling the pickup key
To support lecagy setting names, I added two functions. They use the old setting only if the new one is not set.
(I'm not sure if enable_item_pickup_key is a valid legacy setting…)

I did not test this commit thoroughly.
2019-05-29 20:44:59 +02:00
texmex 1157ec15df Update description.txt 2019-05-27 09:21:59 +02:00
texmex 1e9e73e978
Update description.txt 2019-05-27 09:21:59 +02:00
texmex 765bb0a405 Update mod.conf 2019-05-27 09:21:28 +02:00
texmex f7d62113ff
Update mod.conf 2019-05-27 09:21:28 +02:00
HybridDog aef629f5b3 Fix crash due to a missing function
I accidentally wrote can_pickup instead of item_drop.can_pickup in a previous commit.
2019-05-26 14:13:54 +02:00
HybridDog 3a9a506011 Fix crash due to a missing function
I accidentally wrote can_pickup instead of item_drop.can_pickup in a previous commit.
2019-05-26 14:13:54 +02:00
HybridDog 6637bbb813 Fix missing ore drops 2019-05-16 11:36:15 +02:00
HybridDog 427117d786 Fix missing ore drops 2019-05-16 11:36:15 +02:00
Sys Quatre c1637b1975 Corrige crash à cause d'un mauvais appel de fonction 2019-05-10 11:54:20 +02:00
Sys Quatre e10486d2aa Merge branch 'master' into nalc-1.2 2019-05-10 00:12:36 +02:00
tacotexmex f8b60b0b05 Update readme 2019-02-13 02:54:58 +01:00
tacotexmex 532a3cb0d0 Update readme 2019-02-13 02:54:58 +01:00
texmex 0aa32c1fed Remove unneeded variable assertion, fix #20 2019-02-12 13:25:34 +01:00
texmex 56d2eeda5c
Remove unneeded variable assertion, fix #20 2019-02-12 13:25:34 +01:00
tacotexmex 4c0a23855a Add a screenshot 2019-02-12 05:37:14 +01:00
tacotexmex c52ff0ea55 Add a screenshot 2019-02-12 05:37:14 +01:00
tacotexmex 0cee07b9d5 Add setting for disabling manual item pickups by mouse 2019-02-12 01:12:59 +01:00
tacotexmex 8e89c148be Add setting for disabling manual item pickups by mouse 2019-02-12 01:12:59 +01:00
HybridDog 97158f7fac Ignore items where picking failed
tested with item_helpers
2019-02-05 19:29:40 +01:00
HybridDog 726b5f4872 Ignore items where picking failed
tested with item_helpers
2019-02-05 19:29:40 +01:00
HybridDog dd01ddf5ff Fix crash when trying to spawn an unknown item 2019-02-01 17:55:12 +01:00
HybridDog 8e1878d101 Fix crash when trying to spawn an unknown item 2019-02-01 17:55:12 +01:00
HybridDog d3687f027a Add three functions which can be used by other mods 2019-01-05 13:54:12 +01:00
HybridDog f6b8bcd7a7 Add three functions which can be used by other mods 2019-01-05 13:54:12 +01:00