approved deleted, castle_grille waiting for mesecons, roof for nemo and addore for me :3

master
Victor Hackeridze 2012-04-06 18:30:15 +06:00
parent 7270ca3a28
commit 106170bea4
353 changed files with 5 additions and 5865 deletions

View File

@ -1,128 +0,0 @@
-- add_tool
-- Make it easier to add a tool type (e.g. gold tools, silver tools, etc.)
-- Copyright 2011 Mark Holmquist, licensed under GPLv3
-- syntax:
-- register_tool_type(mod, type, crafttype, time, uses, extra_rules)
-- mod = name of your mod
-- type = type of tool
-- crafttype = name of item used to craft the tool ('craft "default:cobble"' or similar)
-- time = speed of the tool type (lower is faster)
-- uses = durability
-- extra_rules = a table with any extra rules. example:
-- {shovel_durability = 40} -- increases the base durability of shovels by 40 uses
-- {pick_speed = -0.2} -- decreases the amount of time taken per dig by 0.2 seconds for picks
-- Please note that, if you're adding your tools using this mod, it expects your texture to be of form
-- [[modname]]_tool_[[type]]shovel.png
-- For example:
-- moreores_tool_goldpick.png
-- Updated by Calinou on 2011-01-23
-- For More Ores mod
register_tool_type = function(modname, labelname, typename, crafttype, basetime, basedurability, extra_rules)
minetest.register_craft({
description = labelname,
output = 'tool "'..modname..':'..typename..'_pick'..'"',
recipe = {
{ crafttype, crafttype, crafttype },
{ '', 'craft "default:stick"', ''},
{ '', 'craft "default:stick"', ''}
}
})
minetest.register_craft({
description = labelname,
output = 'tool "'..modname..':'..typename..'_shovel'..'"',
recipe = {
{ '', crafttype, '' },
{ '', 'craft "default:stick"', ''},
{ '', 'craft "default:stick"', ''}
}
})
minetest.register_craft({
description = labelname,
output = 'tool "'..modname..':'..typename..'_axe'..'"',
recipe = {
{ crafttype, crafttype },
{ crafttype, 'craft "default:stick"' },
{ '', 'craft "default:stick"'}
}
})
minetest.register_craft({
description = labelname,
output = 'tool "'..modname..':'..typename..'_sword'..'"',
recipe = {
{ crafttype },
{ crafttype },
{ 'craft "default:stick"' }
}
})
local ft = basetime + (extra_rules.pick_speed or 0)
local fd = basedurability + (extra_rules.pick_durability or 0)
minetest.register_tool(modname..":"..typename.."_pick", {
inventory_image = modname.."_tool_"..typename.."pick.png",
basetime = ft,
dt_weight = 0,
dt_crackiness = -0.5,
dt_crumbliness = 2,
dt_cuttability = 0,
basedurability = fd,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
})
ft = basetime + (extra_rules.shovel_speed or 0)
fd = basedurability + (extra_rules.shovel_durability or 0)
minetest.register_tool(modname..":"..typename.."_shovel", {
inventory_image = modname.."_tool_"..typename.."shovel.png",
basetime = ft,
dt_weight = 0.5,
dt_crackiness = 2,
dt_crumbliness = -1.5,
dt_cuttability = 0,
basedurability = fd,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
})
ft = basetime + (extra_rules.axe_speed or 0)
fd = basedurability + (extra_rules.axe_durability or 0)
minetest.register_tool(modname..":"..typename.."_axe", {
inventory_image = modname.."_tool_"..typename.."axe.png",
basetime = ft,
dt_weight = 0.5,
dt_crackiness = -0.2,
dt_crumbliness = 1,
dt_cuttability = -0.5,
basedurability = fd,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
})
ft = basetime + (extra_rules.sword_speed or 0)
fd = basedurability + (extra_rules.sword_durability or 0)
minetest.register_tool(modname..":"..typename.."_sword", {
inventory_image = modname.."_tool_"..typename.."sword.png",
basetime = ft,
dt_weight = 3,
dt_crackiness = 0,
dt_crumbliness = 1,
dt_cuttability = -1,
basedurability = fd,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
})
end

View File

@ -1 +0,0 @@
default

View File

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

View File

@ -1,95 +0,0 @@
-- bucket (Minetest 0.4 mod)
-- A bucket, which can pick up water and lava
minetest.register_alias("bucket", "bucket:bucket_empty")
minetest.register_alias("bucket_water", "bucket:bucket_water")
minetest.register_alias("bucket_lava", "bucket:bucket_lava")
minetest.register_craft({
output = 'bucket:bucket_empty 1',
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot'},
{'', 'default:steel_ingot', ''},
}
})
bucket = {}
bucket.liquids = {}
-- Register a new liquid
-- source = name of the source node
-- flowing = name of the flowing node
-- itemname = name of the new bucket item (or nil if liquid is not takeable)
-- inventory_image = texture of the new bucket item (ignored if itemname == nil)
-- This function can be called from any mod (that depends on bucket).
function bucket.register_liquid(source, flowing, itemname, inventory_image)
bucket.liquids[source] = {
source = source,
flowing = flowing,
itemname = itemname,
}
bucket.liquids[flowing] = bucket.liquids[source]
if itemname ~= nil then
minetest.register_craftitem(itemname, {
inventory_image = inventory_image,
stack_max = 1,
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
-- Must be pointing to node
if pointed_thing.type ~= "node" then
return
end
-- Check if pointing to a liquid
n = minetest.env:get_node(pointed_thing.under)
if bucket.liquids[n.name] == nil then
-- Not a liquid
minetest.env:add_node(pointed_thing.above, {name=source})
elseif n.name ~= source then
-- It's a liquid
minetest.env:add_node(pointed_thing.under, {name=source})
end
return {name="bucket:bucket_empty"}
end
})
end
end
minetest.register_craftitem("bucket:bucket_empty", {
inventory_image = "bucket.png",
stack_max = 1,
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
-- Must be pointing to node
if pointed_thing.type ~= "node" then
return
end
-- Check if pointing to a liquid source
n = minetest.env:get_node(pointed_thing.under)
liquiddef = bucket.liquids[n.name]
if liquiddef ~= nil and liquiddef.source == n.name and liquiddef.itemname ~= nil then
minetest.env:add_node(pointed_thing.under, {name="air"})
return {name=liquiddef.itemname}
end
end,
})
bucket.register_liquid(
"default:water_source",
"default:water_flowing",
"bucket:bucket_water",
"bucket_water.png"
)
bucket.register_liquid(
"default:lava_source",
"default:lava_flowing",
"bucket:bucket_lava",
"bucket_lava.png"
)
minetest.register_craft({
type = "fuel",
recipe = "default:bucket_lava",
burntime = 60,
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 369 B

View File

@ -1,3 +0,0 @@
mesecons
mesecons_materials
mesecons_mvps

View File

@ -1,2 +0,0 @@
dye
flowers

View File

@ -1,102 +0,0 @@
local CB_NAMES_COLORS = {
["white"] = "White cotton block",
["light_gray"] = "Light-gray cotton block",
["gray"] = "Gray cotton block",
["black"] = "Black cotton block",
["red"] = "Red cotton block",
["orange"] = "Orange cotton block",
["yellow"] = "Yellow cotton block",
["lime"] = "Lime cotton block",
["green"] = "Green cotton block",
["light_blue"] = "Light-blue cotton block",
["cyan"] = "Cyan cotton block",
["blue"] = "Blue cotton block",
["purple"] = "Purple cotton block",
["magenta"] = "Magenta cotton block",
["pink"] = "Pink cotton block",
["brown"] = "Brown cotton block",
}
minetest.register_craft({
output = 'cotton_blocks:white',
recipe = {
{'flowers:cotton','flowers:cotton'},
{'flowers:cotton','flowers:cotton'},
}
})
local addCBrecipe = function(new, first, second)
minetest.register_craft({
output = new,
recipe = {
{first, "dye:" .. second},
}
})
minetest.register_craft({
output = new,
recipe = {
{"dye:".. second, "dye:" .. first},
}
})
minetest.register_craft({
output = new,
recipe = {
{first},
{"dye:".. second},
}
})
minetest.register_craft({
output = new,
recipe = {
{"dye:".. second},
{first},
}
})
minetest.register_craft({
output = new,
recipe = {
{"dye:".. second,""},
{"",first},
}
})
minetest.register_craft({
output = new,
recipe = {
{first,""},
{"","dye:".. second},
}
})
minetest.register_craft({
output = new,
recipe = {
{"","dye:".. second},
{first,""},
}
})
minetest.register_craft({
output = new,
recipe = {
{"",first},
{"dye:".. second,""},
}
})
end
for color, name in pairs(CB_NAMES_COLORS) do
minetest.register_node("cotton_blocks:" .. color, {
description = name,
tile_images = {"cb_" .. color .. ".png"},
inventory_image = minetest.inventorycube("cb_" .. color .. ".png"),
is_ground_content = true,
minetest.digprop_leaveslike(2.0), -- WTF???????? FUCK!!!!!!!!!1111111!!!!!!!!!111
})
addCBrecipe("cotton_blocks:" .. color,"cotton_blocks:white",color)
addCBrecipe("cotton_blocks:white","cotton_blocks:" .. color,"white")
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 682 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 990 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

Some files were not shown because too many files have changed in this diff Show More