Page 1 of 1

[Mod] Mining Plus [mining_plus]

Posted: Tue Dec 24, 2013 14:34
by Krock
Hello everyone,

In a MC video I saw a node, which *ate* a hole into stone...now I've done this:
Image

Contents:
Tunnel bomb: Use a torch to detonate them... go 3-4 steps back, else it will damage you! It only digs cobble and other easy breakable stone-like nodes.

Bridge builder: Put a non-cobble stack into the slot and set how wide it should build, power it by punching with a torch. You can not destroy nodes with items inside.

Autominer: Is maybe a bit confusing, it breaks blocks, but just blocks which you put inside. This can be used for farming saplings or getting clay lumps from clay.

Breaknode, Polished cobble: Breaknodes are thought to construct buildings with it, they are oddly breakable by hand. Polished cobble needs 9 cobble to craft. Should look alot better than the default cobble. Polished cobble gives 8 cobble back on crafting.

Grinder: Requires bitchange (or a modification in the files) to invest money in grinding. Currently it only grinds default ores... extendable.

Depends: default unified_inventory? pipeworks? bitchange?
License: WTFPL (everything)
Download: Master *.zip from GitHub, Browse source code

Posted: Sat Dec 28, 2013 15:21
by Krock
Update to version 0.2.0
- Added a bridge builder
- Feature: the builder will not destroy nodes with an inventory
- Feature: all dug nodes get checked before with "minetest.is_protected()"

Have fun with those!

Posted: Mon Dec 30, 2013 15:02
by LuxAtheris
Very nice mod

Posted: Sun Mar 23, 2014 18:39
by Krock
Uploaded my newest version to github yesterday.

Fun fact, first release date: 2013-12-24

Posted: Sun Mar 23, 2014 19:04
by rubenwardy
This looks interesting.

Can you disable individual contents?

Posted: Sun Mar 23, 2014 19:17
by Krock
rubenwardy wrote:This looks interesting.

Can you disable individual contents?
Yes, open an editor and enjoy the freedom of WTFPL.
I thought this mod is not enough big to add a config file or whatever, so design it like you want.

Re: [Mod] Mining Plus [mining_plus]

Posted: Mon May 19, 2014 07:21
by nman3600
Very nice you have earned my 100th post
Spoiler
Image

Re: [Mod] Mining Plus [mining_plus]

Posted: Sat Jun 21, 2014 19:03
by Krock
BUMP!

Updates:
- Added grinder node
- Code style fixes
- serval bug fixes

This mod isn't dead yet!

Re: [Mod] Mining Plus [mining_plus]

Posted: Sun Jun 22, 2014 02:47
by trainwrecktony
I get this error, i believe i got the same in previous version but i commented out bridgebuilder dofile. Server will start but crashes when player joins

Code: Select all

ERROR[main]: ERROR: An unhandled exception occurred: ...EST2\bin\..\games\twt\mods\mining_plus/bridgebuilder.lua:223: bad argument #1 to 'get_node' (table expected, got string)
20:55:45: ERROR[main]: stack traceback:
20:55:45: ERROR[main]: 	[C]: in function 'get_node'
20:55:45: ERROR[main]: 	...EST2\bin\..\games\twt\mods\mining_plus/bridgebuilder.lua:223: in function 'swap_node'
20:55:45: ERROR[main]: 	C:\MINETEST2\bin\..\games\twt\mods\default/nodes.lua:1531: in function <C:\MINETEST2\bin\..\games\twt\mods\default/nodes.lua:1449>
swap_node function from default/nodes.lua

Code: Select all

function swap_node(pos,name)
	local node = minetest.get_node(pos)
	if node.name == name then
		return
	end
	node.name = name
	minetest.swap_node(pos,node)
end
I tried this.... temporarily rename swap_node in bridgebuilder.lua:223 i can login giveme a bridgebuilder without crash. I then stop server, revert swap_node in bridgebuilder.lua:223, i can login without crash but if i try to use bridgebuilder get this error.

Code: Select all

ERROR: An unhandled exception occurred: C:\MINETEST2\bin\..\games\twt\mods\mining_plus\init.lua:7: attempt to call method 'get_player_name' (a nil value)
21:56:14: ERROR[main]: stack traceback:
21:56:14: ERROR[main]: 	C:\MINETEST2\bin\..\games\twt\mods\mining_plus\init.lua:7: in function 'has_mining_access'
21:56:14: ERROR[main]: 	...EST2\bin\..\games\twt\mods\mining_plus/bridgebuilder.lua:63: in function <...EST2\bin\..\games\twt\mods\mining_plus/bridgebuilder.lua:61>

Re: [Mod] Mining Plus [mining_plus]

Posted: Sun Jun 22, 2014 06:43
by Krock
trainwrecktony wrote:

Code: Select all

ERROR[main]: ERROR: An unhandled exception occurred: ...EST2\bin\..\games\twt\mods\mining_plus/bridgebuilder.lua:223: bad argument #1 to 'get_node' (table expected, got string)
I can not reproduce your bug, so I simply renamed the function. Did that help?

EDIT: Problems have been fixed with the latest git.

Re: [Mod] Mining Plus [mining_plus]

Posted: Mon Jun 23, 2014 00:49
by trainwrecktony
ok think bug was more related to intweak mod bundled into default of minetestplus game, works with standalone intweak mod.

I'm trying to get grinder to use coal as fuel without any luck, maybe try maptools coins next

Re: [Mod] Mining Plus [mining_plus]

Posted: Thu Feb 08, 2018 13:22
by TechNolaByte
This should totally be continued!
What an awesome mod!