[Mod] Mese crystal (fragments) in gravel [1.5][meseingravel]

Post Reply
jaandrle
New member
Posts: 3
Joined: Sun Jun 29, 2014 07:49
GitHub: jaandrle
Location: Czech Republic
Contact:

[Mod] Mese crystal (fragments) in gravel [1.5][meseingravel]

by jaandrle » Post

Hello cubic people, the mod add new way to get mese crystals (mainly crystal fragments). I inspirated by gold prospecting, but you need really big imagination too see it.

Describe
At first you must add gravel block to a bucket with water ...
+ Spoiler
... now you only pour the bucket of a "watergravel" on a ground. But it is important to know that water will disappear if you place the watergravel on nonsolid blocks (sand, gravel, dirt). After a lapse of time you see yellow points on the watergravel texture. You only dig the block and it drops mese a crystal fragment (+ crystal fragment with rarity 2 and another with rarity 4 and mese crystal with rarity 16).

Demonstartion
Image
A few minits after...
Image

For inspiration
Mese mining room, inside the room, containers behind the walls.

Note
If you want take the watergravel back it is better to have empty bucket and shovel. Of course you can use only hands, but ... ;)

Informations
Minetest version: 0.4.9 and newer
Depends: default, bucket (by default)
License: WTFPL (code), CC BY-SA 3.0 (texture ... modify default texture pack)
Download: Meseingravel_v1.5 (short url: http://1drv.ms/1mjDfjg)
Old: Meseingravel_v1
Browse source code: Github
Last edited by jaandrle on Thu Aug 07, 2014 06:17, edited 5 times in total.
Excuse my bad English! I am better at reading in foreign languages than writing or speaking.

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] Mese crystal (fragments) in gravel [v1] [meseingra

by DS-minetest » Post

WOW good idea and very nice
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
philipbenr
Member
Posts: 1690
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mod] Mese crystal (fragments) in gravel [v1] [meseingra

by philipbenr » Post

I'm a prospector! Go pannin' for gold, an strike it rich!
Also, a use for gravel. ;)

kerikter4of7
Member
Posts: 16
Joined: Sat Jun 07, 2014 19:22

Re: [Mod] Mese crystal (fragments) in gravel [v1] [meseingra

by kerikter4of7 » Post

Oh, thank you for thinking of this, this will make casual playing so much more enjoyable. I'm sure someone could tie in a couple other "finds" in this, should be interesting.

trainwrecktony
Member
Posts: 67
Joined: Sun Jun 08, 2014 05:24
In-game: trainwrecktony
Location: NJ USA
Contact:

Re: [Mod] Mese crystal (fragments) in gravel [v1] [meseingra

by trainwrecktony » Post

Received this error today, think it has happened before but deleted debug since and forgot to mention it

Code: Select all

12:55:37: ERROR[main]: ERROR: An unhandled exception occurred: c:\minetestdev\bin\..\games\twt\mods\meseingravel\init.lua:33: attempt to call method 'get_puncher_control' (a nil value)
12:55:37: ERROR[main]: stack traceback:
12:55:37: ERROR[main]: 	c:\minetestdev\bin\..\games\twt\mods\meseingravel\init.lua:33: in function <c:\minetestdev\bin\..\games\twt\mods\meseingravel\init.lua:16>
Server Owner trainwrecktony.serveminecraft.net:30000 irc.freenode.net ##minetest-trainwrecktony

User avatar
Cryterion
Member
Posts: 94
Joined: Tue Jun 10, 2014 08:12
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion
Location: Durban, South Africa

Re: [Mod] Mese crystal (fragments) in gravel [v1] [meseingra

by Cryterion » Post

Here's the image of an automated machine to process it, sometimes I get the wet gravel node through the node breaker, not sure if this is the possible cause of Tony's error, as the system runs on Tony's server.

download/file.php?id=960

EDIT: noted that wet gravel requires an empty bucket to be dug!!!
No trees or animals were hurt in the production of this message. However, a large number of Electrons were temporarily inconvenienced.

jaandrle
New member
Posts: 3
Joined: Sun Jun 29, 2014 07:49
GitHub: jaandrle
Location: Czech Republic
Contact:

Re: [Mod] Mese crystal (fragments) in gravel [v1] [meseingra

by jaandrle » Post

to trainwrecktony: bug is fixed in new version
to Cryterion:
Cryterion wrote:... not sure if this is the possible cause of Tony's error ...
probably not
Cryterion wrote:... sometimes I get the wet gravel node through the node breaker ...
I have not this problem, but I am looking at it and trying fix it
Excuse my bad English! I am better at reading in foreign languages than writing or speaking.

User avatar
Cryterion
Member
Posts: 94
Joined: Tue Jun 10, 2014 08:12
GitHub: Cryterion
IRC: Cryterion
In-game: Cryterion
Location: Durban, South Africa

Re: [Mod] Mese crystal (fragments) in gravel [1.5][meseingra

by Cryterion » Post

I rechecked with your latest version and can confirm a node-breaker will remove the wetgravel node.

Hope you don't mind, but I jumped into the source to see if I could find it and came up with the following: -

Code: Select all

minetest.register_node("meseingravel:watergravel_1", {
	tiles = {"meseingravel_watergravel_1.png"},
	groups = {falling_node=1},
	diggable = false,
	on_punch = function(pos, node, puncher)
	-- \check\ If you have a shovel and an empty bucket, your bucket will be replaced by bucket_gravel
			local tool = puncher:get_wielded_item():get_name()
			if string.find(tool, "shovel") then
				diggable = true
				for i=0, 32, 1 do
					name = puncher:get_inventory():get_stack("main", i):get_name()
					if name == "bucket:bucket_empty" then
						puncher:get_inventory():remove_item("main", "bucket:bucket_empty 1")
						puncher:get_inventory():add_item("main", "meseingravel:bucket_gravel 1")
						minetest.remove_node(pos)
						return
					end
				end
				minetest.remove_node(pos)
				minetest.add_node(pos, {name="default:water_source"})
				minetest.add_item(pos, {name="default:gravel"})
	-- /check/
			else
	-- | If you have not shovel the watergravel_ will be replaced by water and drop gravel
			minetest.remove_node(pos)
			minetest.add_node(pos, {name="default:water_source"})
			minetest.add_item(pos, {name="default:gravel"})
			end
	end,
	sounds = default.node_sound_dirt_defaults({
		footstep = {name="default_gravel_footstep", gain=0.45},
	})
})
made the node diggable = false unless the wielded tool is a shovel, then switches to true.
Also added extra lines to make the gravel drop from the water if using a shovel, but without an available empty bucket. This way, the gravel drops out on all tools or punch ;)

It doesn't allow the node breaker to remove the node with a bucket however, but don't why anyone would if you're putting it out to dry!
No trees or animals were hurt in the production of this message. However, a large number of Electrons were temporarily inconvenienced.

jaandrle
New member
Posts: 3
Joined: Sun Jun 29, 2014 07:49
GitHub: jaandrle
Location: Czech Republic
Contact:

Re: [Mod] Mese crystal (fragments) in gravel [1.5][meseingra

by jaandrle » Post

Cryterion wrote:... Hope you don't mind, but I jumped into the source to see if I could find it and came up with the following: ...
No, all suggestions are welcome. I am working on some improvements of the mod. So I am including my and yours ideas in new version.
Excuse my bad English! I am better at reading in foreign languages than writing or speaking.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests