Make the minimal development test somewhat playable by adding ore generation and removing the player visual switch test

master
Perttu Ahola 2012-04-05 21:42:33 +03:00
parent e74da72b82
commit 4107390337
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@ LIGHT_MAX = 14
-- Definitions made by this mod that other mods can use too -- Definitions made by this mod that other mods can use too
default = {} default = {}
-- Load other files
dofile(minetest.get_modpath("default").."/mapgen.lua")
-- --
-- Tool definition -- Tool definition
-- --

View File

@ -6,6 +6,7 @@
experimental = {} experimental = {}
--[[
experimental.player_visual_index = 0 experimental.player_visual_index = 0
function switch_player_visual() function switch_player_visual()
for _, obj in pairs(minetest.get_connected_players()) do for _, obj in pairs(minetest.get_connected_players()) do
@ -19,6 +20,7 @@ function switch_player_visual()
minetest.after(1.0, switch_player_visual) minetest.after(1.0, switch_player_visual)
end end
minetest.after(1.0, switch_player_visual) minetest.after(1.0, switch_player_visual)
]]
minetest.register_node("experimental:soundblock", { minetest.register_node("experimental:soundblock", {
tile_images = {"unknown_block.png", "default_tnt_bottom.png", tile_images = {"unknown_block.png", "default_tnt_bottom.png",