diff options
Diffstat (limited to 'gloopblocks')
| -rw-r--r-- | gloopblocks/description.txt | 2 | ||||
| -rw-r--r-- | gloopblocks/init.lua | 24 | ||||
| -rw-r--r-- | gloopblocks/mod.conf | 1 | ||||
| -rw-r--r-- | gloopblocks/screenshot.png | bin | 0 -> 140425 bytes | 
4 files changed, 15 insertions, 12 deletions
| diff --git a/gloopblocks/description.txt b/gloopblocks/description.txt new file mode 100644 index 0000000..c514a8e --- /dev/null +++ b/gloopblocks/description.txt @@ -0,0 +1,2 @@ +Adds decorative and functional blocks, including cement, rainbow blocks, "evil" blocks and sticks,  +and the usual collection of tools of various strengths and speeds made from either cement or "evil" components. diff --git a/gloopblocks/init.lua b/gloopblocks/init.lua index e806118..0d14764 100644 --- a/gloopblocks/init.lua +++ b/gloopblocks/init.lua @@ -753,18 +753,18 @@ if minetest.setting_getbool("gloopblocks_lavacooling") ~= false then  		return false
  	end
 -	default.cool_lava_source = function(pos)
 -		if gloopblocks_search_nearby_nodes(pos,"default:water_source")
 -		or gloopblocks_search_nearby_nodes(pos,"default:water_flowing") then
 -			minetest.set_node(pos, {name="gloopblocks:obsidian_cooled"})
 -		end
 -	end
 -
 -	default.cool_lava_flowing = function(pos)
 -		if gloopblocks_search_nearby_nodes(pos,"default:water_source") then
 -			minetest.set_node(pos, {name="gloopblocks:basalt_cooled"})
 -		elseif gloopblocks_search_nearby_nodes(pos,"default:water_flowing") then
 -			minetest.set_node(pos, {name="gloopblocks:pumice_cooled"})
 +	default.cool_lava = function(pos, node)
 +		if node.name == "default:lava_source" then
 +			if gloopblocks_search_nearby_nodes(pos,"default:water_source")
 +			or gloopblocks_search_nearby_nodes(pos,"default:water_flowing") then
 +				minetest.set_node(pos, {name="gloopblocks:obsidian_cooled"})
 +			end
 +		else -- Lava flowing
 +			if gloopblocks_search_nearby_nodes(pos,"default:water_source") then
 +				minetest.set_node(pos, {name="gloopblocks:basalt_cooled"})
 +			elseif gloopblocks_search_nearby_nodes(pos,"default:water_flowing") then
 +				minetest.set_node(pos, {name="gloopblocks:pumice_cooled"})
 +			end
  		end
  	end
  end
 diff --git a/gloopblocks/mod.conf b/gloopblocks/mod.conf new file mode 100644 index 0000000..e68d383 --- /dev/null +++ b/gloopblocks/mod.conf @@ -0,0 +1 @@ +name = gloopblocks diff --git a/gloopblocks/screenshot.png b/gloopblocks/screenshot.pngBinary files differ new file mode 100644 index 0000000..edec75a --- /dev/null +++ b/gloopblocks/screenshot.png | 
