Browse Source

only alias tnt if tnt is not enabled

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
b36d326e39
  1. 1
      etc/Mods,WIP/mock_tnt/README.txt
  2. 2
      etc/Mods,WIP/mock_tnt/init.lua

1
etc/Mods,WIP/mock_tnt/README.txt

@ -9,6 +9,7 @@ Mod for Minetest
* Does not harm any block or entity * Does not harm any block or entity
## Known Issues ## Known Issues
* when TNT is enabled, there is no crafting recipe for mock_tnt
* also ignite gunpowder with "default:torch", "fire:permanent_flame" (minetest_game only ignites via "fire:basic_flame", "default:lava_source", "default:lava_flowing") -- for some reason torch works already but permanent_flame does not * also ignite gunpowder with "default:torch", "fire:permanent_flame" (minetest_game only ignites via "fire:basic_flame", "default:lava_source", "default:lava_flowing") -- for some reason torch works already but permanent_flame does not
* Make gunpowder ignite via "building_blocks:Fireplace" * Make gunpowder ignite via "building_blocks:Fireplace"
* Make TNT ignite via neighbors "throwing:arrow_fireworks_blue", "throwing:arrow_fireworks_red" * Make TNT ignite via neighbors "throwing:arrow_fireworks_blue", "throwing:arrow_fireworks_red"

2
etc/Mods,WIP/mock_tnt/init.lua

@ -35,10 +35,10 @@ end
-- sounds = default.node_sound_sand_defaults(), -- sounds = default.node_sound_sand_defaults(),
-- }) -- })
minetest.register_alias("tnt:tnt", "mock_tnt:mock_tnt")
-- Only when "not" to not overlap tnt mod: -- Only when "not" to not overlap tnt mod:
if not enable_tnt then if not enable_tnt then
minetest.register_alias("tnt:tnt", "mock_tnt:mock_tnt")
minetest.register_craft({ minetest.register_craft({
output = "mock_tnt:mock_tnt", output = "mock_tnt:mock_tnt",
recipe = { recipe = {

Loading…
Cancel
Save