Added crafts to cook papers from ideas by burning references.

develop
Ralf Erik Rossel 2019-01-26 18:14:54 +01:00
parent dc994cab3b
commit 34eec08272
2 changed files with 20 additions and 1 deletions

View File

@ -1 +1 @@
This is the GameJam CERN Craft The Web mod. : )
This is the GameJam CERN Craft The Web mod in the repo. : )

View File

@ -3,6 +3,9 @@ print("Found the GameJam CERN Craft The Web mod! Yay!")
local ret = dofile(minetest.get_modpath("gjcctw") .. "/script.lua")
print(ret)
-- Registering basic building blocks to craft the web
minetest.register_node("gjcctw:reference", {
description = "This is a reference node",
tiles = {"reference_16x16.png"},
@ -20,3 +23,19 @@ minetest.register_node("gjcctw:paper", {
tiles = {"paper_16x16.png"},
groups = {cracky=1, oddly_breakable_by_hand=2}
})
-- Registering crafts to cook a paper from ideas by burning references.
minetest.register_craft({
type = "cooking",
output = "gjcctw:paper",
recipe = "gjcctw:idea",
cooktime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "gjcctw:reference",
burntime = 30,
})