Test mod, learning the basics of Minetest

This commit is contained in:
Fallon Brendan 2022-03-25 12:20:10 -04:00
parent 34c295f289
commit 1dc6650cce
3 changed files with 18 additions and 0 deletions

15
mods/testmod/init.lua Normal file
View File

@ -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" },
})

3
mods/testmod/mod.conf Normal file
View File

@ -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