1
0
mirror of https://github.com/minetest-mods/item_drop.git synced 2025-08-05 04:50:22 +02:00
Commit Graph

113 Commits

Author SHA1 Message Date
de38b20fa6 Add GitHub workflow and LuaCheck ()
* Add GitHub workflow and LuaCheck

* Fix LuaCheck warnings

* Improve README.md
2020-05-25 20:42:09 +02:00
f015cc1631 Ignore players which are outside the map 2020-05-17 21:12:57 +02:00
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
7cb8086a25 Get player inventory before looping ()
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
8ef6ba3c0f Do not drop items when a Node Breaker digs a node 2019-09-05 12:00:13 +02:00
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
871be4048e Replace another deprecated function 2019-06-15 13:26:24 +02:00
95e89b1c94 Merge pull request from Panquesito7/master
Replace deprecated functions with newer ones
2019-06-15 02:51:01 +02:00
faf6d9236d Replace deprecated functions with newer ones 2019-06-14 17:47:21 -05:00
c943cf2042 Enable pickup_keyinvert by default 2019-06-04 16:44:46 +02:00
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
1157ec15df Update description.txt 2019-05-27 09:21:59 +02:00
765bb0a405 Update mod.conf 2019-05-27 09:21:28 +02:00
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
6637bbb813 Fix missing ore drops 2019-05-16 11:36:15 +02:00
f8b60b0b05 Update readme 2019-02-13 02:54:58 +01:00
0aa32c1fed Remove unneeded variable assertion, fix 2019-02-12 13:25:34 +01:00
4c0a23855a Add a screenshot 2019-02-12 05:37:14 +01:00
0cee07b9d5 Add setting for disabling manual item pickups by mouse 2019-02-12 01:12:59 +01:00
97158f7fac Ignore items where picking failed
tested with item_helpers
2019-02-05 19:29:40 +01:00
dd01ddf5ff Fix crash when trying to spawn an unknown item 2019-02-01 17:55:12 +01:00
d3687f027a Add three functions which can be used by other mods 2019-01-05 13:54:12 +01:00
62dbd6bc0d Fix a legacy setting support 2019-01-05 13:26:29 +01:00
02683056e5 Fix item magnet
There is no field named physical_state, so the item didn't lose the physical property, but it happily hopped towards me after I dropped it.
Disabling physical looked quite wrong, because the item flew through mountains. Instead, it gets zero acceleration now.
To avoid resetting the acceleration in the on_step function, it is overridden to disable acceleration and velocity changes during executing the original on_step.
Small code fix: Add underscores in set_velocity and set_acceleration
2018-10-03 17:58:58 +02:00
1d2e42eaab Fix crash when a node texture is a table 2018-08-12 10:33:55 +02:00
0112f1f9ec Tidy up pickup_particle code 2018-08-12 10:33:49 +02:00
5f3e6e6b1b Merge branch 'master' of https://github.com/minetest-mods/item_drop 2018-06-23 18:39:36 +02:00
13be42cd39 Reflect particle feature setting in readme 2018-06-23 18:39:29 +02:00
e2d370a17a Reflect particle feature setting in readme 2018-06-23 18:39:17 +02:00
50b976748d Add WCILA code origin and license 2018-06-23 10:15:40 +02:00
1901524074 Merge pull request from minetest-mods/dev
Bug fixes
2018-06-23 10:13:55 +02:00
608b5dfe6e Simplify inventorycube code (again) 2018-06-23 10:09:02 +02:00
1e5718cbac Fix settings bug 2018-06-23 10:02:04 +02:00
c57d3c1514 Fix crash on no drops (@HybridDog) 2018-06-23 10:01:40 +02:00
cce81f6fe9 Fix settings bug 2018-06-18 20:54:59 +02:00
88897d9049 Merge pull request from minetest-mods/pickerparticle
Pickup particle feature
2018-06-18 10:31:33 +02:00
b6b1a8e95b Complete pickup particle feature 2018-06-18 10:18:06 +02:00
08ba364510 Look for legacy setting names 2018-06-17 09:27:43 +02:00
b576e882a7 Merge pull request from minetest-mods/rewrite
Rewrite
2018-06-17 07:41:43 +02:00
15968a0240 Update readme 2018-06-17 07:35:06 +02:00
f1fcc478a1 Rename the key press test function 2017-09-16 13:18:20 +02:00
3d88b7b5c6 Disable item pickup age if the player has to hold a key for taking items 2017-09-16 12:59:28 +02:00
70068fd307 Typo 2017-09-15 18:40:11 +02:00
2577b99556 Update CONTRIBUTING.md 2017-09-15 16:25:53 +02:00
d5b28e01b0 Fix missing division for dropped item velocity calculation 2017-09-15 10:27:28 +02:00
41e93d3bf6 Merge pull request from minetest-mods/no_pop
Always collect items one by one
2017-09-12 13:15:19 +02:00
124e3588e5 Merge pull request from minetest-mods/readmeup
Update README
2017-09-12 13:14:58 +02:00
464fce9a87 Create CONTRIBUTING.md 2017-09-12 13:12:23 +02:00
cbd717b549 Update README 2017-09-12 10:49:57 +02:00
609d441ef4 Always collect items one by one 2017-09-12 10:13:49 +02:00