Need help about resetting map

brder
Member
 
Posts: 20
Joined: Sat Jan 16, 2016 11:19

Need help about resetting map

by brder » Thu Jan 21, 2016 18:05

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
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Need help about resetting map

by rubenwardy » Thu Jan 21, 2016 18:08

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
 

brder
Member
 
Posts: 20
Joined: Sat Jan 16, 2016 11:19

Re: Need help about resetting map

by brder » Thu Jan 21, 2016 19:03

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
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 10 guests

cron