[Mod] The Cube minigame [thecube]

User avatar
indriApollo
Member
 
Posts: 146
Joined: Fri Sep 26, 2014 11:34
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

[Mod] The Cube minigame [thecube]

by indriApollo » Thu Nov 20, 2014 14:02

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
 

User avatar
indriApollo
Member
 
Posts: 146
Joined: Fri Sep 26, 2014 11:34
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

Re: [Mod] The Cube minigame [thecube]

by indriApollo » Tue Dec 16, 2014 19:05

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.
 

User avatar
indriApollo
Member
 
Posts: 146
Joined: Fri Sep 26, 2014 11:34
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

Re: [Mod] The Cube minigame [thecube]

by indriApollo » Mon Jan 19, 2015 10:06

I reworked the undo functions. It's not compatible with previous versions.
 

User avatar
Wuzzy
Member
 
Posts: 3241
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] The Cube minigame [thecube]

by Wuzzy » Thu Feb 12, 2015 01:23

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.
 

User avatar
indriApollo
Member
 
Posts: 146
Joined: Fri Sep 26, 2014 11:34
Location: Belgium
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
 


Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot] and 4 guests