Initial Release

master
jojoa1997 2013-03-02 21:41:01 -05:00
commit 291f3aab3a
29 changed files with 349 additions and 0 deletions

22
.gitattributes vendored Normal file
View File

@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

163
.gitignore vendored Normal file
View File

@ -0,0 +1,163 @@
#################
## Eclipse
#################
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover
## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
# Visual Studio profiler
*.psess
*.vsp
# ReSharper is a .NET coding add-in
_ReSharper*
# Installshield output folder
[Ee]xpress
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish
# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
############
## Windows
############
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
#############
## Python
#############
*.py[co]
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg
# Mac crap
.DS_Store

1
changelog.txt Normal file
View File

@ -0,0 +1 @@
3/2/13-Initial Release-basic tools, rings, and nature staff were added

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

13
init.lua Normal file
View File

@ -0,0 +1,13 @@
---------------------------------------------------------------------------------
-- Megatools mod by jojoa1997
-- This mod is made by jojoa1997.
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
---------------------------------------------------------------------------------
dofile(minetest.get_modpath("megatools").."/tools.lua");
dofile(minetest.get_modpath("megatools").."/recipes.lua");
dofile(minetest.get_modpath("megatools").."/items.lua");
print("Loaded Megatools by jojoa1997!")

14
items.lua Normal file
View File

@ -0,0 +1,14 @@
--This is the definition table
function register_items(name, desc, img)
minetest.register_craftitem(name, {
description = desc,
inventory_image = img,
})
end
--These decide what properties the item has.
register_items("megatools:ring_wood", "Wooden Ring", "ring_wood.png")
register_items("megatools:ring_stone", "Stone Ring", "ring_stone.png")
register_items("megatools:ring_steel", "Steel Ring", "ring_steel.png")
register_items("megatools:ring_desert_stone", "Desert Ring", "ring_desert_stone.png")
register_items("megatools:ring_nature", "Nature Ring", "ring_nature.png")

2
license.txt Normal file
View File

@ -0,0 +1,2 @@
Code:GPL
Texture: WTFPL

93
recipes.lua Normal file
View File

