Add "tools_obsidian" mod.

This commit is contained in:
AntumDeluge 2016-08-27 15:15:46 -07:00
parent 61d296ba79
commit f5bf62f11d
12 changed files with 138 additions and 2 deletions

View File

@ -111,8 +111,9 @@ The following mods are also included:
* [tnt][] ([WTFPL](mods/tnt/README.txt)) (Git [d6a0b7d][tnt version])
* tools/
* [compassgps][] ([WTFPL / CC0 / CC BY-SA](mods/tools/compassgps/README.md))
* [torches][] ([LGPL/CC-BY-SA](mods/tools/torches/README.txt))
* [workbench][] ([GPL/WTFPL](mods/tools/workbench/LICENSE))
* [torches][] ([LGPL / CC-BY-SA](mods/tools/torches/README.txt))
* [workbench][] ([GPL / WTFPL](mods/tools/workbench/LICENSE))
* [tools_obsidian][] ([LGPL / CC BY-SA](mods/tools/tools_obsidian/README.md)) -- version: [f77fd79][obsidian_tools version]
* transport/
* [carts][] ([WTFPL/CC0](mods/transport/carts/README.txt))
* [hovercraft][] ([LGPL / CC BY-SA / CC0](mods/transport/hovercraft/LICENSE.txt))
@ -204,6 +205,8 @@ The following mods are also included:
[tnt]: https://forum.minetest.net/viewtopic.php?id=2902
[tnt version]: https://github.com/PilzAdam/TNT/tree/d6a0b7dfec33c647414ed4c2dadf32b9347b7508
[torches]: https://forum.minetest.net/viewtopic.php?t=6099
[tools_obsidian]: https://forum.minetest.net/viewtopic.php?t=14236
[tools_obsidian version]: https://github.com/Dragonop/tools_obsidian/tree/f77fd79d76a85c07e08ca965708a75f500be32d6
[trampoline]: mods/furniture/trampoline
[trash_can]: https://forum.minetest.net/viewtopic.php?t=6315
[trees]: https://forum.minetest.net/viewtopic.php?f=11&t=5713

View File

@ -0,0 +1,29 @@
# tools_obsidian
Minetest Obsidian Tools mod. Adds obsidian sword, dagger and longsword.
Dependencies:
Default
Bucket
#####License for Code
Copyright (C) 2016 Dragonop <joaco-mono@hotmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#####License for Textures, Models and Sounds
CC-BY-SA 3.0 UNPORTED. Created by Dragonop

View File

@ -0,0 +1,2 @@
default
bucket

View File

@ -0,0 +1 @@
Adds obsidian dagger, sword, and longsword.

View File

@ -0,0 +1,7 @@
print("Obsidian tools")
dofile(minetest.get_modpath("tools_obsidian").."/sword.lua")
minetest.register_alias("sword_obsidian", "tools_obsidian:sword_obsidian")
minetest.register_alias("longsword_obsidian", "tools_obsidian:longsword_obsidian")
minetest.register_alias("dagger_obsidian", "tools_obsidian:dagger_obsidian")

View File

@ -0,0 +1 @@
name = tools_obsidian

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,93 @@
minetest.register_tool("tools_obsidian:sword_obsidian", {
description = "Obsidian Sword",
inventory_image = "tools_obsidian_sword.png",
wield_scale = {x=1.2,y=1,z=.4},
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
stack_max = 1,
range = 4.0,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy=14},
}
})
minetest.register_craft({
output = "tools_obsidian:sword_obsidian",
recipe = {
{"default:obsidian_glass", "default:obsidian_shard", "default:obsidian"},
{"default:mese_crystal", "default:obsidian", "default:diamond"},
{"bucket:bucket_lava", "default:mese_crystal", "default:obsidian_glass"}
},
replacements = {
{"bucket:bucket_lava", "bucket:bucket_empty"},
}
}
)
--longsword
minetest.register_tool("tools_obsidian:longsword_obsidian", {
description = "Obsidian Longword",
inventory_image = "tools_obsidian_sword_long.png",
wield_image = "tools_obsidian_sword_long.png",
wield_scale = {x=2,y=1.3,z=.4},
tool_capabilities = {
full_punch_interval = 4.2,
max_drop_level=2,
stack_max = 1,
range = 4.0,
max_drop_level=2,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy=26},
}
})
minetest.register_craft({
output = "tools_obsidian:longsword_obsidian",
recipe = {
{"default:obsidian_glass", "default:obsidian_shard", "default:obsidian"},
{"default:mese_crystal", "tools_obsidian:sword_obsidian", "default:diamond"},
{"bucket:bucket_lava", "default:mese_crystal", "default:obsidian_glass"}
},
replacements = {
{"bucket:bucket_lava", "bucket:bucket_empty"},
}
}
)
--dagger
minetest.register_tool("tools_obsidian:dagger_obsidian", {
description = "Obsidian Dagger",
inventory_image = "tools_obsidian_dagger.png",
wield_image = "tools_obsidian_dagger_wield.png",
wield_scale = {x=1.2,y=1,z=.4},
tool_capabilities = {
full_punch_interval = .5,
max_drop_level=1,
stack_max = 1,
range = 3.0,
max_drop_level=2,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy=2},
}
})
minetest.register_craft({
output = "tools_obsidian:dagger_obsidian",
recipe = {
{"default:obsidian_glass", "default:obsidian", "default:obsidian_shard"},
{"default:mese_crystal_fragment", "default:obsidian_shard", "default:diamond"},
{"bucket:bucket_lava", "default:mese_crystal_fragment", "default:obsidian_glass"}
},
replacements = {
{"bucket:bucket_lava", "bucket:bucket_empty"},
}
}
)

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B