crafting guide did not work at all.
This commit is contained in:
parent
f938b84457
commit
b759f6b231
File diff suppressed because it is too large
Load Diff
@ -1385,42 +1385,3 @@ minetest.register_craft({
|
|||||||
{'deco:soapstone_brick', 'deco:soapstone_brick'},
|
{'deco:soapstone_brick', 'deco:soapstone_brick'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- crafting guide for sokomine, who has asked for it for a while now :3
|
|
||||||
|
|
||||||
--[[
|
|
||||||
|
|
||||||
Craft Guide for Minetest
|
|
||||||
|
|
||||||
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
|
|
||||||
Source Code: https://github.com/cornernote/minetest-craft_guide
|
|
||||||
License: BSD-3-Clause https://raw.github.com/cornernote/minetest-craft_guide/master/LICENSE
|
|
||||||
|
|
||||||
MAIN LOADER
|
|
||||||
|
|
||||||
]]--
|
|
||||||
|
|
||||||
-- load api
|
|
||||||
dofile(minetest.get_modpath("deco").."/api_craft_guide.lua")
|
|
||||||
|
|
||||||
-- override minetest.register_craft
|
|
||||||
local minetest_register_craft = minetest.register_craft
|
|
||||||
minetest.register_craft = function (options)
|
|
||||||
minetest_register_craft(options)
|
|
||||||
craft_guide.register_craft(options)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- override minetest.register_alias
|
|
||||||
local minetest_register_alias = minetest.register_alias
|
|
||||||
minetest.register_alias = function (name, convert_to)
|
|
||||||
minetest_register_alias(name,convert_to)
|
|
||||||
craft_guide.register_alias(name, convert_to)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- register entities
|
|
||||||
dofile(minetest.get_modpath("deco").."/register_node.lua")
|
|
||||||
dofile(minetest.get_modpath("deco").."/register_craft.lua")
|
|
||||||
|
|
||||||
-- log that we started
|
|
||||||
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded from "..minetest.get_modpath(minetest.get_current_modname()))
|
|
||||||
|
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
--[[
|
|
||||||
|
|
||||||
Craft Guide for Minetest
|
|
||||||
|
|
||||||
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
|
|
||||||
Source Code: https://github.com/cornernote/minetest-craft_guide
|
|
||||||
License: BSD-3-Clause https://raw.github.com/cornernote/minetest-craft_guide/master/LICENSE
|
|
||||||
|
|
||||||
REGISTER CRAFTS
|
|
||||||
|
|
||||||
]]--
|
|
||||||
|
|
||||||
-- craft pc
|
|
||||||
minetest.register_craft({
|
|
||||||
output = 'deco:craft_terminal',
|
|
||||||
recipe = {
|
|
||||||
{'deco:sign_wall'},
|
|
||||||
{'deco:glass'},
|
|
||||||
{'stairs:slab_stone'},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
--minetest.register_craft({
|
|
||||||
-- output = 'craft_guide:lcd_pc',
|
|
||||||
-- recipe = {
|
|
||||||
-- {'craft_guide:sign_wall'},
|
|
||||||
-- {'default:glass'},
|
|
||||||
-- {'stairsplus:slab_stone'},
|
|
||||||
-- }
|
|
||||||
--})
|
|
@ -1,41 +0,0 @@
|
|||||||
--[[
|
|
||||||
|
|
||||||
Craft Guide for Minetest
|
|
||||||
|
|
||||||
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
|
|
||||||
Source Code: https://github.com/cornernote/minetest-craft_guide
|
|
||||||
License: BSD-3-Clause https://raw.github.com/cornernote/minetest-craft_guide/master/LICENSE
|
|
||||||
|
|
||||||
REGISTER NODES
|
|
||||||
|
|
||||||
]]--
|
|
||||||
|
|
||||||
-- craft pc
|
|
||||||
minetest.register_node("deco:craft_terminal", {
|
|
||||||
description = "Craft PC",
|
|
||||||
drawtype = "mesh",
|
|
||||||
mesh = "craft_guide_terminal.b3d",
|
|
||||||
tiles = {"craft_guide_terminal.png",},
|
|
||||||
paramtype = 'light',
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
groups = {choppy=2,dig_immediate=2},
|
|
||||||
collision_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
--sounds = default.node_sound_defaults(),
|
|
||||||
on_construct = craft_guide.on_construct,
|
|
||||||
on_receive_fields = craft_guide.on_receive_fields,
|
|
||||||
allow_metadata_inventory_move = craft_guide.allow_metadata_inventory_move,
|
|
||||||
allow_metadata_inventory_put = craft_guide.allow_metadata_inventory_put,
|
|
||||||
allow_metadata_inventory_take = craft_guide.allow_metadata_inventory_take,
|
|
||||||
})
|
|
Loading…
x
Reference in New Issue
Block a user