diff --git a/mods/awards/api.lua b/mods/awards/api.lua index 55761ad..a9e0a14 100644 --- a/mods/awards/api.lua +++ b/mods/awards/api.lua @@ -1,5 +1,11 @@ -- AWARDS -- by Rubenwardy, CC-BY-SA + +-- CONFIGURATION +-- Use a graphical display for unlocking achievements. (Possible values: true | false) +local Use_Formspec = true +-- END OF CONFIGURATION + ------------------------------------------------------- -- this is api function file ------------------------------------------------------- @@ -68,7 +74,6 @@ end -- Load files dofile(minetest.get_modpath("awards").."/triggers.lua") -dofile(minetest.get_modpath("awards").."/config.txt") -- API Functions function awards.register_achievement(name,data_table) diff --git a/mods/awards/config.txt b/mods/awards/config.txt deleted file mode 100644 index 9fe580e..0000000 --- a/mods/awards/config.txt +++ /dev/null @@ -1,8 +0,0 @@ --- AWARDS --- by Rubenwardy, CC-BY-SA -------------------------------------------------------- --- this is the configuration file for the awards mod -------------------------------------------------------- - -Use_Formspec = true ---Use a graphical display for unlocking achievements. (Possible values: true | false) \ No newline at end of file diff --git a/mods/core/player.lua b/mods/core/player.lua index f686db4..5b2d439 100644 --- a/mods/core/player.lua +++ b/mods/core/player.lua @@ -6,15 +6,15 @@ -- -- Player animation speed -animation_speed = 30 +local animation_speed = 30 -- Player animation blending -- Note: This is currently broken due to a bug in Irrlicht, leave at 0 -animation_blend = 0 +local animation_blend = 0 -- Default player appearance -default_model = "character.b3d" -default_textures = {"character.png", } +local default_model = "character.b3d" +local default_textures = {"character.png", } -- Frame ranges for each player model function player_get_animations(model) diff --git a/mods/default/init.lua b/mods/default/init.lua index 641bf46..b87f02d 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -3,10 +3,9 @@ -- The API documentation in here was moved into doc/lua_api.txt -WATER_ALPHA = 160 -WATER_VISC = 1 -LAVA_VISC = 7 -LIGHT_MAX = 14 +local WATER_ALPHA = 160 +local WATER_VISC = 1 +local LAVA_VISC = 7 -- Definitions made by this mod that other mods can use too default = {} @@ -527,7 +526,7 @@ minetest.register_node("default:lava_flowing", { }, drop = "", paramtype = "light", - light_source = LIGHT_MAX - 1, + light_source = minetest.LIGHT_MAX - 1, walkable = false, pointable = false, diggable = false, @@ -555,7 +554,7 @@ minetest.register_node("default:lava_source", { }, drop = "", paramtype = "light", - light_source = LIGHT_MAX - 1, + light_source = minetest.LIGHT_MAX - 1, walkable = false, pointable = false, diggable = false, @@ -585,7 +584,7 @@ minetest.register_node("default:torch", { paramtype2 = "wallmounted", sunlight_propagates = true, walkable = false, - light_source = LIGHT_MAX-1, + light_source = minetest.LIGHT_MAX-1, selection_box = { type = "wallmounted", wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1}, diff --git a/mods/minerals/init.lua b/mods/minerals/init.lua index 8a9bca5..71697c9 100644 --- a/mods/minerals/init.lua +++ b/mods/minerals/init.lua @@ -1,4 +1,4 @@ -MINERALS_LIST={ +local MINERALS_LIST={ 'lazurite', 'anthracite', 'lignite', @@ -39,7 +39,7 @@ MINERALS_LIST={ 'charcoal' } -MINERALS_DESC_LIST={ +local MINERALS_DESC_LIST={ 'Lazurite', 'Anthracite', 'Lignite', @@ -121,4 +121,4 @@ minetest.register_craft({ type = "fuel", recipe = "minerals:anthracite", burntime = 50, -}) \ No newline at end of file +}) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 8b68083..723d423 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -32,7 +32,7 @@ local destroy = function(pos) end end -boom = function(pos, time) +local boom = function(pos, time) minetest.after(time, function(pos) if minetest.get_node(pos).name ~= "tnt:tnt_burning" then return @@ -161,7 +161,7 @@ minetest.register_node("tnt:tnt_burning", { minetest.register_node("tnt:boom", { drawtype = "plantlike", tiles = {"tnt_boom.png"}, - light_source = LIGHT_MAX, + light_source = minetest.LIGHT_MAX, walkable = false, drop = "", groups = {dig_immediate=3},