How do I make mining certain blocks take much longer?

Post Reply
randomq
New member
Posts: 5
Joined: Thu Apr 12, 2018 18:52
IRC: randomq
In-game: randomq

How do I make mining certain blocks take much longer?

by randomq » Post

I see that there are 3 diggability settings for each diggable node group, and that the dig times (in seconds) for each of those settings is stored in the individual tools. Can someone show me a sample node override that will, for example, make dirt take 10 seconds to dig with an iron shovel?

I've experimented with crumbly=1,2,3, level, etc, but none of them seem to work (or maybe I'm doing something wrong). I also haven't found anything in the forum that helped.

Working on a mod to make certain things a little more durable.

User avatar
TumeniNodes
Member
Posts: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: How do I make mining certain blocks take much longer?

by TumeniNodes » Post

A Wonderful World

randomq
New member
Posts: 5
Joined: Thu Apr 12, 2018 18:52
IRC: randomq
In-game: randomq

Re: How do I make mining certain blocks take much longer?

by randomq » Post

Thanks for the references. Main problem was not setting depends on default and farming. My understanding of timing now:

ex: diamond pick vs obsidian. By default it will take one second per block. Can't increase "cracky", it is already at the highest setting. Increasing "level" to 3 will still take one second but wear the tool faster. Increasing to level 4 would not allow me to mine the obsidian at all, since diamond pickaxe's maxlevel is 3. So I'd have to redefine diamond pickaxe to have a longer dig time for ALL level 3 items, or a higher maxlevel and a longer level 4 time. But then that throws off difflevel for everything else in the game, which is icky.

Code: Select all

minetest.register_node("default:obsidian", {
	description = "Obsidian",
	tiles = {"default_obsidian.png"},
	sounds = default.node_sound_stone_defaults(),
	groups = {[b]cracky = 1, level = 2[/b]},
})

minetest.register_tool("default:pick_diamond", {
	description = "Diamond Pickaxe",
	inventory_image = "default_tool_diamondpick.png",
	tool_capabilities = {
		full_punch_interval = 0.9,
		max_drop_level=3,
		groupcaps={
			cracky = {[b]times={[1]=2.0[/b], [2]=1.0, [3]=0.50}, uses=30, [b]maxlevel=3[/b]},
		},
		damage_groups = {fleshy=5},
	},
	sound = {breaks = "default_tool_breaks"},
})

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests