minetest_game icon indicating copy to clipboard operation
minetest_game copied to clipboard

Items are falling out of carts

Open anton-tsyganenko opened this issue 7 years ago • 10 comments

I'm not sure if it's a bug (or a feature) of minetest or minetest_game. If I drop items to a cart in a mine and punch it so that it move to the exit by powered rails, some items can fall out from it somewhere on the way.

anton-tsyganenko avatar Jun 08 '17 16:06 anton-tsyganenko

Items in carts was an intended feature, although a minor one. @SmallJoker

paramat avatar Jun 09 '17 12:06 paramat

Try forceloading all mapblocks where the rails go through. I believe this is caused when entities are getting unloaded, where the attachments gets lost.

SmallJoker avatar Jun 09 '17 16:06 SmallJoker

How can I do that?

anton-tsyganenko avatar Jun 09 '17 17:06 anton-tsyganenko

Here's a mod that uses these forceload functions: https://forum.minetest.net/viewtopic.php?t=10006

SmallJoker avatar Jun 09 '17 18:06 SmallJoker

So i guess unfixable?

paramat avatar Jun 09 '17 20:06 paramat

You could forceload the places the cart moves to until the player who started the cart leaves the game.

HybridDog avatar Jun 25 '17 19:06 HybridDog

@SmallJoker should we remove the feature of transporting items in carts due to this?

paramat avatar May 17 '18 02:05 paramat

@paramat We should rather try to fix the attachment handling so the attachment data is saved after unloading the mapblock.

SmallJoker avatar May 17 '18 18:05 SmallJoker

Agreed.

paramat avatar May 17 '18 20:05 paramat

It would also help if entities could have their own inventory.

Wuzzy2 avatar Feb 21 '19 00:02 Wuzzy2