minetest / minetest_game

Minetest Game - A lightweight and well-maintained base for modding [https://github.com/minetest/minetest/]
http://minetest.net/
Other
1.43k stars 578 forks source link

Items are falling out of carts #1770

Open anton-tsyganenko opened 7 years ago

anton-tsyganenko commented 7 years ago

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.

paramat commented 7 years ago

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

SmallJoker commented 7 years ago

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

anton-tsyganenko commented 7 years ago

How can I do that?

SmallJoker commented 7 years ago

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

paramat commented 7 years ago

So i guess unfixable?

HybridDog commented 7 years ago

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

paramat commented 6 years ago

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

SmallJoker commented 6 years ago

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

paramat commented 6 years ago

Agreed.

Wuzzy2 commented 5 years ago

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