Page 1 of 1

Need help about resetting map

PostPosted: Thu Jan 21, 2016 18:05
by brder
Guys, maybe some of you know that i'm arranging an event at a mall.

I preparing the map and mods with your helps . thank all of you. ;)

About the event : there will be 8 players in a map. they will fight and dig for 20 min.
after the times up, i will calculate the diamonds, gold lumps, iron lumps and copper lumps.

diamond lumps are 10 point
gold lumps 5 point
iron lumps-- 3 point
copper lumps-- 1 point

i put a lot of mine blocks at the map.

Now about my question : is there any program/mod or something to see who has which amount of which material in his inventoy.
question 2 : after the times up , other 8 players will come to the game. and i should reset the map for them.
i'm thinking copy/paste map folder everytime. but if you know any other way more easy. tell me.
actually is there any mod or something about playing minetest without saving. (like deepfreeze)

thanx guys

Re: Need help about resetting map

PostPosted: Thu Jan 21, 2016 18:08
by rubenwardy
You can use a function called minetest.delete_blocks to reset an area, or the whole map.

You should either use sqlite with sqlite_syncronous = 0 or leveldb or redis.

The awards mod or the stats mod by pilzadam has examples of count the placement of blocks.
To see how many blocks a player has in their inventory, you'll need to use the inventory API: http://rubenwardy.com/minetest_modding_ ... ories.html

Re: Need help about resetting map

PostPosted: Thu Jan 21, 2016 19:03
by brder
where is that function i dont know. i writed to the console this but nothings happen.


rubenwardy wrote:You can use a function called minetest.delete_blocks to reset an area, or the whole map.

You should either use sqlite with sqlite_syncronous = 0 or leveldb or redis.

The awards mod or the stats mod by pilzadam has examples of count the placement of blocks.
To see how many blocks a player has in their inventory, you'll need to use the inventory API: http://rubenwardy.com/minetest_modding_ ... ories.html