[Mod] Compressed Obsidian TNT v1.3 [compressed_obsidian]
[Mod] Compressed Obsidian TNT v1.3 [compressed_obsidian]
*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.
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
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.
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 (301.99 KiB) Viewed 803 times
Last edited by petra2201 on Mon Mar 20, 2017 16:23, edited 7 times in total.
Re: Compressed Obsidian TNT-proof
Crafting recipe
Re: Compressed Obsidian TNT-proof
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.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Compressed Obsidian TNT v1.1
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.
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
Re: [Mod] Compressed Obsidian TNT v1.1
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?
- 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
thats sick, like in minecraft
My Public Mods! Discord: Rottweiler Games#3368
Re: [Mod] Compressed Obsidian TNT v1.3
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).
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: [Mod] Compressed Obsidian TNT v1.3
> 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.
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.
- 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
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
It uses on blast and doesn't mess with tnt in anyway.
Who is online
Users browsing this forum: Dmax_05 and 23 guests