[Mod] Dice [1.3] [dice2]

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

[Mod] Dice [1.3] [dice2]

by Wuzzy » Post

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 or later
Download: See attachment.

Basic crafting
To craft dice, you have to place any kind of wood in a 3×3 grid like this:

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. >_>.
Attachments
dice2_v1.3.zip
(151.25 KiB) Downloaded 135 times
Last edited by Wuzzy on Fri Dec 01, 2017 09:42, edited 8 times in total.

User avatar
Krock
Developer
Posts: 4571
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

Yay, Iz back.
Good work!
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Sokomine
Member
Posts: 4167
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

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

by Sokomine » Post

Nice idea!

User avatar
Kilarin
Member
Posts: 779
Joined: Mon Mar 10, 2014 00:36

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

by Kilarin » Post

How amusing!

User avatar
HeroOfTheWinds
Member
Posts: 470
Joined: Wed Apr 23, 2014 23:16
GitHub: HeroOfTheWinds
IRC: WindHero
Location: Hawaii

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

by HeroOfTheWinds » Post

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......
Nam ex spatio, omnes res venire possunt.
Why let the ground limit you when you can reach for the sky?
Back to college now, yay for sophomore year schedules. :P

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

Version 1.1

by Wuzzy » Post

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).
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

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

Version 1.2

by Wuzzy » Post

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

KCoombes
Member
Posts: 412
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt
Location: SW Florida, USA

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

by KCoombes » Post

Very cool - Yahtzee or Farkle, anyone?!?

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

Version 1.3

by Wuzzy » Post

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
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Andrey01
Member
Posts: 2440
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

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

by Andrey01 » Post

It is interesting...

User avatar
texmex
Member
Posts: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

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

by texmex » Post

This is neat! Would be cool to also randomize faceup side on actual throwing of item, not only when right clicking.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

User avatar
BrunoMine
Member
Posts: 1074
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

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

by BrunoMine » Post

It would be cool if the dices dropped randomly as well.

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

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

by Wuzzy » Post

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests