+ commit ALL THE THINGS

master
Nils Dagsson Moskopp 2011-12-01 20:22:23 +01:00
commit 777aec8fe2
24 changed files with 166 additions and 0 deletions

128
init.lua Normal file
View File

@ -0,0 +1,128 @@
local craftitem_place_item = function(item, player, pos)
minetest.env:add_item(pos, 'CraftItem "' .. item .. '" 1')
return true
end
-- items
minetest.register_craft({
output = 'CraftItem "lever_wood" 2',
recipe = {
{'CraftItem "Stick"'},
}
})
minetest.register_craftitem("lever_wood", {
image = "lever_wood.png",
stack_max = 99,
on_place_on_ground = craftitem_place_item,
})
minetest.register_craft({
output = 'CraftItem "axle_wood" 1',
recipe = {
{'CraftItem "Stick"', 'CraftItem "Stick"'},
}
})
minetest.register_craftitem("axle_wood", { -- axle should be a NodeItem
image = "axle_wood.png",
stack_max = 99,
on_place_on_ground = craftitem_place_item,
})
minetest.register_craftitem("screw_wood", {
image = "screw_wood.png",
stack_max = 99,
on_place_on_ground = craftitem_place_item,
})
minetest.register_craft({
output = 'CraftItem "screw_wood" 1',
recipe = {
{'NodeItem "wood"', 'CraftItem "axle_wood"', 'NodeItem "wood"'},
}
})
minetest.register_craft({
output = 'CraftItem "gear_wood" 1',
recipe = {
{'', 'CraftItem "Stick"', ''},
{'CraftItem "Stick"', 'NodeItem "wood"', 'CraftItem "Stick"'},
{'', 'CraftItem "Stick"', ''},
}
})
minetest.register_craftitem("gear_wood", {
image = "gear_wood.png",
stack_max = 99,
on_place_on_ground = craftitem_place_item,
})
minetest.register_craft({
output = 'CraftItem "gear_big_wood" 1',
recipe = {
{'CraftItem "Stick"', 'CraftItem "Stick"', 'CraftItem "Stick"'},
{'CraftItem "Stick"', 'NodeItem "wood"', 'CraftItem "Stick"'},
{'CraftItem "Stick"', 'CraftItem "Stick"', 'CraftItem "Stick"'},
}
})
minetest.register_craftitem("gear_big_wood", {
image = "gear_big_wood.png",
stack_max = 99,
on_place_on_ground = craftitem_place_item,
})
-- nodes
function digprop_woodlike(toughness)
return {
diggablity = "normal",
weight = toughness * 1.0,
crackiness = 0.75,
crumbliness = -1.0,
cuttability = 1.5,
}
end
minetest.register_craft({
output = 'NodeItem "gearbox_wood" 1',
recipe = {
{'NodeItem "wood"', 'NodeItem "wood"', 'NodeItem "wood"'},
{'NodeItem "wood"', 'CraftItem "gear_wood"', 'NodeItem "wood"'},
{'NodeItem "wood"', 'NodeItem "wood"', 'NodeItem "wood"'},
}
})
minetest.register_node("gearbox_wood", {
tile_images = {"gearbox_hole_wood.png"},
inventory_image = inventorycube("gearbox_hole_wood.png"),
is_ground_content = true,
material = digprop_woodlike(0.75),
furnace_burntime = 30,
})
minetest.register_craft({
output = 'NodeItem "crank_wood" 1',
recipe = {
{'CraftItem "lever_wood"', 'CraftItem "lever_wood"'},
{'CraftItem "lever_wood"', ''},
}
})
minetest.register_node("crank_wood", {
drawtype = "torchlike",
tile_images = {"crank_wood_floor.png", "crank_wood_ceiling.png", "crank_wood_wall.png"},
inventory_image = "crank_wood_wall.png",
walkable = false,
wall_mounted = true,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
wall_bottom = {-0.3, -0.5, -0.3, 0.1, 0, 0.1},
wall_side = {-0.5, -0.4, -0.1, 0, 0.1, 0.1},
},
material = digprop_constanttime(0.0),
furnace_burntime = 4,
})

1
license Normal file
View File

@ -0,0 +1 @@
GIEV MONIEZ PLOX

37
recipe ideas Normal file
View File

@ -0,0 +1,37 @@
wooden axle:
stick, stick
wooden lever:
stick (yields two levers)
wooden gear:
none, stick, none
stick, wood, stick
none, stick, none
wooden gearbox (repeater, needed after 3 wooden axles):
wood, wood, wood
wood, wooden gear, wood
wood, wood, wood
wooden gearbox with lever (repeater with on/off switch):
lever,
gearbox
wooden big gear:
stick, stick, stick
stick, wood, stick
stick, stick, stick
windmill:
some fabric, stick, some fabric
stick, wooden big gear, stick
some fabric, stick, some fabric
watermill:
wood, wood, wood
wood, wooden big gear, wood
wood, wood, wood
wooden screw (water pumping part?):
gear, axle, gear

BIN
textures/axle_metal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

BIN
textures/axle_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

BIN
textures/gear_big_metal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

BIN
textures/gear_big_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

BIN
textures/gear_metal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

BIN
textures/gear_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

BIN
textures/gearbox_metal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

BIN
textures/gearbox_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

BIN
textures/grindstone.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

BIN
textures/lever_metal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

BIN
textures/lever_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

BIN
textures/screw_metal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

BIN
textures/screw_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

BIN
textures/watermill.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

BIN
textures/windmill.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B