Page 1 of 1

[Mod] Compressed Obsidian TNT v1.3 [compressed_obsidian]

PostPosted: Sat Jun 11, 2016 03:38
by petra2201
*Update I added blast proof glass and doors (the doors are protected for now). I'm working on the stairs but no joy so far.

Me and my son's were discussing making something tnt proof so after a little research we came up with this. We call it compressed obsidian. It takes 9 pieces of obsidian to craft a single block. The nice thing is that it is tnt proof. However tnt placed beside it will destroy anything above, below and behind it. I hope you guys can find it useful. We overrode Adam's tnt damage so other explosions are not tested.

Here is a screen shot of what I have working so far. It's compressed obsidian block, glass, and glass door. Tnt will not destroy it. I've tested it with 4.15 as well.

Image

License: LGPL 2.1 or later. Includes all textures.
Dependencies: none.

Git
https://github.com/webstormcomputers/Compressed-Obsidian

TODO list
create a dampening effect to limit tnt's effects behind compressed obsidian. I'm looking at Adam's code and seeing if I can just override the damage radius maybe reducing behind compressed obsidian.
possibly update textures.
Add slab and stairs.

CREDIT
Paramat for stairs and slabs, and cleaning up the code a bit.

Forgot to say I did this after watching some videos by Nathan Salapat on modding.
Here's a link to his channel.
https://www.youtube.com/channel/UCr8qeS ... YMD7IPE0NQ

Re: Compressed Obsidian TNT-proof

PostPosted: Sat Jun 11, 2016 14:13
by petra2201
screenshot_20160611_090449.png
screenshot_20160611_090449.png (514.12 KiB) Viewed 3883 times
screenshot_20160611_090448.png
screenshot_20160611_090448.png (506.51 KiB) Viewed 3883 times
screenshot_20160611_090442.png
screenshot_20160611_090442.png (508.99 KiB) Viewed 3883 times

Re: Compressed Obsidian TNT-proof

PostPosted: Sat Jun 11, 2016 14:14
by petra2201
Crafting recipe


screenshot_20160611_090558.png
screenshot_20160611_090558.png (209.01 KiB) Viewed 3883 times

Re: Compressed Obsidian TNT-proof

PostPosted: Sat Jun 11, 2016 14:23
by vitalie
Tested with my explosives. Proven to be blast-resistant.

Cool. Who knew it's even possible?!

Re: Compressed Obsidian TNT-proof

PostPosted: Sat Jun 11, 2016 15:22
by petra2201
I followed a trail of hints from others who were looking to makea tnt canon and also borrowed code from the new steel door. I'd like to figure out how to create a dampening effect on the other side. Kind of like in real life where you can feel an explosion from inside a bunker but it won't necessarily kill you.

Re: [Mod] Compressed Obsidian TNT v1.1

PostPosted: Wed Jan 04, 2017 03:22
by paramat
This is what i have so far, it seems to work.
There are a lot of changes, feel free to use or not use the changes i have made.
I'll explain more in a PM.

I changed the mod name by adding an underscore between words, as is recommended, for readability. All the node names are therefore changed, so you will need to test in a new world, the mod won't be active in an existing world because the name changed, and existing mod nodes in an existing world would appear as unknown nodes.

Re: [Mod] Compressed Obsidian TNT v1.1

PostPosted: Wed Jan 04, 2017 03:49
by petra2201
That worked beautifully, interesting how you took all the code out of the init and put it straight into nodes. Is taking out the replace abm code going to affect anything down the line?

Re: [Mod] Compressed Obsidian TNT v1.1

PostPosted: Wed Jan 04, 2017 06:50
by ManElevation
thats sick, like in minecraft

Re: [Mod] Compressed Obsidian TNT v1.3

PostPosted: Wed Jan 04, 2017 16:41
by petra2201
I was going to try and make this buffer the blast from tnt but then I realized I'd have to access the blast radius which is local to the tnt object. Unfortunately I don't know enough about lua to access it and the creator of the tnt mod didn't make the radius variable accessible from the outside (which is understandable).

Re: [Mod] Compressed Obsidian TNT v1.3

PostPosted: Wed Jan 04, 2017 19:23
by paramat
> Is taking out the replace abm code going to affect anything down the line?

No the replace ABM is just support for very old worlds which have the old stairs and slabs that were coded differently, so not applicable for your new nodes.

Re: [Mod] Compressed Obsidian TNT v1.3

PostPosted: Tue Jan 10, 2017 21:03
by Wuzzy
Is this mod messing with the TNT mod in any way or does it use on_blast like it should?

Re: [Mod] Compressed Obsidian TNT v1.3

PostPosted: Tue Jan 10, 2017 21:06
by petra2201
It uses on blast and doesn't mess with tnt in anyway.

Re: [Mod] Compressed Obsidian TNT v1.3 [compressed_obsidian]

PostPosted: Wed Jan 11, 2017 05:51
by Wuzzy
Very good! :-)