[Mod] The Cube minigame [thecube]

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

[Mod] The Cube minigame [thecube]

by indriApollo » Post

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
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] The Cube minigame [thecube]

by indriApollo » Post

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
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] The Cube minigame [thecube]

by indriApollo » Post

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

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

Re: [Mod] The Cube minigame [thecube]

by Wuzzy » Post

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
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [Mod] The Cube minigame [thecube]

by indriApollo » Post

The mod was updated to work with mod security.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests