Initial commit

master
qwrwed 2013-12-24 15:37:02 +00:00
commit 0de58dfd5b
40 changed files with 774 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

215
.gitignore vendored Normal file
View File

@ -0,0 +1,215 @@
#################
## 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/
x64/
build/
[Bb]in/
[Oo]bj/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
*.ncrunch*
.*crunch*.local.xml
# 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/
# Publish Web Output
*.Publish.xml
*.pubxml
# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings
# RIA/Silverlight projects
Generated_Code/
# 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
UpgradeLog*.htm
# SQL Server files
App_Data/*.mdf
App_Data/*.ldf
#############
## Windows detritus
#############
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Mac crap
.DS_Store
#############
## Python
#############
*.py[co]
# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg

2
icetools/depends.txt Normal file
View File

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

234
icetools/init.lua Normal file
View File

@ -0,0 +1,234 @@
-- mods/icetools/init.lua
minetest.register_node("icetools:stone_with_ice_crystal", {
description = "Ice Crystal Ore",
tiles = {"default_stone.png^icetools_mineral_ice_crystal.png"},
light_source = 7,
is_ground_content = true,
groups = {level=2, cracky=2},
drop = "icetools:ice_crystal",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem("icetools:ice_crystal", {
description = "Ice Crystal",
inventory_image = "icetools_ice_crystal.png",
})
minetest.register_craftitem("icetools:ice_crystal_refined", {
description = "Refined Ice Crystal",
inventory_image = "icetools_ice_crystal_refined.png",
})
minetest.register_craft({
type = "shapeless",
output = "icetools:ice_crystal_refined",
recipe = {"icetools:ice_crystal", "bucket:bucket_water", "default:diamond"},
})
minetest.register_craft({
output = "icetools:sword_ice",
recipe = {
{"icetools:ice_crystal_refined"},
{"icetools:ice_crystal_refined"},
{"group:stick"},
}
})
minetest.register_craft({
output = "icetools:pick_ice",
recipe = {
{"icetools:ice_crystal_refined", "icetools:ice_crystal_refined", "icetools:ice_crystal_refined"},
{"", "group:stick", ""},
{"", "group:stick", ""},
}
})
minetest.register_craft({
output = "icetools:axe_ice",
recipe = {
{"icetools:ice_crystal_refined", "icetools:ice_crystal_refined"},
{"icetools:ice_crystal_refined", "group:stick"},
{"", "group:stick"},
}
})
minetest.register_craft({
output = "icetools:shovel_ice",
recipe = {
{"icetools:ice_crystal_refined"},
{"group:stick"},
{"group:stick"},
}
})
minetest.register_craft({
output = "icetools:ice_cracked",
recipe = {
{"","bucket:bucket_water",""},
{"bucket:bucket_water","default:steel_ingot","bucket:bucket_water"},
{"","bucket:bucket_water",""},
},
replacements = { {"bucket:bucket_water", "bucket:bucket_empty"}, {"bucket:bucket_water", "bucket:bucket_empty"}, {"bucket:bucket_water", "bucket:bucket_empty"}, {"bucket:bucket_water", "bucket:bucket_empty"} },
})
minetest.register_craft({
output = "icetools:ice_reinforced",
recipe = {
{"","icetools:steel_melted",""},
{"icetools:steel_melted","icetools:ice_cracked","icetools:steel_melted"},
{"","icetools:steel_melted",""},
}
})
minetest.register_craft({
type = "cooking",
output = "icetools:steel_melted",
recipe = "default:steel_ingot",
})
minetest.register_craft({
output = "icetools:hoe_ice",
recipe = {
{"icetools:ice_crystal_refined","icetools:ice_crystal_refined"},
{"","group:stick"},
{"","group:stick"},
}
})
if minetest.get_modpath("paxels") == nil then
minetest.register_craft({
output = "icetools:paxel_ice",
recipe = {
{"icetools:axe_ice","icetools:shovel_ice","icetools:pick_ice"},
{"","icetools:ice_crystal_refined",""},
{"","icetools:ice_crystal_refined",""},
}
})
end
minetest.register_tool("icetools:sword_ice", {
description = "Ice Sword",
inventory_image = "icetools_tool_icesword.png",
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.50, [2]=0.60, [3]=0.20}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=9},
}
})
minetest.register_tool("icetools:pick_ice", {
description = "Ice Pickaxe",
inventory_image = "icetools_tool_icepick.png",
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=0.90, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=5},
},
})
minetest.register_tool("icetools:shovel_ice", {
description = "Ice Shovel",
inventory_image = "icetools_tool_iceshovel.png",
wield_image = "icetools_tool_iceshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=0.90, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=4},
},
})
minetest.register_tool("icetools:axe_ice", {
description = "Ice Axe",
inventory_image = "icetools_tool_iceaxe.png",
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level=1,
groupcaps={
choppy={times={[1]=0.90, [2]=0.40, [3]=0.10}, uses=50, maxlevel=2},
},
damage_groups = {fleshy=7},
},
})
minetest.register_craftitem("icetools:steel_melted", {
description = "Melted Steel",
inventory_image = "icetools_steel_melted.png",
})
minetest.register_node("icetools:ice_cracked", {
description = "Cracked Ice",
drawtype = "glasslike",
tiles = {"icetools_ice_cracked.png"},
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("icetools:ice_reinforced", {
description = "Reinforced Ice",
tiles = {"icetools_ice_reinforced.png"},
is_ground_content = true,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_tool("icetools:hoe_ice", {
description = "Ice Hoe",
inventory_image = "icetools_tool_icehoe.png",
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type ~= "node" then
return
end
node = minetest.get_node(pointed_thing.under)
if node == "group:soil" then
return farming.hoe_on_use(itemstack, user, pointed_thing, 50)
end
liquiddef = bucket.liquids["default:lava_source"]
if liquiddef ~= nil and liquiddef.itemname ~= nil and (node.name == liquiddef.source or
(node.name == "default:lava_source" or node.name == "default:lava_flowing")) then
minetest.add_node(pointed_thing.under, {name="default:obsidian"})
itemstack:add_wear(65535/70)
return itemstack
end
end
})
minetest.register_tool("icetools:paxel_ice", {
description = "Ice Paxel",
inventory_image = "icetools_tool_icepaxel.png",
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level=3,
groupcaps={
choppy = {times={[1]=0.80, [2]=0.40, [3]=0.10}, uses=50, maxlevel=2},
crumbly = {times={[1]=0.80, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
cracky = {times={[1]=0.80, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=8},
},
})
minetest.register_ore({
ore_type = "scatter",
ore = "icetools:stone_with_ice_crystal",
wherein = "default:stone",
clust_scarcity = 24*24*24,
clust_num_ores = 27,
clust_size = 6,
height_min = -31000,
height_max = -64,
flags = "absheight",
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

2
magmatools/depends.txt Normal file
View File

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

197
magmatools/init.lua Normal file
View File

@ -0,0 +1,197 @@
-- mods/magmatools/init.lua
minetest.register_node('magmatools:stone_with_magma_crystal', {
description = 'Magma Crystal Ore',
tiles = {'default_stone.png^magmatools_mineral_magma_crystal.png'},
light_source = 7,
is_ground_content = true,
groups = {level=2, cracky=2},
drop = 'magmatools:magma_crystal',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craftitem('magmatools:magma_crystal', {
description = 'Magma Crystal',
inventory_image = 'magmatools_magma_crystal.png',
})
minetest.register_craftitem('magmatools:magma_crystal_refined', {
description = 'Refined Magma Crystal',
inventory_image = 'magmatools_magma_crystal_refined.png',
})
minetest.register_craft({
type = "shapeless",
output = 'magmatools:magma_crystal_refined',
recipe = {'magmatools:magma_crystal', 'bucket:bucket_lava', 'default:mese_crystal'},
})
minetest.register_craft({
output = 'magmatools:sword_magma',
recipe = {
{'magmatools:magma_crystal_refined'},
{'magmatools:magma_crystal_refined'},
{'default:torch'},
}
})
minetest.register_craft({
output = 'magmatools:pick_magma',
recipe = {
{'magmatools:magma_crystal_refined', 'magmatools:magma_crystal_refined', 'magmatools:magma_crystal_refined'},
{'', 'default:torch', ''},
{'', 'default:torch', ''},
}
})
minetest.register_craft({
output = 'magmatools:axe_magma',
recipe = {
{'magmatools:magma_crystal_refined', 'magmatools:magma_crystal_refined'},
{'magmatools:magma_crystal_refined', 'default:torch'},
{'', 'default:torch'},
}
})
minetest.register_craft({
output = 'magmatools:shovel_magma',
recipe = {
{'magmatools:magma_crystal_refined'},
{'default:torch'},
{'default:torch'},
}
})
minetest.register_craft({
output = 'magmatools:hoe_magma',
recipe = {
{'magmatools:magma_crystal_refined','magmatools:magma_crystal_refined'},
{'','default:torch'},
{'','default:torch'},
}
})
if minetest.get_modpath("paxels") == nil then
minetest.register_craft({
output = 'magmatools:paxel_magma',
recipe = {
{'magmatools:axe_magma','magmatools:shovel_magma','magmatools:pick_magma'},
{'','magmatools:magma_crystal_refined',''},
{'','magmatools:magma_crystal_refined',''},
}
})
end
minetest.register_tool('magmatools:sword_magma', {
description = 'Magma Sword',
inventory_image = 'magmatools_tool_magmasword.png',
tool_capabilities = {
full_punch_interval = 0.4,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.50, [2]=0.60, [3]=0.20}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=10},
}
})
minetest.register_tool('magmatools:pick_magma', {
description = 'Magma Pickaxe',
inventory_image = 'magmatools_tool_magmapick.png',
tool_capabilities = {
full_punch_interval = 0.4,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=0.90, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=6},
},
})
minetest.register_tool('magmatools:shovel_magma', {
description = 'Magma Shovel',
inventory_image = 'magmatools_tool_magmashovel.png',
wield_image = 'magmatools_tool_magmashovel.png^[transformR90',
tool_capabilities = {
full_punch_interval = 0.4,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=0.90, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=5},
},
})
minetest.register_tool('magmatools:axe_magma', {
description = 'Magma Axe',
inventory_image = 'magmatools_tool_magmaaxe.png',
tool_capabilities = {
full_punch_interval = 0.4,
max_drop_level=1,
groupcaps={
choppy={times={[1]=0.90, [2]=0.40, [3]=0.10}, uses=50, maxlevel=2},
},
damage_groups = {fleshy=7},
},
})
minetest.register_tool('magmatools:hoe_magma', {
description = 'Magma Hoe',
inventory_image = 'magmatools_tool_magmahoe.png',
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type ~= 'node' then
return
end
local liquiddef = bucket.liquids['default:water_source']
node = minetest.get_node(pointed_thing.under)
if liquiddef ~= nil and liquiddef.itemname ~= nil and (node.name == liquiddef.source or
(node.name == 'default:water_source' or node.name == 'default:water_flowing')) then
minetest.add_node(pointed_thing.under, {name='default:obsidian'})
itemstack:add_wear(65535/70)
return itemstack
end
end
})
minetest.register_tool('magmatools:paxel_magma', {
description = 'Magma Paxel',
inventory_image = 'magmatools_tool_magmapaxel.png',
tool_capabilities = {
full_punch_interval = 0.4,
max_drop_level=3,
groupcaps={
choppy = {times={[1]=0.80, [2]=0.40, [3]=0.10}, uses=50, maxlevel=2},
crumbly = {times={[1]=0.80, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
cracky = {times={[1]=0.80, [2]=0.40, [3]=0.10}, uses=50, maxlevel=3},
},
damage_groups = {fleshy=8},
},
})
minetest.register_ore({
ore_type = 'scatter',
ore = 'magmatools:stone_with_magma_crystal',
wherein = 'default:stone',
clust_scarcity = 24*24*24,
clust_num_ores = 20,
clust_size = 6,
height_min = -31000,
height_max = -64,
flags = 'absheight',
})
minetest.register_ore({
ore_type = 'scatter',
ore = 'magmatools:stone_with_magma_crystal',
wherein = 'default:stone',
clust_scarcity = 24*24*24,
clust_num_ores = 24,
clust_size = 6,
height_min = -31000,
height_max = -128,
flags = 'absheight',
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

0
modpack.txt Normal file
View File

1
paxels/depends.txt Normal file
View File

@ -0,0 +1 @@
default

101
paxels/init.lua Normal file
View File

@ -0,0 +1,101 @@
local paxelnodeformspec =
"size[8,9]"..
"label[3,0;Paxel Workshop]"..
"list[current_name;paxeltype;1,2;1,1;]"..
"label[0,2;Material:]"..
"list[current_name;pickaxe;3,1;1,1;]"..
"label[2,1;Pickaxe:]"..
"list[current_name;axe;3,2;1,1;]"..
"label[2,2; Axe:]"..
"list[current_name;shovel;3,3;1,1;]"..
"label[2,3; Shovel:]"..
"list[current_name;paxel;6,2;1,1;]"..
"label[5,2; Paxel:]"..
"list[current_player;main;0,5;8,4;]"..
"button[5,3;3,1;create;Create Paxel]"
local paxels = {
{"icetools:ice_crystal_refined", "icetools:pick_ice", "icetools:axe_ice", "icetools:shovel_ice", "icetools:paxel_ice"},
{"magmatools:magma_crystal_refined", "magmatools:pick_magma", "magmatools:axe_magma", "magmatools:shovel_magma", "magmatools:paxel_magma"}
}
minetest.register_node("paxels:workshop", {
description = "Paxel Workshop",
tiles = {"paxels_workshop_top.png", "paxels_workshop_bottom.png", "paxels_workshop_side.png", "paxels_workshop_side.png", "paxels_workshop_side.png", "paxels_workshop_front.png"},
paramtype2 = "facedir",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",paxelnodeformspec)
meta:set_string("infotext", "Paxel Workshop")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
inv:set_size("pickaxe", 1*1)
inv:set_size("axe", 1*1)
inv:set_size("shovel", 1*1)
inv:set_size("paxel", 1*1)
inv:set_size("paxeltype", 1*1)
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
if listname == "pickaxe" or listname == "axe" or listname == "shovel" or listname == "paxeltype" then
return stack:get_count()
else
return 0
end
end,
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
if to_list == "paxel" then
return 0
else
return 1
end
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
if not inv:is_empty("pickaxe") then
return false
elseif not inv:is_empty("axe") then
return false
elseif not inv:is_empty("paxeltype") then
return false
elseif not inv:is_empty("shovel") then
return false
elseif not inv:is_empty("paxel") then
return false
end
return true
end,
on_receive_fields = function(pos, formname, fields, sender)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
for _, row in ipairs(paxels) do
local paxeltype = row[1]
local pick = row[2]
local axe = row[3]
local shovel = row[4]
local paxel = row[5]
if fields.create then
if inv:get_stack('paxeltype', 1):get_name() == paxeltype and inv:get_stack("pickaxe", 1):get_name() == pick and inv:get_stack("axe", 1):get_name() == axe and inv:get_stack("shovel", 1):get_name() == shovel and inv:is_empty("paxel") then
inv:add_item("paxel", paxel)
inv:set_stack("pickaxe", 1, nil)
inv:set_stack("axe", 1, nil)
inv:set_stack("shovel", 1, nil)
inv:remove_item("paxeltype", paxeltype)
end
end
end
end,
groups = {choppy=3,oddly_breakable_by_hand=3},
})
minetest.register_craft({
output = "paxels:workshop",
recipe = {
{"default:obsidian","default:obsidian_glass","default:obsidian"},
{"default:mese","default:diamondblock","default:mese"},
{"default:obsidian","default:steelblock","default:obsidian"},
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB