[Mod] Mining Plus [mining_plus]

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

[Mod] Mining Plus [mining_plus]

by Krock » Post

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
Last edited by Krock on Sat Jun 21, 2014 18:58, edited 2 times in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

by Krock » Post

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!
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
LuxAtheris
Member
Posts: 169
Joined: Fri Oct 25, 2013 00:54
Location: Aether

by LuxAtheris » Post

Very nice mod
Believe you can and you’re halfway there.

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

by Krock » Post

Uploaded my newest version to github yesterday.

Fun fact, first release date: 2013-12-24
Last edited by Krock on Sun Mar 23, 2014 18:41, edited 1 time in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
rubenwardy
Moderator
Posts: 6281
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

This looks interesting.

Can you disable individual contents?

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

by Krock » Post

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.
Last edited by Krock on Sun Mar 23, 2014 19:17, edited 1 time in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
nman3600
Member
Posts: 168
Joined: Fri Feb 07, 2014 17:06
GitHub: nman3600
IRC: nman3600
In-game: nman3600

Re: [Mod] Mining Plus [mining_plus]

by nman3600 » Post

Very nice you have earned my 100th post
+ Spoiler

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

Re: [Mod] Mining Plus [mining_plus]

by Krock » Post

BUMP!

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

This mod isn't dead yet!
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

Re: [Mod] Mining Plus [mining_plus]

by trainwrecktony » Post

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>
Server Owner trainwrecktony.serveminecraft.net:30000 irc.freenode.net ##minetest-trainwrecktony

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

Re: [Mod] Mining Plus [mining_plus]

by Krock » Post

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.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

Re: [Mod] Mining Plus [mining_plus]

by trainwrecktony » Post

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
Server Owner trainwrecktony.serveminecraft.net:30000 irc.freenode.net ##minetest-trainwrecktony

User avatar
RSLRedstonier
Member
Posts: 451
Joined: Wed May 10, 2017 21:00
GitHub: RSL-Redstonier
In-game: RSLRedstonier
Location: some were in middle earth

Re: [Mod] Mining Plus [mining_plus]

by RSLRedstonier » Post

This should totally be continued!
What an awesome mod!
"A programmer is just a tool which converts caffeine into code"

try out my skytest mod always being updated!
viewtopic.php?f=9&t=17568

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests