Page 1 of 1

[Mod] The Cube minigame [thecube]

Posted: Thu Nov 20, 2014 14:02
by indriApollo
The Cube minigame

Image

Hi everyone !

The Cube is a mini game for Minetest.
It generates giant (or mini) dirt/stone/glass/sand cubes with hidden treasures (bronze blocks) hidden inside !
There is also the possibility to hide a Golden Snitch along with the bronze blocks.

The primary idea is to declare as winner the player with the most treasures.
The Golden Snitch can be an instant winner or worth more points.

But another game could be a rush to the golden snitch in a glass cube were the bronze blocks are obstacles.
The players should then break all the glass and race to the snitch :)

You make the rules !

Hope you'll enjoy this mod :D

HOWTO : /cube undo | do <size> <ntreasures> <dirt|stone|sand|glass> [1]
  • undo : restore the nodes changed by the latest cube (clean up after game or revert accidental griefing)
  • do : generate cube with following parameters (in the front right of you)
  • size : give the border length of the cube, final cube will be size^3 (min 3)
  • ntreasures : give the number of treasures that must be hidden in the cube (max as much as cube volume duh)
  • dirt|stone|sand|glass : set the desired node the cube will be made of
  • [1] : (optional) enable the Golden Snitch
/!\ The mod does not check for area protections. Be careful were you spawn it to avoid griefing !

Privs : thecube
Depends : default
Licence : lgpl 2.1
Download : https://github.com/indriApollo/thecube/ ... master.zip
Installation: Unzip the file and rename it to "thecube". Then move it to the mod directory.
Code : github

Re: [Mod] The Cube minigame [thecube]

Posted: Tue Dec 16, 2014 19:05
by indriApollo
EDIT :
The mod name has changed as the privilege. I've refactored the code to use a global namespace and I've also split the code in multiple (hopefully more readable) files. There are no other changes.

Re: [Mod] The Cube minigame [thecube]

Posted: Mon Jan 19, 2015 10:06
by indriApollo
I reworked the undo functions. It's not compatible with previous versions.

Re: [Mod] The Cube minigame [thecube]

Posted: Thu Feb 12, 2015 01:23
by Wuzzy
Lol, what an odd mod.
It is nothing for me, however, since I play singleplayer most of the time. I guess this mod is only interesting for multiplayer.

Re: [Mod] The Cube minigame [thecube]

Posted: Thu Dec 28, 2017 21:34
by indriApollo
The mod was updated to work with mod security.