Make the minimal development test somewhat playable by adding ore generation and...
authorPerttu Ahola <celeron55@gmail.com>
Thu, 5 Apr 2012 18:42:33 +0000 (21:42 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 5 Apr 2012 18:42:33 +0000 (21:42 +0300)
games/minimal/mods/default/init.lua
games/minimal/mods/experimental/init.lua

index b408e8cce76bc334d8606c875049089246dcde2e..952c114db9917d1d0bbea7dad2b7beeae5877239 100644 (file)
@@ -11,6 +11,9 @@ LIGHT_MAX = 14
 -- Definitions made by this mod that other mods can use too
 default = {}
 
+-- Load other files
+dofile(minetest.get_modpath("default").."/mapgen.lua")
+
 --
 -- Tool definition
 --
index cb0b209d822de0a23fa02dbe9cd61f434ea441dc..eafe546c377ca804be99831f2dded5d208702a81 100644 (file)
@@ -6,6 +6,7 @@
 
 experimental = {}
 
+--[[
 experimental.player_visual_index = 0
 function switch_player_visual()
        for _, obj in pairs(minetest.get_connected_players()) do
@@ -19,6 +20,7 @@ function switch_player_visual()
        minetest.after(1.0, switch_player_visual)
 end
 minetest.after(1.0, switch_player_visual)
+]]
 
 minetest.register_node("experimental:soundblock", {
        tile_images = {"unknown_block.png", "default_tnt_bottom.png",