2013-05-19 18:43:04 +02:00
|
|
|
-- mods/default/crafting.lua
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:stick 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:sign_wall_steel 3",
|
2016-03-06 12:16:33 +01:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"", "group:stick", ""},
|
2016-03-06 12:16:33 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:sign_wall_wood 3",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
|
|
|
{"", "group:stick", ""},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:torch 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:coal_lump"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:pick_wood",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
|
|
|
{"", "group:stick", ""},
|
|
|
|
{"", "group:stick", ""},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2020-07-16 19:50:55 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:pick_brylark",
|
|
|
|
recipe = {
|
|
|
|
{"ethereal:brylark_wood", "ethereal:brylark_wood", "ethereal:brylark_wood"},
|
|
|
|
{"", "group:stick", ""},
|
|
|
|
{"", "group:stick", ""},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:pick_stone",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stone", "group:stone", "group:stone"},
|
|
|
|
{"", "group:stick", ""},
|
|
|
|
{"", "group:stick", ""},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:pick_durasteel",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"", "group:stick", ""},
|
|
|
|
{"", "group:stick", ""},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:pick_bronze",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
|
|
|
{"", "group:stick", ""},
|
|
|
|
{"", "group:stick", ""},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:pick_beskar",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:beskar_ingot", "default:beskar_ingot", "default:beskar_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"", "group:stick", ""},
|
|
|
|
{"", "group:stick", ""},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:shovel_wood",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood"},
|
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2020-07-16 19:50:55 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:shovel_brylark",
|
|
|
|
recipe = {
|
|
|
|
{"ethereal:brylark_wood"},
|
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:shovel_stone",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stone"},
|
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:shovel_durasteel",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:shovel_bronze",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:bronze_ingot"},
|
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:shovel_beskar",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:beskar_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stick"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-07-16 14:31:21 +02:00
|
|
|
-- Axes
|
|
|
|
-- Recipes face left to match appearence in textures and inventory
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:axe_wood",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood"},
|
|
|
|
{"group:wood", "group:stick"},
|
|
|
|
{"", "group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2020-07-16 19:50:55 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:axe_brylark",
|
|
|
|
recipe = {
|
|
|
|
{"ethereal:brylark_wood", "ethereal:brylark_wood"},
|
|
|
|
{"ethereal:brylark_wood", "group:stick"},
|
|
|
|
{"", "group:stick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:axe_stone",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stone", "group:stone"},
|
|
|
|
{"group:stone", "group:stick"},
|
|
|
|
{"", "group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:axe_durasteel",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot", "group:stick"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"", "group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:axe_bronze",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:bronze_ingot", "default:bronze_ingot"},
|
|
|
|
{"default:bronze_ingot", "group:stick"},
|
|
|
|
{"", "group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:axe_beskar",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:beskar_ingot", "default:beskar_ingot"},
|
|
|
|
{"default:beskar_ingot", "group:stick"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"", "group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:sword_wood",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood"},
|
|
|
|
{"group:wood"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2020-07-16 19:50:55 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:sword_brylark",
|
|
|
|
recipe = {
|
|
|
|
{"ethereal:brylark_wood"},
|
|
|
|
{"ethereal:brylark_wood"},
|
|
|
|
{"group:stick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:sword_stone",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stone"},
|
|
|
|
{"group:stone"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:sword_durasteel",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:sword_bronze",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:bronze_ingot"},
|
|
|
|
{"default:bronze_ingot"},
|
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:sword_beskar",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:beskar_ingot"},
|
|
|
|
{"default:beskar_ingot"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
Keys: Allow easy sharing of access without commands
This code adds the key concept to minetest_game, and integrates it
with lockable nodes. Currently supported lockable items are the Steel
Door, the Steel Trapdoor, and the Locked Chest.
The goal of this modification is to introduce a fine-grained multi-
player permission system that is intuitive and usable without any
console or chat commands, and doesn't require extra privileges to
be granted or setup. Keys can also physically be conveyed to other
players, adding to gameplay and adding some personality that is
preferable to console commands or editing formspecs.
A skeleton key can be crafted with 1 gold ingot. Skeleton keys can
then be matched to a lockable node by right-clicking the skeleton
key on a lockable node, which changes the skeleton key to a "key".
Gold was chosen as it's currently a not-so very useful item, and
therefore it's likely that players have some, but aren't really
using it for any purpose.
This key can subsequently used by any player to open or access that
lockable node, including retrieving items from Locked Chests, or
putting items in them.
They key is programmed to fit only the particular locked node it is
programmed to. This is achieved by storing a secret value in both
key and locked node. If this secret value doesn't match, the key
will not open the locked node. This allows many keys to be created
for one chest or door, but a key will only fit one node ever. The
secrets are stored in node, and item meta for the key.
If a locked node is removed, all keys that opened it are no longer
valid. Even if a new door/chest is placed in exactly the same spot,
the old keys will no longer fit that node.
Keys can be smelted back in gold ingots if they are no longer useful.
The method of storing a secret in nodemeta and itemstackmeta is secure
as there is no way for the client to create new items on the server
with a particular secret metadata value. Even if you could possible
create such an itemstack on the client, the server does not ever read
itemstackmeta from a client package.
The patch adds an API that allows other nodes and nodes added by
mods to use the same keys as well. The method how to implement this
is described in game_api.txt. The mod should add 2 callbacks to it's
node definition. Example code is given.
Textures are from PixelBOX, thanks to Gambit.
2015-12-26 20:16:49 +01:00
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:skeleton_keycard",
|
Keys: Allow easy sharing of access without commands
This code adds the key concept to minetest_game, and integrates it
with lockable nodes. Currently supported lockable items are the Steel
Door, the Steel Trapdoor, and the Locked Chest.
The goal of this modification is to introduce a fine-grained multi-
player permission system that is intuitive and usable without any
console or chat commands, and doesn't require extra privileges to
be granted or setup. Keys can also physically be conveyed to other
players, adding to gameplay and adding some personality that is
preferable to console commands or editing formspecs.
A skeleton key can be crafted with 1 gold ingot. Skeleton keys can
then be matched to a lockable node by right-clicking the skeleton
key on a lockable node, which changes the skeleton key to a "key".
Gold was chosen as it's currently a not-so very useful item, and
therefore it's likely that players have some, but aren't really
using it for any purpose.
This key can subsequently used by any player to open or access that
lockable node, including retrieving items from Locked Chests, or
putting items in them.
They key is programmed to fit only the particular locked node it is
programmed to. This is achieved by storing a secret value in both
key and locked node. If this secret value doesn't match, the key
will not open the locked node. This allows many keys to be created
for one chest or door, but a key will only fit one node ever. The
secrets are stored in node, and item meta for the key.
If a locked node is removed, all keys that opened it are no longer
valid. Even if a new door/chest is placed in exactly the same spot,
the old keys will no longer fit that node.
Keys can be smelted back in gold ingots if they are no longer useful.
The method of storing a secret in nodemeta and itemstackmeta is secure
as there is no way for the client to create new items on the server
with a particular secret metadata value. Even if you could possible
create such an itemstack on the client, the server does not ever read
itemstackmeta from a client package.
The patch adds an API that allows other nodes and nodes added by
mods to use the same keys as well. The method how to implement this
is described in game_api.txt. The mod should add 2 callbacks to it's
node definition. Example code is given.
Textures are from PixelBOX, thanks to Gambit.
2015-12-26 20:16:49 +01:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot"},
|
Keys: Allow easy sharing of access without commands
This code adds the key concept to minetest_game, and integrates it
with lockable nodes. Currently supported lockable items are the Steel
Door, the Steel Trapdoor, and the Locked Chest.
The goal of this modification is to introduce a fine-grained multi-
player permission system that is intuitive and usable without any
console or chat commands, and doesn't require extra privileges to
be granted or setup. Keys can also physically be conveyed to other
players, adding to gameplay and adding some personality that is
preferable to console commands or editing formspecs.
A skeleton key can be crafted with 1 gold ingot. Skeleton keys can
then be matched to a lockable node by right-clicking the skeleton
key on a lockable node, which changes the skeleton key to a "key".
Gold was chosen as it's currently a not-so very useful item, and
therefore it's likely that players have some, but aren't really
using it for any purpose.
This key can subsequently used by any player to open or access that
lockable node, including retrieving items from Locked Chests, or
putting items in them.
They key is programmed to fit only the particular locked node it is
programmed to. This is achieved by storing a secret value in both
key and locked node. If this secret value doesn't match, the key
will not open the locked node. This allows many keys to be created
for one chest or door, but a key will only fit one node ever. The
secrets are stored in node, and item meta for the key.
If a locked node is removed, all keys that opened it are no longer
valid. Even if a new door/chest is placed in exactly the same spot,
the old keys will no longer fit that node.
Keys can be smelted back in gold ingots if they are no longer useful.
The method of storing a secret in nodemeta and itemstackmeta is secure
as there is no way for the client to create new items on the server
with a particular secret metadata value. Even if you could possible
create such an itemstack on the client, the server does not ever read
itemstackmeta from a client package.
The patch adds an API that allows other nodes and nodes added by
mods to use the same keys as well. The method how to implement this
is described in game_api.txt. The mod should add 2 callbacks to it's
node definition. Example code is given.
Textures are from PixelBOX, thanks to Gambit.
2015-12-26 20:16:49 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:chest",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
|
|
|
{"group:wood", "", "group:wood"},
|
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:chest_locked",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
2019-12-12 23:53:05 +01:00
|
|
|
{"group:wood", "default:durasteel_ingot", "group:wood"},
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-05-22 11:31:21 +02:00
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "default:chest_locked",
|
2019-12-12 23:53:05 +01:00
|
|
|
recipe = {"default:chest", "default:durasteel_ingot"},
|
2016-05-22 11:31:21 +02:00
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:furnace",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:stone", "group:stone", "group:stone"},
|
|
|
|
{"group:stone", "", "group:stone"},
|
|
|
|
{"group:stone", "group:stone", "group:stone"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:coal_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:coal_lump", "default:coal_lump", "default:coal_lump"},
|
|
|
|
{"default:coal_lump", "default:coal_lump", "default:coal_lump"},
|
|
|
|
{"default:coal_lump", "default:coal_lump", "default:coal_lump"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:coal_lump 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:coal_block"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:durasteel_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:durasteel_ingot 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:durasteel_block"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:copper_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
|
|
|
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
|
|
|
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:copper_ingot 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:copper_block"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-04-19 03:48:00 +02:00
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:tin_block",
|
2017-04-19 03:48:00 +02:00
|
|
|
recipe = {
|
|
|
|
{"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
|
|
|
|
{"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
|
|
|
|
{"default:tin_ingot", "default:tin_ingot", "default:tin_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:tin_ingot 9",
|
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:tin_block"},
|
2017-04-19 03:48:00 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:bronze_ingot 9",
|
|
|
|
recipe = {
|
|
|
|
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
|
|
|
{"default:copper_ingot", "default:tin_ingot", "default:copper_ingot"},
|
|
|
|
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:bronze_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
|
|
|
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
|
|
|
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:bronze_ingot 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:bronze_block"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:gold_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
|
|
|
|
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
|
|
|
|
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:gold_ingot 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:gold_block"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:beskar_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:beskar_ingot", "default:beskar_ingot", "default:beskar_ingot"},
|
|
|
|
{"default:beskar_ingot", "default:beskar_ingot", "default:beskar_ingot"},
|
|
|
|
{"default:beskar_ingot", "default:beskar_ingot", "default:beskar_ingot"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:beskar_ingot 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:beskar_block"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-01-06 07:15:38 +01:00
|
|
|
output = "default:sandstone",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2017-01-06 07:15:38 +01:00
|
|
|
{"default:sand", "default:sand"},
|
|
|
|
{"default:sand", "default:sand"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-03-07 04:03:30 +01:00
|
|
|
output = "default:sand 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2017-03-07 04:03:30 +01:00
|
|
|
{"default:sandstone"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:sandstone_brick 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2017-03-07 04:03:30 +01:00
|
|
|
{"default:sandstone", "default:sandstone"},
|
|
|
|
{"default:sandstone", "default:sandstone"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-06-23 05:37:19 +02:00
|
|
|
minetest.register_craft({
|
2017-03-07 04:03:30 +01:00
|
|
|
output = "default:sandstone_block 9",
|
2016-06-23 05:37:19 +02:00
|
|
|
recipe = {
|
2017-03-07 04:03:30 +01:00
|
|
|
{"default:sandstone", "default:sandstone", "default:sandstone"},
|
|
|
|
{"default:sandstone", "default:sandstone", "default:sandstone"},
|
|
|
|
{"default:sandstone", "default:sandstone", "default:sandstone"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:desert_sandstone",
|
|
|
|
recipe = {
|
|
|
|
{"default:desert_sand", "default:desert_sand"},
|
|
|
|
{"default:desert_sand", "default:desert_sand"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:desert_sand 4",
|
|
|
|
recipe = {
|
|
|
|
{"default:desert_sandstone"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:desert_sandstone_brick 4",
|
|
|
|
recipe = {
|
|
|
|
{"default:desert_sandstone", "default:desert_sandstone"},
|
|
|
|
{"default:desert_sandstone", "default:desert_sandstone"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:desert_sandstone_block 9",
|
|
|
|
recipe = {
|
|
|
|
{"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"},
|
|
|
|
{"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"},
|
|
|
|
{"default:desert_sandstone", "default:desert_sandstone", "default:desert_sandstone"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:silver_sandstone",
|
|
|
|
recipe = {
|
|
|
|
{"default:silver_sand", "default:silver_sand"},
|
|
|
|
{"default:silver_sand", "default:silver_sand"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:silver_sand 4",
|
|
|
|
recipe = {
|
|
|
|
{"default:silver_sandstone"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:silver_sandstone_brick 4",
|
|
|
|
recipe = {
|
|
|
|
{"default:silver_sandstone", "default:silver_sandstone"},
|
|
|
|
{"default:silver_sandstone", "default:silver_sandstone"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "default:silver_sandstone_block 9",
|
|
|
|
recipe = {
|
|
|
|
{"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"},
|
|
|
|
{"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"},
|
|
|
|
{"default:silver_sandstone", "default:silver_sandstone", "default:silver_sandstone"},
|
2016-06-23 05:37:19 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:clay",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:clay_lump", "default:clay_lump"},
|
|
|
|
{"default:clay_lump", "default:clay_lump"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-03-25 21:18:24 +01:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:clay_lump 4",
|
2016-03-25 21:18:24 +01:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:clay"},
|
2016-03-25 21:18:24 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:brick",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:clay_brick", "default:clay_brick"},
|
|
|
|
{"default:clay_brick", "default:clay_brick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:clay_brick 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:brick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:paper",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:reeds", "default:reeds", "default:reeds"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:book",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:paper"},
|
|
|
|
{"default:paper"},
|
|
|
|
{"default:paper"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:bookshelf",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
|
|
|
{"default:book", "default:book", "default:book"},
|
|
|
|
{"group:wood", "group:wood", "group:wood"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2017-03-06 08:26:12 +01:00
|
|
|
output = "default:ladder_wood 5",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2017-03-06 08:26:12 +01:00
|
|
|
{"group:stick", "", "group:stick"},
|
|
|
|
{"group:stick", "group:stick", "group:stick"},
|
|
|
|
{"group:stick", "", "group:stick"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-03-03 10:52:45 +01:00
|
|
|
minetest.register_craft({
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:ladder_durasteel 15",
|
2016-03-03 10:52:45 +01:00
|
|
|
recipe = {
|
2019-12-12 23:53:05 +01:00
|
|
|
{"default:durasteel_ingot", "", "default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot", "default:durasteel_ingot", "default:durasteel_ingot"},
|
|
|
|
{"default:durasteel_ingot", "", "default:durasteel_ingot"},
|
2016-03-03 10:52:45 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:obsidian_shard 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:obsidian"}
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:obsidian",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:obsidian_shard", "default:obsidian_shard", "default:obsidian_shard"},
|
|
|
|
{"default:obsidian_shard", "default:obsidian_shard", "default:obsidian_shard"},
|
|
|
|
{"default:obsidian_shard", "default:obsidian_shard", "default:obsidian_shard"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-06-08 18:08:48 +02:00
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:obsidian_brick 4",
|
2013-06-08 18:08:48 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:obsidian", "default:obsidian"},
|
|
|
|
{"default:obsidian", "default:obsidian"}
|
2013-06-08 18:08:48 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-06-23 05:37:19 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:obsidian_block 9",
|
2016-06-23 05:37:19 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:obsidian", "default:obsidian", "default:obsidian"},
|
|
|
|
{"default:obsidian", "default:obsidian", "default:obsidian"},
|
|
|
|
{"default:obsidian", "default:obsidian", "default:obsidian"},
|
2016-06-23 05:37:19 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:stone_brick 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:stone", "default:stone"},
|
|
|
|
{"default:stone", "default:stone"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-06-23 05:37:19 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:stone_block 9",
|
2016-06-23 05:37:19 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:stone", "default:stone", "default:stone"},
|
|
|
|
{"default:stone", "default:stone", "default:stone"},
|
|
|
|
{"default:stone", "default:stone", "default:stone"},
|
2016-06-23 05:37:19 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:desert_stone_brick 4",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:desert_stone", "default:desert_stone"},
|
|
|
|
{"default:desert_stone", "default:desert_stone"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2016-06-23 05:37:19 +02:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:desert_stone_block 9",
|
2016-06-23 05:37:19 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:desert_stone", "default:desert_stone", "default:desert_stone"},
|
|
|
|
{"default:desert_stone", "default:desert_stone", "default:desert_stone"},
|
|
|
|
{"default:desert_stone", "default:desert_stone", "default:desert_stone"},
|
2016-06-23 05:37:19 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:snow_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2019-07-31 01:16:44 +02:00
|
|
|
{"default:snow", "default:snow", "default:snow"},
|
|
|
|
{"default:snow", "default:snow", "default:snow"},
|
|
|
|
{"default:snow", "default:snow", "default:snow"},
|
2013-05-19 18:43:04 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
output = "default:snow 9",
|
2013-05-19 18:43:04 +02:00
|
|
|
recipe = {
|
2020-07-16 19:50:55 +02:00
|
|
|
{"default:snow_block"},
|
2019-01-02 03:18:50 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2017-05-10 09:23:26 +02:00
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
--
|
|
|
|
-- Crafting (tool repair)
|
|
|
|
--
|
2017-05-10 09:23:26 +02:00
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "toolrepair",
|
|
|
|
additional_wear = -0.02,
|
|
|
|
})
|
|
|
|
|
2017-05-10 09:23:26 +02:00
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
--
|
|
|
|
-- Cooking recipes
|
|
|
|
--
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:glass",
|
|
|
|
recipe = "group:sand",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:obsidian_glass",
|
|
|
|
recipe = "default:obsidian_shard",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:stone",
|
|
|
|
recipe = "default:cobble",
|
|
|
|
})
|
|
|
|
|
2015-01-20 22:48:43 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:stone",
|
|
|
|
recipe = "default:mossycobble",
|
|
|
|
})
|
|
|
|
|
2014-04-07 16:29:00 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:desert_stone",
|
|
|
|
recipe = "default:desert_cobble",
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
2020-07-16 19:50:55 +02:00
|
|
|
output = "default:durasteel_ingot",
|
|
|
|
recipe = "default:zersium_lump",
|
2013-05-19 18:43:04 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:copper_ingot",
|
|
|
|
recipe = "default:copper_lump",
|
|
|
|
})
|
|
|
|
|
2017-04-19 03:48:00 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:tin_ingot",
|
|
|
|
recipe = "default:tin_lump",
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:gold_ingot",
|
|
|
|
recipe = "default:gold_lump",
|
|
|
|
})
|
|
|
|
|
2019-12-12 23:53:05 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:beskar_ingot",
|
|
|
|
recipe = "default:beskar_lump",
|
|
|
|
})
|
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "default:clay_brick",
|
|
|
|
recipe = "default:clay_lump",
|
|
|
|
})
|
|
|
|
|
Keys: Allow easy sharing of access without commands
This code adds the key concept to minetest_game, and integrates it
with lockable nodes. Currently supported lockable items are the Steel
Door, the Steel Trapdoor, and the Locked Chest.
The goal of this modification is to introduce a fine-grained multi-
player permission system that is intuitive and usable without any
console or chat commands, and doesn't require extra privileges to
be granted or setup. Keys can also physically be conveyed to other
players, adding to gameplay and adding some personality that is
preferable to console commands or editing formspecs.
A skeleton key can be crafted with 1 gold ingot. Skeleton keys can
then be matched to a lockable node by right-clicking the skeleton
key on a lockable node, which changes the skeleton key to a "key".
Gold was chosen as it's currently a not-so very useful item, and
therefore it's likely that players have some, but aren't really
using it for any purpose.
This key can subsequently used by any player to open or access that
lockable node, including retrieving items from Locked Chests, or
putting items in them.
They key is programmed to fit only the particular locked node it is
programmed to. This is achieved by storing a secret value in both
key and locked node. If this secret value doesn't match, the key
will not open the locked node. This allows many keys to be created
for one chest or door, but a key will only fit one node ever. The
secrets are stored in node, and item meta for the key.
If a locked node is removed, all keys that opened it are no longer
valid. Even if a new door/chest is placed in exactly the same spot,
the old keys will no longer fit that node.
Keys can be smelted back in gold ingots if they are no longer useful.
The method of storing a secret in nodemeta and itemstackmeta is secure
as there is no way for the client to create new items on the server
with a particular secret metadata value. Even if you could possible
create such an itemstack on the client, the server does not ever read
itemstackmeta from a client package.
The patch adds an API that allows other nodes and nodes added by
mods to use the same keys as well. The method how to implement this
is described in game_api.txt. The mod should add 2 callbacks to it's
node definition. Example code is given.
Textures are from PixelBOX, thanks to Gambit.
2015-12-26 20:16:49 +01:00
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
type = "cooking",
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:durasteel_ingot",
|
|
|
|
recipe = "default:skeleton_keycard",
|
Keys: Allow easy sharing of access without commands
This code adds the key concept to minetest_game, and integrates it
with lockable nodes. Currently supported lockable items are the Steel
Door, the Steel Trapdoor, and the Locked Chest.
The goal of this modification is to introduce a fine-grained multi-
player permission system that is intuitive and usable without any
console or chat commands, and doesn't require extra privileges to
be granted or setup. Keys can also physically be conveyed to other
players, adding to gameplay and adding some personality that is
preferable to console commands or editing formspecs.
A skeleton key can be crafted with 1 gold ingot. Skeleton keys can
then be matched to a lockable node by right-clicking the skeleton
key on a lockable node, which changes the skeleton key to a "key".
Gold was chosen as it's currently a not-so very useful item, and
therefore it's likely that players have some, but aren't really
using it for any purpose.
This key can subsequently used by any player to open or access that
lockable node, including retrieving items from Locked Chests, or
putting items in them.
They key is programmed to fit only the particular locked node it is
programmed to. This is achieved by storing a secret value in both
key and locked node. If this secret value doesn't match, the key
will not open the locked node. This allows many keys to be created
for one chest or door, but a key will only fit one node ever. The
secrets are stored in node, and item meta for the key.
If a locked node is removed, all keys that opened it are no longer
valid. Even if a new door/chest is placed in exactly the same spot,
the old keys will no longer fit that node.
Keys can be smelted back in gold ingots if they are no longer useful.
The method of storing a secret in nodemeta and itemstackmeta is secure
as there is no way for the client to create new items on the server
with a particular secret metadata value. Even if you could possible
create such an itemstack on the client, the server does not ever read
itemstackmeta from a client package.
The patch adds an API that allows other nodes and nodes added by
mods to use the same keys as well. The method how to implement this
is described in game_api.txt. The mod should add 2 callbacks to it's
node definition. Example code is given.
Textures are from PixelBOX, thanks to Gambit.
2015-12-26 20:16:49 +01:00
|
|
|
cooktime = 5,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2019-07-31 01:16:44 +02:00
|
|
|
type = "cooking",
|
2019-12-12 23:53:05 +01:00
|
|
|
output = "default:durasteel_ingot",
|
|
|
|
recipe = "default:keycard",
|
Keys: Allow easy sharing of access without commands
This code adds the key concept to minetest_game, and integrates it
with lockable nodes. Currently supported lockable items are the Steel
Door, the Steel Trapdoor, and the Locked Chest.
The goal of this modification is to introduce a fine-grained multi-
player permission system that is intuitive and usable without any
console or chat commands, and doesn't require extra privileges to
be granted or setup. Keys can also physically be conveyed to other
players, adding to gameplay and adding some personality that is
preferable to console commands or editing formspecs.
A skeleton key can be crafted with 1 gold ingot. Skeleton keys can
then be matched to a lockable node by right-clicking the skeleton
key on a lockable node, which changes the skeleton key to a "key".
Gold was chosen as it's currently a not-so very useful item, and
therefore it's likely that players have some, but aren't really
using it for any purpose.
This key can subsequently used by any player to open or access that
lockable node, including retrieving items from Locked Chests, or
putting items in them.
They key is programmed to fit only the particular locked node it is
programmed to. This is achieved by storing a secret value in both
key and locked node. If this secret value doesn't match, the key
will not open the locked node. This allows many keys to be created
for one chest or door, but a key will only fit one node ever. The
secrets are stored in node, and item meta for the key.
If a locked node is removed, all keys that opened it are no longer
valid. Even if a new door/chest is placed in exactly the same spot,
the old keys will no longer fit that node.
Keys can be smelted back in gold ingots if they are no longer useful.
The method of storing a secret in nodemeta and itemstackmeta is secure
as there is no way for the client to create new items on the server
with a particular secret metadata value. Even if you could possible
create such an itemstack on the client, the server does not ever read
itemstackmeta from a client package.
The patch adds an API that allows other nodes and nodes added by
mods to use the same keys as well. The method how to implement this
is described in game_api.txt. The mod should add 2 callbacks to it's
node definition. Example code is given.
Textures are from PixelBOX, thanks to Gambit.
2015-12-26 20:16:49 +01:00
|
|
|
cooktime = 5,
|
|
|
|
})
|
|
|
|
|
2017-05-10 09:23:26 +02:00
|
|
|
|
2013-05-19 18:43:04 +02:00
|
|
|
--
|
|
|
|
-- Fuels
|
|
|
|
--
|
|
|
|
|
2017-11-25 23:49:32 +01:00
|
|
|
-- Support use of group:tree, includes default:tree which has the same burn time
|
2013-05-19 18:43:04 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "group:tree",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
2016-09-01 06:56:21 +02:00
|
|
|
|
2017-11-25 23:49:32 +01:00
|
|
|
-- Support use of group:wood, includes default:wood which has the same burn time
|
2016-09-01 06:56:21 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "group:wood",
|
|
|
|
burntime = 7,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2017-11-25 23:49:32 +01:00
|
|
|
-- Support use of group:sapling, includes default:sapling which has the same burn time
|
2016-09-01 06:56:21 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "group:sapling",
|
2017-11-25 23:49:32 +01:00
|
|
|
burntime = 5,
|
2016-09-01 06:56:21 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_jogan_wood",
|
2017-05-10 09:23:26 +02:00
|
|
|
burntime = 7,
|
|
|
|
})
|
|
|
|
|
2016-09-01 06:56:21 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:fence_pine_wood",
|
2020-07-16 19:50:55 +02:00
|
|
|
burntime = 7,
|
2013-05-19 18:43:04 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_palm_wood",
|
Add and edit fuel registrations
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
2016-10-30 11:29:58 +01:00
|
|
|
burntime = 7,
|
2013-05-19 18:43:04 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_wroshyr_wood",
|
|
|
|
burntime = 7,
|
2016-03-09 11:08:41 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_uneti_wood",
|
|
|
|
burntime = 7,
|
2016-03-09 11:08:41 +01:00
|
|
|
})
|
|
|
|
|
2018-07-07 20:03:33 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_gnarltree_wood",
|
|
|
|
burntime = 7,
|
2018-07-07 20:03:33 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_rail_jogan_wood",
|
2018-07-07 20:03:33 +02:00
|
|
|
burntime = 5,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_rail_pine_wood",
|
|
|
|
burntime = 5,
|
2018-07-07 20:03:33 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_rail_palm_wood",
|
|
|
|
burntime = 5,
|
2018-07-07 20:03:33 +02:00
|
|
|
})
|
|
|
|
|
2016-10-13 01:48:56 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_rail_wroshyr_wood",
|
|
|
|
burntime = 5,
|
2016-10-13 01:48:56 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_rail_uneti_wood",
|
|
|
|
burntime = 5,
|
2016-10-13 01:48:56 +02:00
|
|
|
})
|
|
|
|
|
2018-07-13 02:17:07 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:fence_rail_gnarltree_wood",
|
|
|
|
burntime = 5,
|
2018-07-13 02:17:07 +02:00
|
|
|
})
|
|
|
|
|
2016-03-09 11:08:41 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2016-09-01 06:56:21 +02:00
|
|
|
recipe = "default:junglegrass",
|
2017-11-25 23:49:32 +01:00
|
|
|
burntime = 3,
|
2016-03-09 11:08:41 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2016-09-01 06:56:21 +02:00
|
|
|
recipe = "group:leaves",
|
2017-11-25 23:49:32 +01:00
|
|
|
burntime = 4,
|
2016-09-01 06:56:21 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:cactus",
|
2016-03-09 11:08:41 +01:00
|
|
|
burntime = 15,
|
|
|
|
})
|
|
|
|
|
2019-01-02 03:18:50 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:reeds",
|
2017-11-25 23:49:32 +01:00
|
|
|
burntime = 3,
|
2013-05-19 18:43:04 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2016-09-01 06:56:21 +02:00
|
|
|
recipe = "default:bookshelf",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:ladder_wood",
|
2017-11-25 23:49:32 +01:00
|
|
|
burntime = 7,
|
2013-05-19 18:43:04 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:lava_source",
|
|
|
|
burntime = 60,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:torch",
|
|
|
|
burntime = 4,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2016-03-09 11:08:41 +01:00
|
|
|
recipe = "default:sign_wall_wood",
|
2013-05-19 18:43:04 +02:00
|
|
|
burntime = 10,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:chest",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:chest_locked",
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:coal_lump",
|
|
|
|
burntime = 40,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:coal_block",
|
2013-05-19 18:43:04 +02:00
|
|
|
burntime = 370,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:grass_1",
|
|
|
|
burntime = 2,
|
|
|
|
})
|
2014-10-21 19:53:04 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2015-07-01 14:03:14 +02:00
|
|
|
recipe = "default:dry_grass_1",
|
|
|
|
burntime = 2,
|
2014-10-21 19:53:04 +02:00
|
|
|
})
|
Add and edit fuel registrations
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
2016-10-30 11:29:58 +01:00
|
|
|
|
2017-12-24 03:23:29 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:fern_1",
|
|
|
|
burntime = 2,
|
|
|
|
})
|
|
|
|
|
2018-01-24 12:29:02 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
2020-07-16 19:50:55 +02:00
|
|
|
recipe = "default:saago_grass_1",
|
2018-01-24 12:29:02 +01:00
|
|
|
burntime = 2,
|
|
|
|
})
|
|
|
|
|
Add and edit fuel registrations
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
2016-10-30 11:29:58 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:paper",
|
|
|
|
burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:book",
|
|
|
|
burntime = 3,
|
|
|
|
})
|
|
|
|
|
2016-12-01 17:34:56 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:book_written",
|
|
|
|
burntime = 3,
|
|
|
|
})
|
|
|
|
|
Add and edit fuel registrations
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
2016-10-30 11:29:58 +01:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:dry_shrub",
|
|
|
|
burntime = 2,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "group:stick",
|
|
|
|
burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:pick_wood",
|
|
|
|
burntime = 6,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:shovel_wood",
|
|
|
|
burntime = 4,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:axe_wood",
|
|
|
|
burntime = 6,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:sword_wood",
|
|
|
|
burntime = 5,
|
|
|
|
})
|