Railcraft

Railcraft

34M Downloads

[Suggestion] Dynamite

abculatter2 opened this issue ยท 7 comments

commented

A friend of mine made a mod for me that added dynamite, and after hearing you guys are trying to improve the RC ore veins, I figured the idea might be useful as my understanding of the ore veins is that they require clearing out large quantities of stone.

The implementation is that you have an item which can be right-clicked and, if you have a flint and steel or a fire charge in your hotbar, it will throw that item as an entity that will make a small explosion with 100% of drops. When thrown, it will also consume either one durability from the flint and steel or one fire charge, depending on which one you have.
There are also 'Mining Caps', which you can place on walls at the cost of one dynamite, and then right-clicked to detonate it, clearing out a one-block deep 3x3 hole, decreasing the durability of the mining cap by one. The placing of the block wasn't actually implemented, as it was easier to just leave it as an item. You can do whichever option you prefer. Another unimplemented (I think?) feature was the idea of enchanting the mining caps with Efficiency and Unbreaking. Efficiency increased the number of dynamite used per placement and making a hole one block deeper as well as using one extra durability point per dynamite. Unbreaking would do exactly what it does for tools.

Also, there was the idea of Ender and Sticky dynamite, with Ender dynamite teleporting any items in the explosion radius to the location the dynamite was thrown, while Sticky dynamite would stick to entities and walls that it struck.

EDIT: Also, something else that I forgot in the above description; All types of dynamite would be intended to be usable in a dispenser, just as if a player threw it at that location.

I'm not really a coder, so I'm not 100% sure which java classes from the mod would be relevant or useful to you, but here's the dynamite item class from that mod;
https://github.com/Katalliaan/Building-Rails/blob/master/src/main/java/building_rails/item/ItemDynamite.java

And here are all the related textures, which you can feel free to use;
https://github.com/Katalliaan/Building-Rails/tree/master/src/main/resources/assets/building_rails/textures/items/explosives

commented

Use ic2 for dynamites.

commented

Not everyone uses IC2.
Also, I feel that this implementation of dynamite is sufficiently different from IC2's that it's acceptable to have both together.

commented

Dynamite (bomber) cart?

commented

That reminded me of something I forgot to add, thanks for that.
As for the actual idea... I guess it could work with suspended tracks + ender dynamite? I don't feel it would be worth the effort, though. Unless, I guess if you just wanted to clear out terrain...

commented

Force track. ;)

commented

Remembered another idea for this that I forgot to mention; You could also add the ability to apply the fortune and silk touch enchantments to the dynamite itself, which would cause it to apply those enchantments to blocks it explodes. Could be limited to the mining cap, if necessary.

commented

sound like a good idea for those who do not want IC2 just for the dynamite. i support.