@ -0,0 +1,93 @@
--Recipe definition table.
function recipe(out, item1, item2, ring)
minetest.register_craft({
type = 'shapeless',
output = out,
recipe = {
item1,
item2,
'default:stick',
ring,
ring,
},
})
end
--
--Recipes
--
--Shax
recipe("megatools:shax_wood", 'default:axe_wood', 'default:shovel_wood', 'megatools:ring_wood')
recipe("megatools:shax_stone", 'default:axe_stone', 'default:shovel_stone', 'megatools:ring_stone')
recipe("megatools:shax_stone", 'default:axe_stone', 'default:shovel_stone', 'megatools:ring_desert_stone')
recipe("megatools:shax_steel", 'default:axe_steel', 'default:shovel_steel', 'megatools:ring_steel')
--Pax
recipe("megatools:pax_wood", 'default:axe_wood', 'default:pick_wood', 'megatools:ring_wood')
recipe("megatools:pax_stone", 'default:axe_stone', 'default:pick_stone', 'megatools:ring_stone')
recipe("megatools:pax_stone", 'default:axe_stone', 'default:pick_stone', 'megatools:ring_desert_stone')
recipe("megatools:pax_steel", 'default:axe_steel', 'default:pick_steel', 'megatools:ring_steel')
--Pivel
recipe("megatools:pivel_wood", 'default:pick_wood', 'default:shovel_wood', 'megatools:ring_wood')
recipe("megatools:pivel_stone", 'default:pick_stone', 'default:shovel_stone', 'megatools:ring_stone')
recipe("megatools:pivel_stone", 'default:pick_stone', 'default:shovel_stone', 'megatools:ring_desert_stone')
recipe("megatools:pivel_steel", 'default:pick_steel', 'default:shovel_steel', 'megatools:ring_steel')
--Rings
minetest.register_craft({
output = 'megatools:ring_wood',
recipe = {
{'default:leaves', 'group:tree', 'default:leaves'},
{'group:tree', '', 'group:tree'},
{'default:leaves', 'group:tree', 'default:leaves'},
},
})
minetest.register_craft({
output = 'megatools:ring_stone',
recipe = {
{'default:cobble', 'default:stone', 'default:cobble'},
{'default:stone', '', 'default:stone'},
{'default:cobble', 'default:stone', 'default:cobble'}
},
})
minetest.register_craft({
output = 'megatools:ring_desert_stone',
recipe = {
{'default:desert_sand', 'default:desert_stone', 'default:desert_sand'},
{'default:desert_stone', '', 'default:desert_stone'},
{'default:desert_sand', 'default:desert_stone', 'default:desert_sand'}
},
})
minetest.register_craft({
output = 'megatools:ring_steel',
recipe = {
{'default:steel_ingot', 'default:mese_crystal_fragment', 'default:steel_ingot'},
{'default:mese_crystal_fragment', '', 'default:mese_crystal_fragment'},
{'default:steel_ingot', 'default:mese_crystal_fragment', 'default:steel_ingot'}
},
})
--Ultamite tool
minetest.register_craft({
type = 'shapeless',
output = 'megatools:ring_nature',
recipe = {
'megatools:ring_wood',
'megatools:ring_stone',
'megatools:ring_desert_stone',
'megatools:ring_steel',
},
})
minetest.register_craft({
output = 'megatools:nature_staff',
recipe = {
{'megatools:ring_nature', 'megatools:ring_nature', 'megatools:ring_nature'},
{'megatools:ring_nature', 'default:stick', 'megatools:ring_nature'},
{'megatools:ring_nature', 'default:stick', 'megatools:ring_nature'},
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

BIN
textures/nature_staff.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B

BIN
textures/ring_nature.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

BIN
textures/ring_steel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

BIN
textures/ring_stone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

BIN
textures/ring_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

2
todo.txt Normal file
View File

@ -0,0 +1,2 @@
-add a paxel for each type of material
-add sword tools

38
tools.lua Normal file
View File

@ -0,0 +1,38 @@
--register_tools("megatools:", "", "megatools_.png", , , , , , , , , , , , , , , , )
local na = 100
-- This is the definition table.
function register_tools(name, desc, inv_img, mdrop, crack1, crack2, crack3, crum1, crum2, crum3, chop1, chop2, chop3, use, mlev)
minetest.register_tool(name, {
description = desc,
inventory_image = inv_img,
tool_capabilities = {
max_drop_level=mdrop,
groupcaps={
cracky={times={[1]=crack1, [2]=crack2, [3]=crack3}, uses=use, maxlevel=mlev},
crumbly={times={[1]=crum1, [2]=crum2, [3]=crum3}, uses=use, maxlevel=mlev},
choppy={times={[1]=chop1, [2]=chop2, [3]=chop3}, uses=use, maxlevel=mlev},
}
},
})
end
--These decide what properties the tools has.
--Wood
register_tools("megatools:shax_wood", "Wooden Shax", "megatools_shax_wood.png", 0, na, na, na, 2, .8, .5, na, 1.4, .8, 20, 1)
register_tools("megatools:pax_wood", "Wooden Pax", "megatools_pax_wood.png", 0, na, 2, 1.2, na, 3, .7, 1.5, 1, .6, 20, 1)
register_tools("megatools:pivel_wood", "Wooden Pivel", "megatools_pivel_wood.png", 0, na, 2, 1.2, 2, .8, .5, na, na, na, 20, 1)
--Stone
register_tools("megatools:shax_stone", "Stone Shax", "megatools_shax_stone.png", 0, na, na, na, 1.5, .5, .5, 3, 1.6, .6, 40, 1)
register_tools("megatools:pax_stone", "Stone Pax", "megatools_pax_stone.png", 0, 3, 1.2, .8, na, 3, .7, 3, 1, .6, 40, 1)
register_tools("megatools:pivel_stone", "Stone Pivel", "megatools_pivel_stone.png", 0, 3, 1.2, .8, 1.5, .5, .5, na, na, na, 40, 1)
--Steel
register_tools("megatools:shax_steel", "Steel Shax", "megatools_shax_steel.png", 1, na, na, na, 1.7, .7, .6, 3, 1, .6, 60, 2)
register_tools("megatools:pax_steel", "Steel Pax", "megatools_pax_steel.png", 1, 3, 1.2, .8, na, 3, .7, 3, 1, .6, 60, 2)
register_tools("megatools:pivel_steel", "Steel Pivel", "megatools_pivel_steel.png", 1, 3, 1.2, .8, 1.7, .7, .6, na, na, na, 60, 2)
--Ultamite Tool
register_tools("megatools:nature_staff", "Nature Staff", "nature_staff.png", 1, .5, .5, .5, .5, .5, .5, .5, .5, .5, 160, 3)