Add the two other files
which contain the other mechanics of modding, the tools and crafting.
This commit is contained in:
parent
3910e772a5
commit
b28489f2fa
7
crafting.lua
Normal file
7
crafting.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-- Crafting of Simplistic Modding
|
||||||
|
-- Part of Simplistic Minetest Modding
|
||||||
|
-- By Jordan Snelling
|
||||||
|
|
||||||
|
-- This is a empty file for the meanwhile.
|
||||||
|
|
||||||
|
-- Don't expect anything just yet.
|
27
init.lua
27
init.lua
@ -1,17 +1,26 @@
|
|||||||
--Simple Modding!
|
-- Simple Modding!
|
||||||
-- By Jordach, AKA, Jordan Snelling, http://twitter.com/jordansnelling / jordach.snelling@gmail.com / jordach@blokkeren.co.cc
|
-- By Jordach, AKA, Jordan Snelling, http://twitter.com/jordansnelling / jordach.snelling@gmail.com / jordach@blokkeren.co.cc
|
||||||
-- This is a prototype; feel free to add things, or change things to fit.
|
-- This is a prototype; feel free to add things, or change things to fit.
|
||||||
--Licence; LGPL
|
-- Licence; LGPL
|
||||||
|
|
||||||
dofile(minetest.get_modpath("path_of_mod").."/.lua")
|
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.
|
||||||
|
|
||||||
path_of_mod =
|
|
||||||
-- Add the folder name you would like the path to be, also name the file like mymod.lua
|
|
||||||
|
|
||||||
master_modname =
|
PATH_OF_MOD =
|
||||||
-- Place your mod name here, IT MUST BE THE SAME AS THE FOLDER.
|
-- Add the folder name you would like the path to be.
|
||||||
|
|
||||||
|
MASTER_MODNAME =
|
||||||
|
-- Place your mod name above this line, IT MUST BE THE SAME AS THE FOLDER.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function basic_node(groups, tiles. description, nodename,)
|
function basic_node(groups, texture. description, nodename, drawtype)
|
||||||
minetest.register_node("modname"
|
minetest.register_node("modname" .. nodename, {
|
||||||
|
description = description,
|
||||||
|
drawtype = drawtype,
|
||||||
|
tiles = texture,
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = groups,
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user