Page 1 of 1

[Mod] Extra TNT blast effects [tnt_extras]

PostPosted: Tue Jan 26, 2016 20:47
by red-001
This mod adds extra TNT blast effects. It changes stone like nodes into gravel or rarely into lava source blocks, sand-like blocks into glass fragments and makes obsidian, obsidian brick, mese and diamond blocks resistant to TNT(they will still get damaged but only rarely)

If you have any ideas/suggestions post them here, make a Github issue or let me know on IRC
License
This mod is released under WTFPL
Dependencies
Required: default, vessels, nyancat (in default game)
Optional: xdecor
Download
Browse the Github repository
Download form Github

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Thu Jan 28, 2016 15:52
by DS-minetest
That is a really good idea, but brick is made by a Person, you should add obsidian cobble or handle it like mese block

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Thu Jan 28, 2016 17:35
by red-001
DS-minetest, good idea. I have added it.

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Thu Jan 28, 2016 20:33
by benrob0329
This is something that should have been in default long ago, at least now its a mod!

Thanks red-001!

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Sat Jan 30, 2016 06:35
by TailsTheFoxDoes MT
red-001 wrote:This mod adds extra TNT blast effects. It changes stone like nodes into gravel or rarely into lava source blocks, sand-like blocks into glass fragments and makes obsidian, obsidian brick, mese and diamond blocks resistant to TNT(they will still get damaged but only rarely)

If you have any ideas/suggestions post them here, make a Github issue or let me know on IRC
License
This mod is released under WTFPL
Download
Browse the Github repository
Download form Github


Can you make it have this cool dropping effect that normally applies to Minecraft, so basically, it jumps up a little off of the block it is on and starts blinking and then explodes, can you make it do that, or is there another mod that has the effect i'm talking about.

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Sat Jan 30, 2016 08:28
by sofar
TailsTheFoxDoes MT wrote:Can you make it have this cool dropping effect that normally applies to Minecraft, so basically, it jumps up a little off of the block it is on and starts blinking and then explodes, can you make it do that, or is there another mod that has the effect i'm talking about.


I think red-001 and me will be overhauling the TNT mod in the upcoming period... This effect is one of the things we may indeed add.

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Sat Jan 30, 2016 12:34
by red-001
TailsTheFoxDoes MT wrote:
Can you make it have this cool dropping effect that normally applies to Minecraft, so basically, it jumps up a little off of the block it is on and starts blinking and then explodes, can you make it do that, or is there another mod that has the effect I'm talking about.


I will think about it, but it might mean copying large parts of the TNT source code. It should be easier to do it in the (hopefully) near future when TNT finally has an API, I am currently working on a pull request to minetest game to add that.

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Sat Jan 30, 2016 14:16
by DS-minetest
TailsTheFoxDoes MT wrote:
red-001 wrote:This mod adds extra TNT blast effects. It changes stone like nodes into gravel or rarely into lava source blocks, sand-like blocks into glass fragments and makes obsidian, obsidian brick, mese and diamond blocks resistant to TNT(they will still get damaged but only rarely)

If you have any ideas/suggestions post them here, make a Github issue or let me know on IRC
License
This mod is released under WTFPL
Download
Browse the Github repository
Download form Github


Can you make it have this cool dropping effect that normally applies to Minecraft, so basically, it jumps up a little off of the block it is on and starts blinking and then explodes, can you make it do that, or is there another mod that has the effect i'm talking about.

the nuke mod adds jumping tnt, because it makes the tnt to an object, u cant do this with a node

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Wed Mar 16, 2016 14:58
by azekill_DIABLO
nice!

looks like an exelent idea!

failed to load - Extra TNT blast effects[tnt_extras]

PostPosted: Sun Oct 23, 2016 04:47
by snoopy
There seems to be an issue with the current module as of 2016-01-28 running on a local 0.4.14 dedicated server. I copied your module from the minetest-mods project.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-10-23 05:47:27: ERROR[Main]: ModError: Failed to load and run script from /Users/xxx/Library/Application Support/minetest/mods/tnt_extras/init.lua:
2016-10-23 05:47:27: ERROR[Main]: ...ry/Application Support/minetest/mods/tnt_extras/init.lua:40: Attempt to override non-existent item default:nyancat
2016-10-23 05:47:27: ERROR[Main]: stack traceback:
2016-10-23 05:47:27: ERROR[Main]:    [C]: in function 'error'
2016-10-23 05:47:27: ERROR[Main]:    ...inetest.app/Contents/Resources/builtin/game/register.lua:381: in function 'override_item'
2016-10-23 05:47:27: ERROR[Main]:    ...ry/Application Support/minetest/mods/tnt_extras/init.lua:40: in function 'register_blast_resistant'
2016-10-23 05:47:27: ERROR[Main]:    ...ry/Application Support/minetest/mods/tnt_extras/init.lua:76: in main chunk

There was no such issue with 0.4.13 and an older version of this mod if I recall correctly.

Thanks.

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Thu Oct 27, 2016 18:28
by red-001
Updated the mod, the issue should be fixed now.

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Fri Oct 28, 2016 21:41
by snoopy
red-001 wrote:Updated the mod, the issue should be fixed now.

snoopy wrote:Re: failed to load - Extra TNT blast effects[tnt_extras]
There seems to be an issue with the current module as of 2016-01-28 running on a local 0.4.14 dedicated server. I copied your module from the minetest-mods project.


Thank you very much for the excellent support. Our mines and dungeons will get some blasts soon, I fear. :)

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Sat Oct 29, 2016 10:16
by snoopy
Unfortunately there seem to be issues after the update and some side effects to other mods.

Some examples are:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
ERROR[Server]: Item "default:cobble_microslab" not defined
ERROR[Server]: Item "default:cobble_outerstair" not defined


Side effect with the xdecor mod: The default:cobble cannot be put into the 'cut by saw' field of the working bench when tnt_extras is loaded. This field would allow the crafting of the a.m. and other default nodes.

Presumably your mod makes redefinitions of several default nodes with unwanted side effects which cause the a.m. issues?

Re: [mod]Extra TNT blast effects[tnt_extras]

PostPosted: Sat Oct 29, 2016 12:55
by red-001
Looks like xdecor doesn't allow cutting nodes that have on_blast callbacks. I added a workaround that makes sure xdecor is always loaded before this mod. That should fix the issue.