Commit Graph

20 Commits

Author SHA1 Message Date
SmallJoker 3452938c76 Carts: Re-add erroneously removed driver reset
carts:manage_attachment does not handle the driver value of the cart,
hence carts could not be used by another player until it's replaced.
2020-05-16 19:26:28 +02:00
SmallJoker b787fcf7e4 Carts: Reset player view and attachment table on death
Fixes #2681
2020-05-15 19:04:38 +02:00
Zughy d88e551071
Fix cart inventory image rendering (#2666)
Before it was rendering the side on both the side and the front of the minetest.inventorycube
2020-04-30 19:51:39 +02:00
sfan5 d3e26dba18 Convert minetest.sound_play uses to ephemeral 2020-02-05 22:24:23 +01:00
sfan5 e4adb01fbf
Fix and improve translation strings (#2471) 2019-09-12 19:03:10 +02:00
Yves Quemener bb9279ccb8 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
Paramat c284e52963
Boats, carts mods: Use 'initial_properties' table 2018-07-30 00:32:18 +01:00
SmallJoker ecea5364f1 Update carts from boost_cart
Better pathfinder algorithm, allows tuning the lag spike compensation.
Smoother movement (when it's laggy).
Set the player animation to stand on attach.
Remove driver when they leave.
Only update velocity when it's necessary.
2018-07-07 02:08:36 +01:00
DTA7 a2d7678ffd Add nil checks for placer 2017-11-15 23:16:28 +00:00
SmallJoker 454e0da531 Carts: Better wiggle prevention 2017-10-23 04:38:43 +01:00
SmallJoker 5870fd48f6 Carts: Replace old, deprecated function names 2017-10-23 04:38:28 +01:00
SmallJoker c51ebcb74a Carts: Do not connect rails with gunpowder (#1812) 2017-07-02 10:32:10 +02:00
paramat 5fe831ed13 Carts: Remove '+' added in commit 077316b 2017-03-30 04:24:29 +01:00
zaoqi 077316b4cd Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
Auke Kok 78c632ebd4 Allow interaction with nodes while wielding these items.
- beds
- boats
- carts
- key/skeleton key
- seeds

All these had on_place handlers that did not allow nodes with
an on_rightclick() handler to be used first (if not using
sneak). This code is taken from the torches mod and applied
everywhere.

This allows all these items to e.g. be inserted into the `frame`
mod's item frames.
2017-02-28 18:16:12 -08:00
paramat 3e5852993d Carts: Stronger handbrake
Handbrake was barely noticeable and fairly useless.
Equalisng with brake rail deceleration makes it more intuitive to use
and easier to judge stopping distance.
2016-12-07 08:29:41 +00:00
paramat f06f66ccc2 Boats / carts: Fix and improve on_punch functions
Boats:
Previously, boats were not added to inventory in creative mode, fix.
In creative mode multiple boats will not be added to inventory.
Add comment.

Carts:
Set speed to 2 if punched by a non-player, to match the effect of a
player punch.
Add comments.
2016-11-30 02:44:44 +00:00
Diego Martínez 788ae97ba1 Carts: Take creative mode into account
This commit makes the carts mod not add the cart
item to the player's inventory if running with
creative mode and the player already has it.
2016-11-28 01:27:54 +00:00
SmallJoker 1a6ad498d7 Carts: Increase performance overall 2016-11-27 03:27:53 +00:00
SmallJoker 81f8c8aef8 Carts: Move entity definition to seperate file 2016-11-27 03:27:53 +00:00