Search found 3 matches

Return to advanced search

Re: Post your modding questions here

Try this: -- module.lua local m = { } -- This is local, since it's stored into `m` (which is a local itself). function m.do_something(foo, bar) return foo + bar end return m -- init.lua package.path = package.path .. ";" .. minetest.get_modpath("yourmodname").."/?.lua"...
by Strikingwolf
Sat Sep 27, 2014 17:58
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 978000

Re: Post your modding questions here

I was wondering how I could require code in another mod and modulize it. For example I know how you would make regular code modular functions.lua local functions = {} local function myFunction() --does stuff end functions.myfunction = myfunction return functions init.lua local functions = require(&q...
by Strikingwolf
Sat Sep 27, 2014 17:19
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 978000

Re: Are You Ready For MScraft Exiles?:)-

I am not an MSCraft "exile" yet, but some of you may know me from mathematics PhoenixTeam (https://github.com/PhoenixTeamMC) and I really wanna see if I can help this project :)
by Strikingwolf
Wed Sep 17, 2014 00:40
 
Forum: Minetest General
Topic: Are You Ready For MScraft Exiles?:)-
Replies: 17
Views: 4097

Return to advanced search

cron