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

Post Reply
petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

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

by petra2201 » Post

*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/Co ... d-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
Attachments
CompressedOb.png
CompressedOb.png (301.99 KiB) Viewed 803 times
Last edited by petra2201 on Mon Mar 20, 2017 16:23, edited 7 times in total.

petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

Re: Compressed Obsidian TNT-proof

by petra2201 » Post

screenshot_20160611_090449.png
screenshot_20160611_090449.png (514.12 KiB) Viewed 803 times
screenshot_20160611_090448.png
screenshot_20160611_090448.png (506.51 KiB) Viewed 803 times
screenshot_20160611_090442.png
screenshot_20160611_090442.png (508.99 KiB) Viewed 803 times

petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

Re: Compressed Obsidian TNT-proof

by petra2201 » Post

Crafting recipe

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

vitalie
Member
Posts: 66
Joined: Wed Feb 24, 2016 07:38
GitHub: ciubotaru

Re: Compressed Obsidian TNT-proof

by vitalie » Post

Tested with my explosives. Proven to be blast-resistant.

Cool. Who knew it's even possible?!

petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

Re: Compressed Obsidian TNT-proof

by petra2201 » Post

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.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod] Compressed Obsidian TNT v1.1

by paramat » Post

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.
Attachments
compressed_obsidian.zip
(12.58 KiB) Downloaded 43 times

petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

Re: [Mod] Compressed Obsidian TNT v1.1

by petra2201 » Post

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?

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] Compressed Obsidian TNT v1.1

by ManElevation » Post

thats sick, like in minecraft
My Public Mods! Discord: Rottweiler Games#3368

petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

Re: [Mod] Compressed Obsidian TNT v1.3

by petra2201 » Post

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).

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [Mod] Compressed Obsidian TNT v1.3

by paramat » Post

> 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.

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Compressed Obsidian TNT v1.3

by Wuzzy » Post

Is this mod messing with the TNT mod in any way or does it use on_blast like it should?

petra2201
Member
Posts: 30
Joined: Fri Jun 05, 2015 14:42

Re: [Mod] Compressed Obsidian TNT v1.3

by petra2201 » Post

It uses on blast and doesn't mess with tnt in anyway.

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

Very good! :-)

Post Reply

Who is online

Users browsing this forum: Dmax_05 and 23 guests