forked from MineClone5/MineClone5
Test mod, learning the basics of Minetest
This commit is contained in:
parent
34c295f289
commit
1dc6650cce
|
@ -0,0 +1,15 @@
|
|||
print("This file will be run at load time!")
|
||||
|
||||
|
||||
minetest.register_node("testmod:node", { --registers a node (placable)
|
||||
description = "TEST", -- this is what shows up in the tooltip as the "name"
|
||||
tiles = {"testmod_node.png"}, -- looks like you can tile faces differently
|
||||
groups = {cracky = 1} -- stone line, mined by pickaxe
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "testmod:node 2", -- gives you 3 of the test nodes
|
||||
recipe = { "mcl_core:dirt", "mcl_core:stone" },
|
||||
})
|
|
@ -0,0 +1,3 @@
|
|||
name = testmod
|
||||
description = A test mod to learn Minetest scripting
|
||||
depends = mcl_core
|
Binary file not shown.
After Width: | Height: | Size: 189 B |
Loading…
Reference in New Issue