mirror of
https://github.com/Dragonop/claycrafter.git
synced 2024-11-22 15:23:48 +01:00
Empty init.lua of node and craft defs.
This commit is contained in:
parent
7f35425823
commit
21e22e4451
44
init.lua
44
init.lua
@ -1,40 +1,8 @@
|
|||||||
-- Compressed dirt
|
local modpath = minetest.get_modpath("claycrafter")
|
||||||
minetest.register_node("claycrafter:compressed_dirt", {
|
|
||||||
description = "Compressed Dirt",
|
|
||||||
tiles = {"claycrafter_compressed_dirt.png"},
|
|
||||||
groups = {crumbly = 1, oddly_breakable_by_hand = 1, soil = 1, cracky =1}
|
|
||||||
})
|
|
||||||
-- Crafts
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "claycrafter:compressed_dirt",
|
|
||||||
recipe = {
|
|
||||||
{"default:dirt", "default:dirt", "default:dirt"},
|
|
||||||
{"default:dirt", "default:dirt", "default:dirt"},
|
|
||||||
{"default:dirt", "default:dirt", "default:dirt"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
-- TODO: Investigate function to automatically get mod name.
|
||||||
output = "claycrafter:glass_of_water 8",
|
|
||||||
recipe = {
|
|
||||||
{"vessels:drinking_glass", "vessels:drinking_glass", "vessels:drinking_glass"},
|
|
||||||
{"vessels:drinking_glass", "bucket:bucket_water", "vessels:drinking_glass"},
|
|
||||||
{"vessels:drinking_glass", "vessels:drinking_glass", "vessels:drinking_glass"}
|
|
||||||
},
|
|
||||||
replacements = {
|
|
||||||
{"bucket:bucket_water", "bucket:bucket_empty"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
dofile(modpath .. "/items.lua")
|
||||||
output = "claycrafter:claycrafter",
|
dofile(modpath .. "/recipes.lua")
|
||||||
recipe = {
|
dofile(modpath .. "/claycrafter.lua")
|
||||||
{"group:wood", "default:steel_ingot", "group:wood"},
|
dofile(modpath .. "/glass_of_water.lua")
|
||||||
{"group:wood", "default:glass", "group:wood"},
|
|
||||||
{"default:stick", "bucket:bucket_water", "default:stick"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
dofile(minetest.get_modpath("claycrafter") .. "/claycrafter.lua")
|
|
||||||
dofile(minetest.get_modpath("claycrafter") .. "/glass_of_water.lua")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user