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

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

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

by petra2201 » Sat Jun 11, 2016 03:38

*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
Attachments
CompressedOb.png
(301.99 KiB) Not downloaded yet
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
 

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

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

Re: Compressed Obsidian TNT-proof

by vitalie » Sat Jun 11, 2016 14:23

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 » Sat Jun 11, 2016 15:22

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: 3254
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod] Compressed Obsidian TNT v1.1

by paramat » Wed Jan 04, 2017 03:22

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 14 times
 

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

Re: [Mod] Compressed Obsidian TNT v1.1

by petra2201 » Wed Jan 04, 2017 03:49

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: 895
Joined: Tue Aug 02, 2016 22:04
Location: Madrid,Spain
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: [Mod] Compressed Obsidian TNT v1.1

by ManElevation » Wed Jan 04, 2017 06:50

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 » Wed Jan 04, 2017 16:41

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: 3254
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod] Compressed Obsidian TNT v1.3

by paramat » Wed Jan 04, 2017 19:23

> 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: 3243
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Compressed Obsidian TNT v1.3

by Wuzzy » Tue Jan 10, 2017 21:03

Is this mod messing with the TNT mod in any way or does it use on_blast like it should?
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

Re: [Mod] Compressed Obsidian TNT v1.3

by petra2201 » Tue Jan 10, 2017 21:06

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

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

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

by Wuzzy » Wed Jan 11, 2017 05:51

Very good! :-)
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests