Page 1 of 1

[Mod] Dice [1.3] [dice2]

PostPosted: Mon Jun 09, 2014 13:47
by Wuzzy
This Minetest mod adds a red and a white dice to the game, both in form of a full placable block.
The dice can also be rolled via rightclick.
The dice also come with a full sound set, with placing, punching and nice rolling sounds.
The “purpose” of this is just for fun. It is nothing meaningful. ;-)

Image

Mandatory dependencies: None!
Optional dependencies: dye (part of Minetest Game, the default subgame), intllib, doc_items
License of everything: MIT License
Works on: Minetest 0.4.14 but hopefully on a bunch of other versions, too.
Download: See attachment.

Basic crafting
To craft dice, you have to place any kind of wood in a 3×3 grid like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
w.w
.w.
w.w

w = any kind of wood (group "wood")
. = nothing

The result is 5 white dice.
The crafting recipe resembles the number 5 on the dice. :-)

Color crafts
If you use the “dye” mod, the following additional shapeless recipes are available:
  • 1 white dice: 1 red dice, 1 white dye and 1 black dye
  • 1 red dice: 1 white dice, 1 red dye and 1 white dye

How to use
If you place a dice, it will face a random direction and turned randomly.

You can mine dice in half a second without any tool, but it can be faster with “choppy” tools (i.e. axes).

To roll the dice, press the use key (right click) while pointing to it. So you don’t have to mine and place it again.
If you don’t want to throw the dice but want to build something to it, you have to rightclick it while you hold the sneak key (shift).

Careful: The dice are flammable!

Project page
For developers: The Git repository project page is located at:
http://repo.or.cz/w/minetest_dice2.git

Old “dice” mod
There was a similar mod, but it was hosted on Ubuntu One, which is dead now. >_>.

Re: [Mod] Dice [1.0] [dice2]

PostPosted: Mon Jun 09, 2014 14:00
by Krock
Yay, Iz back.
Good work!

Re: [Mod] Dice [1.0] [dice2]

PostPosted: Mon Jun 09, 2014 14:14
by Sokomine
Nice idea!

Re: [Mod] Dice [1.0] [dice2]

PostPosted: Mon Jun 09, 2014 14:25
by Kilarin
How amusing!

Re: [Mod] Dice [1.0] [dice2]

PostPosted: Mon Jun 09, 2014 21:11
by HeroOfTheWinds
The first step toward CasinoTest!

Nah, just kidding. But nice mod! The only thing I could really think of on how to make the random placement be active immediately would be to place an invisible node first, then use minetest.place_node(pos, {name="diename", param2=yourRandomNumber})

However, that's pretty hacky......

Version 1.1

PostPosted: Sat Jul 02, 2016 16:09
by Wuzzy
Version 1.1 is there. This is a tiny update, I just added mod.conf and changed the readme file to Markdown format.
I also added a Git repository (see first post).

Version 1.2

PostPosted: Mon Aug 08, 2016 04:11
by Wuzzy
Version 1.2 is there.
This is mostly another cleanup release to update some metadata.

Most notably, additional item information through the Item Documentation mod [doc_items] (viewtopic.php?f=9&t=15300) is optionally provided.

Re: [Mod] Dice [1.2] [dice2]

PostPosted: Mon Aug 08, 2016 13:07
by KCoombes
Very cool - Yahtzee or Farkle, anyone?!?

Version 1.3

PostPosted: Fri Nov 18, 2016 22:54
by Wuzzy
Version 1.3 released. Mostly bugfixes.

Changes:
- Allow to use dice as fuel in furnaces
- Make mod compatible with Documentation System 0.7.0
- Fix mod not working with both inttlib and mod security enabled
- Prevent dice being able to be destroyed by cave generation algorithms
- Minor refactoring

Re: [Mod] Dice [1.3] [dice2]

PostPosted: Sun Nov 20, 2016 16:34
by Andrey01
It is interesting...

Re: [Mod] Dice [1.3] [dice2]

PostPosted: Sun Jan 15, 2017 15:55
by texmex
This is neat! Would be cool to also randomize faceup side on actual throwing of item, not only when right clicking.

Re: [Mod] Dice [1.3] [dice2]

PostPosted: Mon Feb 27, 2017 22:13
by BrunoMine
It would be cool if the dices dropped randomly as well.

Re: [Mod] Dice [1.3] [dice2]

PostPosted: Tue Feb 28, 2017 01:25
by Wuzzy
I think this is not possible without a lot of hacking and it would be not worth the effort.

The dice get a random face when you place it, too.