code
stringlengths
0
21.5M
repo_name
stringlengths
4
92
path
stringlengths
1
189
language
stringlengths
0
26
license
stringclasses
11 values
size
int64
0
21.5M
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/common/filterlist.lua
Lua
mit
9,988
-- Minetest: builtin/misc_helpers.lua -------------------------------------------------------------------------------- -- Localize functions to avoid table lookups (better performance). local string_sub, string_find = string.sub, string.find ----------------------------------------------------------------------------...
pgimeno/minetest
builtin/common/misc_helpers.lua
Lua
mit
20,392
--- Lua module to serialize values as Lua code. -- From: https://github.com/fab13n/metalua/blob/no-dll/src/lib/serialize.lua -- License: MIT -- @copyright 2006-2997 Fabien Fleutot <metalua@gmail.com> -- @author Fabien Fleutot <metalua@gmail.com> -- @author ShadowNinja <shadowninja@minetest.net> ------------------------...
pgimeno/minetest
builtin/common/serialize.lua
Lua
mit
6,845
-- Always warn when creating a global variable, even outside of a function. -- This ignores mod namespaces (variables with the same name as the current mod). local WARN_INIT = false local getinfo = debug.getinfo function core.global_exists(name) if type(name) ~= "string" then error("core.global_exists: " .. tostr...
pgimeno/minetest
builtin/common/strict.lua
Lua
mit
1,655
vector = {} function vector.new(a, b, c) if type(a) == "table" then assert(a.x and a.y and a.z, "Invalid vector passed to vector.new()") return {x=a.x, y=a.y, z=a.z} elseif a then assert(b and c, "Invalid arguments for vector.new()") return {x=a, y=b, z=c} end return {x=0, y=0, z=0} end function vector.e...
pgimeno/minetest
builtin/common/vector.lua
Lua
mit
2,473
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/fstk/buttonbar.lua
Lua
mit
6,063
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --this program is ...
pgimeno/minetest
builtin/fstk/dialog.lua
Lua
mit
2,070
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/fstk/tabview.lua
Lua
mit
8,121
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/fstk/ui.lua
Lua
mit
6,133
-- Minetest: builtin/auth.lua -- -- Builtin authentication handler -- -- Make the auth object private, deny access to mods local core_auth = core.auth core.auth = nil core.builtin_auth_handler = { get_auth = function(name) assert(type(name) == "string") local auth_entry = core_auth.read(name) -- If no such au...
pgimeno/minetest
builtin/game/auth.lua
Lua
mit
5,196
-- Minetest: builtin/game/chatcommands.lua -- -- Chat command handler -- core.chatcommands = core.registered_chatcommands -- BACKWARDS COMPATIBILITY core.register_on_chat_message(function(name, message) if message:sub(1,1) ~= "/" then return end local cmd, param = string.match(message, "^/([^ ]+) *(.*)") if n...
pgimeno/minetest
builtin/game/chatcommands.lua
Lua
mit
32,621
-- Minetest: builtin/constants.lua -- -- Constants values for use with the Lua API -- -- mapnode.h -- Built-in Content IDs (for use with VoxelManip API) core.CONTENT_UNKNOWN = 125 core.CONTENT_AIR = 126 core.CONTENT_IGNORE = 127 -- emerge.h -- Block emerge status constants (for use with core.emerge_area) core.E...
pgimeno/minetest
builtin/game/constants.lua
Lua
mit
747
-- Minetest: builtin/deprecated.lua -- -- Default material types -- local function digprop_err() core.log("deprecated", "The core.digprop_* functions are obsolete and need to be replaced by item groups.") end core.digprop_constanttime = digprop_err core.digprop_stonelike = digprop_err core.digprop_dirtlike = digprop...
pgimeno/minetest
builtin/game/deprecated.lua
Lua
mit
2,002
-- Minetest: builtin/detached_inventory.lua core.detached_inventories = {} function core.create_detached_inventory(name, callbacks, player_name) local stuff = {} stuff.name = name if callbacks then stuff.allow_move = callbacks.allow_move stuff.allow_put = callbacks.allow_put stuff.allow_take = callbacks.allo...
pgimeno/minetest
builtin/game/detached_inventory.lua
Lua
mit
739
-- Minetest: builtin/item.lua local builtin_shared = ... -- -- Falling stuff -- core.register_entity(":__builtin:falling_node", { initial_properties = { visual = "wielditem", visual_size = {x = 0.667, y = 0.667}, textures = {}, physical = true, is_visible = false, collide_with_objects = false, collisi...
pgimeno/minetest
builtin/game/falling.lua
Lua
mit
9,326
-- Minetest: builtin/features.lua core.features = { glasslike_framed = true, nodebox_as_selectionbox = true, get_all_craft_recipes_works = true, use_texture_alpha = true, no_legacy_abms = true, texture_names_parens = true, area_store_custom_ids = true, add_entity_with_staticdata = true, no_chat_message_predic...
pgimeno/minetest
builtin/game/features.lua
Lua
mit
815
-- Prevent anyone else accessing those functions local forceload_block = core.forceload_block local forceload_free_block = core.forceload_free_block core.forceload_block = nil core.forceload_free_block = nil local blocks_forceloaded local blocks_temploaded = {} local total_forceloaded = 0 local BLOCKSIZE = core.MAP_B...
pgimeno/minetest
builtin/game/forceloading.lua
Lua
mit
2,976
local scriptpath = core.get_builtin_path() local commonpath = scriptpath.."common"..DIR_DELIM local gamepath = scriptpath.."game"..DIR_DELIM -- Shared between builtin files, but -- not exposed to outer context local builtin_shared = {} dofile(commonpath.."vector.lua") dofile(gamepath.."constants.lua") assert(loadfi...
pgimeno/minetest
builtin/game/init.lua
Lua
mit
1,082
-- Minetest: builtin/item.lua local builtin_shared = ... local function copy_pointed_thing(pointed_thing) return { type = pointed_thing.type, above = vector.new(pointed_thing.above), under = vector.new(pointed_thing.under), ref = pointed_thing.ref, } end -- -- Item definition helpers -- function core.i...
pgimeno/minetest
builtin/game/item.lua
Lua
mit
21,725
-- Minetest: builtin/item_entity.lua function core.spawn_item(pos, item) -- Take item in any format local stack = ItemStack(item) local obj = core.add_entity(pos, "__builtin:item") -- Don't use obj if it couldn't be added to the map. if obj then obj:get_luaentity():set_item(stack:to_string()) end return obj e...
pgimeno/minetest
builtin/game/item_entity.lua
Lua
mit
6,146
-- Minetest: builtin/misc.lua -- -- Misc. API functions -- function core.check_player_privs(name, ...) if core.is_player(name) then name = name:get_player_name() elseif type(name) ~= "string" then error("core.check_player_privs expects a player or playername as " .. "argument.", 2) end local requested_pri...
pgimeno/minetest
builtin/game/misc.lua
Lua
mit
6,319
-- Minetest: builtin/privileges.lua -- -- Privileges -- core.registered_privileges = {} function core.register_privilege(name, param) local function fill_defaults(def) if def.give_to_singleplayer == nil then def.give_to_singleplayer = true end if def.give_to_admin == nil then def.give_to_admin = def.giv...
pgimeno/minetest
builtin/game/privileges.lua
Lua
mit
2,855
-- Minetest: builtin/misc_register.lua -- -- Make raw registration functions inaccessible to anyone except this file -- local register_item_raw = core.register_item_raw core.register_item_raw = nil local unregister_item_raw = core.unregister_item_raw core.unregister_item_raw = nil local register_alias_raw = core.re...
pgimeno/minetest
builtin/game/register.lua
Lua
mit
18,738
-- cache setting local enable_damage = core.settings:get_bool("enable_damage") local health_bar_definition = { hud_elem_type = "statbar", position = { x=0.5, y=1 }, text = "heart.png", number = core.PLAYER_MAX_HP_DEFAULT, direction = 0, size = { x=24, y=24 }, offset = { x=(-10*24)-25, y=-(48+24+16)}, } local b...
pgimeno/minetest
builtin/game/statbars.lua
Lua
mit
4,155
-- Minetest: builtin/static_spawn.lua local static_spawnpoint_string = core.settings:get("static_spawnpoint") if static_spawnpoint_string and static_spawnpoint_string ~= "" and not core.setting_get_pos("static_spawnpoint") then error('The static_spawnpoint setting is invalid: "' .. static_spawnpoint_string .. ...
pgimeno/minetest
builtin/game/static_spawn.lua
Lua
mit
791
VoxelArea = { MinEdge = {x=1, y=1, z=1}, MaxEdge = {x=0, y=0, z=0}, ystride = 0, zstride = 0, } function VoxelArea:new(o) o = o or {} setmetatable(o, self) self.__index = self local e = o:getExtent() o.ystride = e.x o.zstride = e.x * e.y return o end function VoxelArea:getExtent() local MaxEdge, MinEdge...
pgimeno/minetest
builtin/game/voxelarea.lua
Lua
mit
2,833
-- -- This file contains built-in stuff in Minetest implemented in Lua. -- -- It is always loaded and executed after registration of the C API, -- before loading and running any mods. -- -- Initialize some very basic things function core.debug(...) core.log(table.concat({...}, "\t")) end if core.print then local core...
pgimeno/minetest
builtin/init.lua
Lua
mit
1,530
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/common.lua
Lua
mit
11,664
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/dlg_config_world.lua
Lua
mit
7,748
--Minetest --Copyright (C) 2018 rubenwardy -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program...
pgimeno/minetest
builtin/mainmenu/dlg_contentstore.lua
Lua
mit
16,111
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/dlg_create_world.lua
Lua
mit
5,165
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/dlg_delete_content.lua
Lua
mit
2,522
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/dlg_delete_world.lua
Lua
mit
1,975
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/dlg_rename_modpack.lua
Lua
mit
2,499
--Minetest --Copyright (C) 2015 PilzAdam -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program i...
pgimeno/minetest
builtin/mainmenu/dlg_settings_advanced.lua
Lua
mit
31,058
local settings = ... local concat = table.concat local insert = table.insert local sprintf = string.format local rep = string.rep local minetest_example_header = [[ # This file contains a list of all available settings and their default value for minetest.conf # By default, all the settings are commented and n...
pgimeno/minetest
builtin/mainmenu/generate_from_settingtypes.lua
Lua
mit
3,935
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/init.lua
Lua
mit
4,898
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/pkgmgr.lua
Lua
mit
19,508
--Minetest --Copyright (C) 2014 sapier --Copyright (C) 2018 rubenwardy <rw@rubenwardy.com> -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at y...
pgimeno/minetest
builtin/mainmenu/tab_content.lua
Lua
mit
6,387
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/tab_credits.lua
Lua
mit
4,867
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/tab_local.lua
Lua
mit
10,068
--Minetest --Copyright (C) 2014 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/tab_online.lua
Lua
mit
10,468
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/tab_settings.lua
Lua
mit
14,115
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/tab_simple_main.lua
Lua
mit
7,098
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
pgimeno/minetest
builtin/mainmenu/textures.lua
Lua
mit
5,039
--Minetest --Copyright (C) 2016 T4im -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is di...
pgimeno/minetest
builtin/profiler/init.lua
Lua
mit
2,758
--Minetest --Copyright (C) 2016 T4im -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is di...
pgimeno/minetest
builtin/profiler/instrumentation.lua
Lua
mit
7,168
--Minetest --Copyright (C) 2016 T4im -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is di...
pgimeno/minetest
builtin/profiler/reporter.lua
Lua
mit
7,551
--Minetest --Copyright (C) 2016 T4im -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is di...
pgimeno/minetest
builtin/profiler/sampling.lua
Lua
mit
5,957
# This file contains all settings displayed in the settings menu. # # General format: # name (Readable name) type type_args # # Note that the parts are separated by exactly one space # # `type` can be: # - int # - string # - bool # - float # - enum # - path # - filepath # - key (will be ignor...
pgimeno/minetest
builtin/settingtypes.txt
Text
mit
79,882
* !.gitignore
pgimeno/minetest
client/serverlist/.gitignore
Git
mit
14
uniform sampler2D baseTexture; uniform sampler2D normalTexture; uniform sampler2D textureFlags; #define leftImage baseTexture #define rightImage normalTexture #define maskImage textureFlags void main(void) { vec2 uv = gl_TexCoord[0].st; vec4 left = texture2D(leftImage, uv).rgba; vec4 right = texture2D(rightImage, ...
pgimeno/minetest
client/shaders/3d_interlaced_merge/opengl_fragment.glsl
GLSL
mit
470
void main(void) { gl_TexCoord[0] = gl_MultiTexCoord0; gl_Position = gl_Vertex; gl_FrontColor = gl_BackColor = gl_Color; }
pgimeno/minetest
client/shaders/3d_interlaced_merge/opengl_vertex.glsl
GLSL
mit
125
void main(void) { gl_FragColor = gl_Color; }
pgimeno/minetest
client/shaders/default_shader/opengl_fragment.glsl
GLSL
mit
46
uniform mat4 mWorldViewProj; void main(void) { gl_TexCoord[0] = gl_MultiTexCoord0; gl_Position = mWorldViewProj * gl_Vertex; gl_FrontColor = gl_BackColor = gl_Color; }
pgimeno/minetest
client/shaders/default_shader/opengl_vertex.glsl
GLSL
mit
173
uniform sampler2D baseTexture; uniform sampler2D normalTexture; uniform vec3 yawVec; void main (void) { vec2 uv = gl_TexCoord[0].st; //texture sampling rate const float step = 1.0 / 256.0; float tl = texture2D(normalTexture, vec2(uv.x - step, uv.y + step)).r; float t = texture2D(normalTexture, vec2(uv.x - step,...
pgimeno/minetest
client/shaders/minimap_shader/opengl_fragment.glsl
GLSL
mit
1,369
uniform mat4 mWorldViewProj; uniform mat4 mWorld; void main(void) { gl_TexCoord[0] = gl_MultiTexCoord0; gl_Position = mWorldViewProj * gl_Vertex; gl_FrontColor = gl_BackColor = gl_Color; }
pgimeno/minetest
client/shaders/minimap_shader/opengl_vertex.glsl
GLSL
mit
193
uniform sampler2D baseTexture; uniform sampler2D normalTexture; uniform sampler2D textureFlags; uniform vec4 skyBgColor; uniform float fogDistance; uniform vec3 eyePosition; varying vec3 vPosition; varying vec3 worldPosition; varying float area_enable_parallax; varying vec3 eyeVec; varying vec3 tsEyeVec; varying vec...
pgimeno/minetest
client/shaders/nodes_shader/opengl_fragment.glsl
GLSL
mit
5,847
uniform mat4 mWorldViewProj; uniform mat4 mWorld; // Color of the light emitted by the sun. uniform vec3 dayLight; uniform vec3 eyePosition; uniform float animationTimer; varying vec3 vPosition; varying vec3 worldPosition; varying vec3 eyeVec; varying vec3 lightVec; varying vec3 tsEyeVec; varying vec3 tsLightVec; va...
pgimeno/minetest
client/shaders/nodes_shader/opengl_vertex.glsl
GLSL
mit
4,403
uniform sampler2D baseTexture; void main(void) { vec2 uv = gl_TexCoord[0].st; vec4 color = texture2D(baseTexture, uv); color.rgb *= gl_Color.rgb; gl_FragColor = color; }
pgimeno/minetest
client/shaders/selection_shader/opengl_fragment.glsl
GLSL
mit
175
uniform mat4 mWorldViewProj; void main(void) { gl_TexCoord[0] = gl_MultiTexCoord0; gl_Position = mWorldViewProj * gl_Vertex; gl_FrontColor = gl_BackColor = gl_Color; }
pgimeno/minetest
client/shaders/selection_shader/opengl_vertex.glsl
GLSL
mit
173
uniform sampler2D baseTexture; uniform sampler2D normalTexture; uniform sampler2D textureFlags; uniform vec4 skyBgColor; uniform float fogDistance; uniform vec3 eyePosition; varying vec3 vPosition; varying vec3 worldPosition; varying vec3 eyeVec; varying vec3 lightVec; bool normalTexturePresent = false; bool texTil...
pgimeno/minetest
client/shaders/wielded_shader/opengl_fragment.glsl
GLSL
mit
3,539
uniform mat4 mWorldViewProj; uniform mat4 mWorld; uniform vec3 eyePosition; uniform float animationTimer; varying vec3 vPosition; varying vec3 worldPosition; varying vec3 eyeVec; varying vec3 lightVec; varying vec3 tsEyeVec; varying vec3 tsLightVec; const float e = 2.718281828459; const float BS = 10.0; void main(...
pgimeno/minetest
client/shaders/wielded_shader/opengl_vertex.glsl
GLSL
mit
684
print("Loaded example file!, loading more examples") dofile("preview:examples/first.lua")
pgimeno/minetest
clientmods/preview/example.lua
Lua
mit
90
print("loaded first.lua example file")
pgimeno/minetest
clientmods/preview/examples/first.lua
Lua
mit
39
local modname = core.get_current_modname() or "??" local modstorage = core.get_mod_storage() local mod_channel dofile("preview:example.lua") -- This is an example function to ensure it's working properly, should be removed before merge core.register_on_shutdown(function() print("[PREVIEW] shutdown client") end) local...
pgimeno/minetest
clientmods/preview/init.lua
Lua
mit
6,082
mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR) find_library(CURL_LIBRARY NAMES curl) find_path(CURL_INCLUDE_DIR NAMES curl/curl.h) set(CURL_REQUIRED_VARS CURL_LIBRARY CURL_INCLUDE_DIR) if(WIN32) find_file(CURL_DLL NAMES libcurl-4.dll PATHS "C:/Windows/System32" DOC "Path to the cURL DLL (for installation)") ...
pgimeno/minetest
cmake/Modules/FindCURL.cmake
CMake
mit
527
option(ENABLE_SYSTEM_GMP "Use GMP from system" TRUE) mark_as_advanced(GMP_LIBRARY GMP_INCLUDE_DIR) set(USE_SYSTEM_GMP FALSE) if(ENABLE_SYSTEM_GMP) find_library(GMP_LIBRARY NAMES gmp) find_path(GMP_INCLUDE_DIR NAMES gmp.h) if(GMP_LIBRARY AND GMP_INCLUDE_DIR) message (STATUS "Using GMP provided by system.") set(...
pgimeno/minetest
cmake/Modules/FindGMP.cmake
CMake
mit
815
set(CUSTOM_GETTEXT_PATH "${PROJECT_SOURCE_DIR}/../../gettext" CACHE FILEPATH "path to custom gettext") find_path(GETTEXT_INCLUDE_DIR NAMES libintl.h PATHS "${CUSTOM_GETTEXT_PATH}/include" DOC "GetText include directory") find_program(GETTEXT_MSGFMT NAMES msgfmt PATHS "${CUSTOM_GETTEXT_PATH}/bin" DOC "Path to ...
pgimeno/minetest
cmake/Modules/FindGettextLib.cmake
CMake
mit
2,490
mark_as_advanced(IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR IRRLICHT_DLL) set(IRRLICHT_SOURCE_DIR "" CACHE PATH "Path to irrlicht source directory (optional)") # Find include directory if(NOT IRRLICHT_SOURCE_DIR STREQUAL "") set(IRRLICHT_SOURCE_DIR_INCLUDE "${IRRLICHT_SOURCE_DIR}/include" ) set(IRRLICHT_LIBRARY_NA...
pgimeno/minetest
cmake/Modules/FindIrrlicht.cmake
CMake
mit
1,809
# Look for JSONCPP if asked to. # We use a bundled version by default because some distros ship versions of # JSONCPP that cause segfaults and other memory errors when we link with them. # See https://github.com/minetest/minetest/issues/1793 mark_as_advanced(JSON_LIBRARY JSON_INCLUDE_DIR) option(ENABLE_SYSTEM_JSONCPP ...
pgimeno/minetest
cmake/Modules/FindJson.cmake
CMake
mit
963
# Look for Lua library to use # This selects LuaJIT by default option(ENABLE_LUAJIT "Enable LuaJIT support" TRUE) set(USE_LUAJIT FALSE) option(REQUIRE_LUAJIT "Require LuaJIT support" FALSE) if(REQUIRE_LUAJIT) set(ENABLE_LUAJIT TRUE) endif() if(ENABLE_LUAJIT) find_package(LuaJIT) if(LUAJIT_FOUND) set(USE_LUAJIT TR...
pgimeno/minetest
cmake/Modules/FindLua.cmake
CMake
mit
850
# Locate LuaJIT library # This module defines # LUAJIT_FOUND, if false, do not try to link to Lua # LUA_INCLUDE_DIR, where to find lua.h # LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8) # # This module is similar to FindLua51.cmake except that it finds LuaJit instead. FIND_PATH(LUA_INCLUDE_DIR lua...
pgimeno/minetest
cmake/Modules/FindLuaJIT.cmake
CMake
mit
1,411
#.rst: # FindNcursesw # ------------ # # Find the ncursesw (wide ncurses) include file and library. # # Based on FindCurses.cmake which comes with CMake. # # Checks for ncursesw first. If not found, it then executes the # regular old FindCurses.cmake to look for for ncurses (or curses). # # # Result Variables # ^^^^^^^...
pgimeno/minetest
cmake/Modules/FindNcursesw.cmake
CMake
mit
7,449
#------------------------------------------------------------------- # This file is stolen from part of the CMake build system for OGRE (Object-oriented Graphics Rendering Engine) http://www.ogre3d.org/ # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #--...
pgimeno/minetest
cmake/Modules/FindOpenGLES2.cmake
CMake
mit
2,826
mark_as_advanced(SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR) find_path(SQLITE3_INCLUDE_DIR sqlite3.h) find_library(SQLITE3_LIBRARY NAMES sqlite3) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(SQLite3 DEFAULT_MSG SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
pgimeno/minetest
cmake/Modules/FindSQLite3.cmake
CMake
mit
274
# - Find vorbis # Find the native vorbis includes and libraries # # VORBIS_INCLUDE_DIR - where to find vorbis.h, etc. # OGG_INCLUDE_DIR - where to find ogg/ogg.h, etc. # VORBIS_LIBRARIES - List of libraries when using vorbis(file). # VORBIS_FOUND - True if vorbis found. if(NOT GP2XWIZ) if(VORBIS_INC...
pgimeno/minetest
cmake/Modules/FindVorbis.cmake
CMake
mit
1,742
# Always run during 'make' if(DEVELOPMENT_BUILD) execute_process(COMMAND git rev-parse --short HEAD WORKING_DIRECTORY "${GENERATE_VERSION_SOURCE_DIR}" OUTPUT_VARIABLE VERSION_GITHASH OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET) if(VERSION_GITHASH) set(VERSION_GITHASH "${VERSION_STRING}-${VERSION_GITHASH}") ...
pgimeno/minetest
cmake/Modules/GenerateVersion.cmake
CMake
mit
824
# Project properties PROJECT_NAME = @PROJECT_NAME_CAPITALIZED@ PROJECT_NUMBER = @VERSION_STRING@ PROJECT_LOGO = @CMAKE_CURRENT_SOURCE_DIR@/misc/minetest.svg # Parsing JAVADOC_AUTOBRIEF = YES EXTRACT_ALL = YES EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES SORT_MEM...
pgimeno/minetest
doc/Doxyfile.in
in
mit
1,531
Minetest Android port ===================== Date: 2014 06 28 Controls -------- The Android port doesn't support everything you can do on PC due to the limited capabilities of common devices. What can be done is described below: While you're playing the game normally (that is, no menu or inventory is shown), the follo...
pgimeno/minetest
doc/README.android
android
mit
4,350
Minetest Lua Client Modding API Reference 5.1.0 ================================================ * More information at <http://www.minetest.net/> * Developer Wiki: <http://dev.minetest.net/> Introduction ------------ ** WARNING: The client API is currently unstable, and may break/change without warning. ** Content a...
pgimeno/minetest
doc/client_lua_api.txt
Text
mit
56,215
Formspec toolkit api 0.0.3 ========================== Formspec toolkit is a set of functions to create basic ui elements. File: fst/ui.lua ---------------- ui.lua adds base ui interface to add additional components to. ui.add(component) -> returns name of added component ^ add component to ui ^ component: componen...
pgimeno/minetest
doc/fst_api.txt
Text
mit
5,299
GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but chang...
pgimeno/minetest
doc/lgpl-2.1.txt
Text
mit
26,530
Minetest Lua Modding API Reference ================================== * More information at <http://www.minetest.net/> * Developer Wiki: <http://dev.minetest.net/> Introduction ============ Content and functionality can be added to Minetest using Lua scripting in run-time loaded mods. A mod is a self-contained bun...
pgimeno/minetest
doc/lua_api.txt
Text
mit
275,101
/** @mainpage The Minetest engine internal documentation Welcome to the Minetest engine Doxygen documentation site!\n This page documents the internal structure of the Minetest engine's C++ code.\n Use the tree view at the left to navigate. */
pgimeno/minetest
doc/main_page.dox
dox
mit
247
Minetest Lua Mainmenu API Reference 5.1.0 ========================================= Introduction ------------- The main menu is defined as a formspec by Lua in builtin/mainmenu/ Description of formspec language to show your menu is in lua_api.txt Callbacks --------- core.buttonhandler(fields): called when a button is...
pgimeno/minetest
doc/menu_lua_api.txt
Text
mit
8,458
.TH minetest 6 "2 February 2019" "" "" .SH NAME minetest, minetestserver \- Multiplayer infinite-world block sandbox .SH SYNOPSIS .B minetest [\fB--server SERVER OPTIONS\fR | \fBCLIENT OPTIONS\fR] [\fBCOMMON OPTIONS\fR] [\fBWORLD PATH\fR] .B minetestserver [\fBSERVER OPTIONS\fR] [\fBCOMMON OPTIONS\fR] [\fBWORLD PATH...
pgimeno/minetest
doc/minetest.6
6
mit
3,001
.so man6/minetest.6
pgimeno/minetest
doc/minetestserver.6
6
mit
21
Minetest protocol (incomplete, early draft): Updated 2011-06-18 A custom protocol over UDP. Integers are big endian. Refer to connection.{h,cpp} for further reference. Initialization: - A dummy reliable packet with peer_id=PEER_ID_INEXISTENT=0 is sent to the server: - Actually this can be sent without the reliable p...
pgimeno/minetest
doc/protocol.txt
Text
mit
3,518
Minetest Texture Pack Reference =============================== Texture packs allow you to replace textures provided by a mod with your own textures. Texture pack directory structure -------------------------------- textures |-- Texture Pack | |-- texture_pack.conf | |-- screenshot.png | |-...
pgimeno/minetest
doc/texture_packs.txt
Text
mit
7,649
============================= Minetest World Format 22...27 ============================= This applies to a world format carrying the block serialization version 22...27, used at least in - 0.4.dev-20120322 ... 0.4.dev-20120606 (22...23) - 0.4.0 (23) - 24 was never released as stable and existed for ~2 days - 27 was a...
pgimeno/minetest
doc/world_format.txt
Text
mit
18,854
Arimo - Apache License, version 2.0 Arimo-Regular.ttf: Digitized data copyright (c) 2010-2012 Google Corporation.
pgimeno/minetest
fonts/Arimo-LICENSE.txt
Text
mit
114
Cousine - Apache License, version 2.0 Cousine-Regular.ttf: Digitized data copyright (c) 2010-2012 Google Corporation.
pgimeno/minetest
fonts/Cousine-LICENSE.txt
Text
mit
118
Copyright (C) 2008 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
pgimeno/minetest
fonts/DroidSansFallbackFull-LICENSE.txt
Text
mit
577
name = Minimal development test
pgimeno/minetest
games/minimal/game.conf
INI
mit
33
-- bucket (Minetest 0.4 mod) -- A bucket, which can pick up water and lava minetest.register_alias("bucket", "bucket:bucket_empty") minetest.register_alias("bucket_water", "bucket:bucket_water") minetest.register_alias("bucket_lava", "bucket:bucket_lava") minetest.register_craft({ output = 'bucket:bucket_empty 1', ...
pgimeno/minetest
games/minimal/mods/bucket/init.lua
Lua
mit
2,622
name = bucket description = Minimal bucket to place and pick up liquids depends = default
pgimeno/minetest
games/minimal/mods/bucket/mod.conf
INI
mit
90
-- default (Minetest 0.4 mod) -- Most default stuff -- The API documentation in here was moved into doc/lua_api.txt WATER_ALPHA = 160 WATER_VISC = 1 LAVA_VISC = 7 LIGHT_MAX = 14 -- Definitions made by this mod that other mods can use too default = {} -- Load other files dofile(minetest.get_modpath("default").."/map...
pgimeno/minetest
games/minimal/mods/default/init.lua
Lua
mit
50,225
-- -- Aliases for map generator outputs -- minetest.register_alias("mapgen_stone", "default:stone") minetest.register_alias("mapgen_dirt", "default:dirt") minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass") minetest.register_alias("mapgen_sand", "default:sand") minetest.register_alias("mapgen...
pgimeno/minetest
games/minimal/mods/default/mapgen.lua
Lua
mit
3,261
name = default description = Minimal default, adds basic nodes
pgimeno/minetest
games/minimal/mods/default/mod.conf
INI
mit
63