Compare commits
5 Commits
b28489f2fa
...
4757a80317
Author | SHA1 | Date |
---|---|---|
Jordan Snelling | 4757a80317 | |
Jordan Snelling | 9b77c4d15d | |
Jordan Snelling | 7f6d618c35 | |
Jordan Snelling | 195cc03f2d | |
Jordan Snelling | 5f6addbf93 |
28
init.lua
28
init.lua
|
@ -3,9 +3,10 @@
|
|||
-- This is a prototype; feel free to add things, or change things to fit.
|
||||
-- Licence; LGPL
|
||||
|
||||
dofile(minetest.get_modpath("PATH_OF_MOD").."/nodes.lua") -- This file is where the 'blocks' of the game can be found.
|
||||
dofile(minetest.get_modpath("PATH_OF_MOD").."/crafting.lua") -- This file contains all of the definitions of the crafting, like so many wood makes a tool, or stick.
|
||||
dofile(minetest.get_modpath("PATH_OF_MOD").."/tools.lua") -- This is where your pickaxes. shovels, axes and swords can be found.
|
||||
-- Removing these two lines and files is a BAD IDEA. The other parts to the thing won't work; e.g. crafting or your tools will not work.
|
||||
|
||||
|
||||
|
||||
PATH_OF_MOD =
|
||||
|
@ -15,12 +16,29 @@ MASTER_MODNAME =
|
|||
-- Place your mod name above this line, IT MUST BE THE SAME AS THE FOLDER.
|
||||
|
||||
|
||||
|
||||
function basic_node(groups, texture. description, nodename, drawtype)
|
||||
minetest.register_node("modname" .. nodename, {
|
||||
function un_natural_node(nodename, groups, texture, description, drawtype, sound)
|
||||
minetest.register_node(MASTER_MODNAME..":"..nodename, {
|
||||
description = description,
|
||||
drawtype = drawtype,
|
||||
tiles = texture,
|
||||
is_ground_content = true,
|
||||
groups = groups,
|
||||
|
||||
sounds = "default.node_sound_"..sound.."_defaults()",
|
||||
}) end
|
||||
|
||||
function basic_node(nodename, groups, texture, description, sound)
|
||||
minetest.register_node(MASTER_MODNAME..":"..nodename, {
|
||||
description = description,
|
||||
tiles = texture,
|
||||
is_ground_content = true,
|
||||
groups = groups,
|
||||
sounds = "default.node_sound_"..sound.."_defaults()",
|
||||
}) end
|
||||
|
||||
basic_node("test",
|
||||
{crumbly},
|
||||
{"test.png},
|
||||
"Testing",
|
||||
"dirt",)
|
||||
|
||||
--Example Code. it should work, hopefully. (I won't test.)
|
Loading…
Reference in New Issue