Page 1 of 1

[solved] Difference between core. and minetest.?

PostPosted: Sun Apr 17, 2016 07:29
by burli
I noticed that some mods use "core.method", others use "minetest.method"

An example for core is Dungeon Loot
An example for minetest is em_dungeon_gen

Both call register_on_generated. Is there a different?

Re: Difference between core. and minetest.?

PostPosted: Sun Apr 17, 2016 10:44
by Krock
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest = core

https://github.com/minetest/minetest/bl ... it.lua#L25

It's the same, you might use both.

Re: Difference between core. and minetest.?

PostPosted: Sun Apr 17, 2016 12:57
by rubenwardy
Mods should use minetest. Builtin should use core.

Re: Difference between core. and minetest.?

PostPosted: Sun Apr 17, 2016 13:00
by burli
Ok, thx