Code Monkey home page Code Monkey logo

torch_bomb's Introduction

Torch Bomb

If you've ever been exploring a cave and found a deep, dark hole in the ground with no clue as to what was below, this is the mod for you.

Throw a torch grenade and it will explode on impact, firing up to 12 torches 25 meters away from the detonation point to embed themselves in whatever surfaces they hit.

For surveying a larger chamber three torch grenades can be combined into a single torch bomb. Place the bomb block and ignite it by punching it with a torch. Three seconds later it'll detonate and fire up to 42 torches 50 meters away from the detonation point. Torch bombs are falling nodes when lit, much like TNT, but you need to punch them a second time once they are lit to make them fall.

Three torch bombs can be combined into one mega torch bomb. A mega torch bomb can fire up to 162 torches with a range of 150 meters from the detonation point. It produces enough of a blast to destroy nodes within 3 meters, so take care. One of these is suitable for illuminating a very large cavern with walls and ceiling too distant to reach otherwise.

If you want to scatter torches from the center of a cavern to reach floor and ceiling more evenly a torch bomb can be upgraded to a torch rocket with the addition of more TNT. Torch rockets can have a fuse set up to 14 seconds, which at their acceleration of 1 meter per second squared will cause it to rise nearly 100 meters before detonating.

For precision torch placement a set of torch crossbows are included: wooden, bronze, and steel.

TNT is an optional dependency for this mod, but torch bombs don't have a crafting recipe (and don't produce a damaging blast) without the tnt mod enabled.

torch_bomb's People

Contributors

facedeer avatar niklp09 avatar nonfreegithub avatar panquesito7 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

torch_bomb's Issues

Shooting torches with crossbow at unknown nodes crashes

AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback item_OnUse(): /home/user/.minetest/mods/torch_bomb/init.lua:286: attempt to index local 'under_def' (a nil value)
stack traceback:
	/home/user/.minetest/mods/torch_bomb/init.lua:286: in function 'find_target'
	/home/user/.minetest/mods/torch_bomb/init.lua:758: in function </home/ruser/.minetest/mods/torch_bomb/init.lua:736>

When shooting torches with a crossbow at unknown nodes (boxes that have text labeled on them reading as "unknown node"), the game crashes with that message:

Steps to reproduce:

  • In single player local game, use a mod that creates unique node blocks
  • create unique node blocks with that mod
  • exit the game, disable the mod
  • start the game again, shoot a torch at the unknown node block using any of the crossbows
  • crash!

torch_grenade sound

Players on my server have reported this.

The sound that plays when throwing the torch grenade the sound is played to everybody on the server.

Torch rockets are causing game to kill itself

Every time I try to use a torch rocket I get this error:

2023-10-22 17:59:53: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'torch_bomb' in callback luaentity_Step(): D:\Games\Minetest\bin..\mods\torch_bomb\init.lua:286: attempt to index local 'above_def' (a nil value)
2023-10-22 17:59:53: ERROR[Main]: stack traceback:
2023-10-22 17:59:53: ERROR[Main]: D:\Games\Minetest\bin..\mods\torch_bomb\init.lua:286: in function 'find_target'
2023-10-22 17:59:53: ERROR[Main]: D:\Games\Minetest\bin..\mods\torch_bomb\init.lua:336: in function 'kerblam'
2023-10-22 17:59:53: ERROR[Main]: D:\Games\Minetest\bin..\mods\torch_bomb\init.lua:498: in function 'entity_detonate'
2023-10-22 17:59:53: ERROR[Main]: D:\Games\Minetest\bin..\mods\torch_bomb\init.lua:556: in function <D:\Games\Minetest\bin..\mods\torch_bomb\init.lua:533>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.