start working on stoneworking mod.
create stoneworking mod. create nodes stone bricks and stone tile, then add placeholder recipe for both.
This commit is contained in:
parent
6fb3f5fde3
commit
4e31d3219b
6 changed files with 16 additions and 0 deletions
2
mods/bg_stoneworking/init.lua
Normal file
2
mods/bg_stoneworking/init.lua
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
load_file("node")
|
||||||
|
load_file("recipes")
|
3
mods/bg_stoneworking/mod.conf
Normal file
3
mods/bg_stoneworking/mod.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
name = stoneworking
|
||||||
|
description = blockgame stone related recipes and stuff.
|
||||||
|
depends = core, crafting, api
|
7
mods/bg_stoneworking/node.lua
Normal file
7
mods/bg_stoneworking/node.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
blockgame.reg_simple_node("bricks", "Bricks", {
|
||||||
|
stoney = 1,
|
||||||
|
})
|
||||||
|
|
||||||
|
blockgame.reg_simple_node("tile", "Bricks", {
|
||||||
|
stoney = 1,
|
||||||
|
})
|
4
mods/bg_stoneworking/recipes.lua
Normal file
4
mods/bg_stoneworking/recipes.lua
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
local modname = minetest.get_current_modname()
|
||||||
|
|
||||||
|
blockgame.crafting.register_stack_recipe("core:stone", "tree:nut", {name = modname .. ":bricks"})
|
||||||
|
blockgame.crafting.register_stack_recipe(modname .. ":bricks", "tree:nut", {name = modname .. ":tile"})
|
BIN
mods/bg_stoneworking/textures/stoneworking_bricks.png
Normal file
BIN
mods/bg_stoneworking/textures/stoneworking_bricks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 860 B |
BIN
mods/bg_stoneworking/textures/stoneworking_tile.png
Normal file
BIN
mods/bg_stoneworking/textures/stoneworking_tile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 816 B |
Loading…
Reference in a new issue