add a crafting guide by cornernote and give it a meshnode
This commit is contained in:
parent
e31ce8cd75
commit
f938b84457
1772
mods/deco/api_craft_guide.lua
Normal file
1772
mods/deco/api_craft_guide.lua
Normal file
File diff suppressed because it is too large
Load Diff
0
mods/deco/depends (2).txt
Normal file
0
mods/deco/depends (2).txt
Normal file
@ -1385,3 +1385,42 @@ 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()))
|
||||||
|
|
||||||
|
Binary file not shown.
BIN
mods/deco/models/craft_guide_terminal.b3d
Normal file
BIN
mods/deco/models/craft_guide_terminal.b3d
Normal file
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 2.5 KiB |
29
mods/deco/register_craft.lua
Normal file
29
mods/deco/register_craft.lua
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--[[
|
||||||
|
|
||||||
|
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'},
|
||||||
|
-- }
|
||||||
|
--})
|
41
mods/deco/register_node.lua
Normal file
41
mods/deco/register_node.lua
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
--[[
|
||||||
|
|
||||||
|
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