Commit Graph

155 Commits

Author SHA1 Message Date
wallabra 218990c114
Merge branch 'master' into item-physics 2022-06-20 16:45:00 -03:00
PrairieAstronomer c9470b8262 adds new advancements and minor detail changes 2022-03-29 12:49:39 -06:00
kay27 7ca28d8a27 Make safer get_staticdata 2022-03-14 06:05:32 +04:00
wallabra 0af898fc6e
Ensure flowing items don't affect collection animation 2022-02-17 21:15:46 -03:00
wallabra 09854a9af4
Change effect of gravity on submerged items 2022-02-17 17:08:58 -03:00
kay27 1ef93eab37 #198 Fix a crash, step 13 2022-02-14 02:25:19 +00:00
kay27 1537232f17 #198 Fix a crash, step 12 2022-02-14 06:23:27 +04:00
kay27 b86446df34 #198 Fix a crash, step 11 2022-02-14 06:18:07 +04:00
kay27 7e9388b80d #198 Fix a crash, step 10 2022-02-14 06:15:03 +04:00
wallabra 4177632d21
Fix gravity on items that leave waterflow 2022-02-09 04:03:37 -03:00
wallabra 49d5e1a0f6
Do not reset item obj velocity upon leaving waterflow 2022-02-09 04:01:18 -03:00
wallabra 991eeca033
Let items undergo less waterflow drag on ice floors 2022-02-09 03:57:56 -03:00
wallabra 16c63972f9
Adjust ground friction values for item obj physics 2022-02-09 03:50:35 -03:00
wallabra 3473f4ae36
Fix item friction reduction on slippery floor 2022-02-09 03:49:25 -03:00
wallabra 11a661f427
Let item entity ground friction change when on slippery floors 2022-02-09 03:26:05 -03:00
wallabra 44f327b60b
Adjust default drag values, round 2 2022-02-09 03:17:36 -03:00
wallabra bce9e59e82
Adjust default drag values 2022-02-09 03:15:42 -03:00
wallabra 6f6b70dedc
Fix typo in passing newvel to set_velocity in item phys 2022-02-09 03:12:56 -03:00
wallabra 4105e07670
Fix ground drag var reference in item physics 2022-02-09 03:09:44 -03:00
wallabra 2aa565ac21
Add ground drag force to avoid items stuck on ledges 2022-02-09 03:07:02 -03:00
wallabra 77bfc6c174
Scale fluid flow forces on items with dtime 2022-02-09 03:03:10 -03:00
wallabra ddbc3353a2
Change item on flowing water physics adding momentum and drag (experimental) 2022-02-09 02:44:39 -03:00
Lizzy Fleckenstein a4e73886d5
Rework XP API 2021-11-03 19:36:57 +01:00
Nils Dagsson Moskopp 256de2bc36 Log warning for non-serializable item entity fix 2021-09-15 18:10:40 +02:00
sfan5 693a5317ef Fix non-serializable item entity unload crash
Some items, like shulkers or books, can have so much metadata that the
corresponding item entity can not be serialized by the Minetest engine.

Without this patch, dropping such an item and then moving away crashes
Minetest, as it can not serialize the entity with serializeString16()
when unloading a map block.

The patch resets the overlong metadata of non-serializable item entities.
This avoids a crash and makes it possible to retrieve a “sanitized” item
without metadata when the mapblock containing the item entity is reloaded.

Originally sfan5 guessed the maximum possible item entity serialization size
that would not lead to a crash as 65530 bytes, but anon5 calculated it to be
actually 65487 bytes. This has been experimentally verified by erlehmann.
2021-09-15 18:10:32 +02:00
NO11 dc8436fdf9 Destroy objects near cactus faster (make it possible to throw items at a cactus) 2021-09-06 14:34:25 +00:00
AFCMS cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
AFCMS 3bedc81068 fix some code style issues in lightning 2021-05-28 00:07:06 +02:00
AFCMS 9e074af07f unify code style [1] 2021-05-25 12:52:25 +02:00
AFCMS fddaacdeae [mcl_item_entity] fix warnings 2021-05-25 00:43:42 +02:00
Lizzy Fleckenstein 75d9450002 Make compasses point upwards when dropped as an item 2021-05-04 10:24:08 +02:00
Lizzy Fleckenstein 3b3d67a99c Make clocks work when dropped 2021-05-04 09:16:42 +02:00
jordan4ibanez 90fd65ac66 Fix locationless playing 2021-04-03 21:09:43 -04:00
jordan4ibanez 1b511936f5 Fix local name memory leak 2021-04-03 21:05:31 -04:00
jordan4ibanez a807ee6372 Adjust the volume even more to perfectly match the gameplay 2021-04-03 20:55:46 -04:00
jordan4ibanez 0641f09915 Adjust volume of item collection sound 2021-04-03 20:53:34 -04:00
jordan4ibanez c572db92aa Add sound buffer and different item collection sound 2021-04-03 20:39:08 -04:00
jordan4ibanez 844db8aa7b Revert to previous style of interpolated move_to with tweaks 2021-04-02 22:02:19 -04:00
jordan4ibanez 0840ad98a2 Adjust the item collection magnet even more 2021-04-02 21:57:38 -04:00
jordan4ibanez 1cbd3a998d Use manual move_to to account for move_to interpolation issues 2021-04-02 21:50:47 -04:00
jordan4ibanez 61e812e40a Add in manual interpolation into the item magnet 2021-04-02 21:40:04 -04:00
jordan4ibanez 18d7be4a4f More fixes to item collection on laggy servers 2021-04-03 00:42:20 -04:00
jordan4ibanez 1e3676c391 Remove debug info from item magnet 2021-04-02 05:38:53 +00:00
jordan4ibanez 2f272b3dff Fix item drop on laggy servers 2021-04-01 23:48:00 -04:00
AFCMS c7389dc0a4 add basic API to mcl_item_entity 2021-03-28 08:13:24 +02:00
Elias Åström 1873080046 Remove unnecessary code in mcl_item_entity 2021-03-20 14:21:50 +01:00
Elias Åström bfe51316ee Merge branch 'mcl_autogroups' 2021-03-18 13:43:58 +01:00
Elias Åström cff0130506 Rename _mcl_autogroup_groupcaps to _mcl_diggroups 2021-03-18 11:35:40 +01:00
Elias Åström e77473e800 Make changes to the mcl_autogroup API
Group levels are now specified as a list of names when registering a
digging group.  Digging groups which do not have specified levels will
support tools having two levels, 0 and 1 where 0 means the tool can dig
but not harvest the node and 1 means it can also harvest the node.  If
more levels are required one has to specifiy them when registering the
digging group.
2021-03-18 11:35:40 +01:00
Elias Åström fb6f5eae7a Rewrite mcl_autogroup
These changes are primarly made to make mcl_autogroup more efficient.
Previously enchanted tools required storing around 21 kB of metadata due
to the way the previous version of the mod was implemented.  This caused
a lot of lag and a huge amount of network traffic.  With the changes
enchanted tools won't require more than 1 kB of metadata.

The mod is also rewritten to use an API to register digging groups and
compute the groupcaps for tools.  This will make it easier for modders
to register custom digging groups.

The mod is now split up into two parts.  One part called "mcl_autogroup"
to implement the API for registering custom digging groups, and the
other part called "_mcl_autogroup" which contains most of the code which
has to be loaded after most mods.
2021-03-18 11:32:18 +01:00