Page 1 of 1

How can I increase the active range for lua entities (mobs)?

PostPosted: Mon Jul 18, 2016 17:15
by burli
Objects disappear in the distance. Is it possible to increase this distance?

Re: How can I increase the active range for lua entities (mo

PostPosted: Mon Jul 18, 2016 17:25
by Calinou
Try this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
active_block_range = 4
active_object_send_range_blocks = 4


The distance is in "blocks", ie. 16×16×16 nodes. The first one determines the simulation area of entities (default is 2), the latter determines the sending distance (default is 3).

Re: How can I increase the active range for lua entities (mo

PostPosted: Mon Jul 18, 2016 17:44
by burli
I tried this, but they disappear still in the same distance. I want to increase the view range

Re: How can I increase the active range for lua entities (mo

PostPosted: Mon Jul 18, 2016 19:36
by Krock
burli wrote:I tried this, but they disappear still in the same distance. I want to increase the view range

Please look that the minetest.conf.example file. There you will find a great explanation for all possible commands:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
#    From how far blocks are sent to clients, stated in mapblocks (16 nodes).
# max_block_send_distance = 10

#    From how far blocks are generated for clients, stated in mapblocks (16 nodes).
# max_block_generate_distance = 6

Re: How can I increase the active range for lua entities (mo

PostPosted: Mon Jul 18, 2016 19:58
by burli
I talk about the visibility range of lua entities. They disappear in a distance of ~40 nodes. I already searched the mtconf example for possible parameters

Re: How can I increase the active range for lua entities (mo

PostPosted: Mon Jul 18, 2016 20:50
by burli
burli wrote:I tried this, but they disappear still in the same distance. I want to increase the view range

I'm sorry, I forgot to exit and restart minetest. Now the active range is much higher