mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-10-30 23:25:33 +01:00 
			
		
		
		
	Compare commits
	
		
			11 Commits
		
	
	
		
			0.4.dev-20
			...
			0.4.0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 6ba4f01d0b | ||
|  | a9da19c590 | ||
|  | b1dcbe72aa | ||
|  | 8c8b4b005e | ||
|  | 537344bc62 | ||
|  | 274f280e10 | ||
|  | 3c8d4879a1 | ||
|  | d05002ecc0 | ||
|  | d817c9babe | ||
|  | 4e996ffa35 | ||
|  | 1dd62938c1 | 
| @@ -7,11 +7,11 @@ Copyright (C) 2011-2012 Kahrl <kahrl@gmx.net> | |||||||
| Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com> | Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com> | ||||||
|  |  | ||||||
| This program is free software; you can redistribute it and/or modify | This program is free software; you can redistribute it and/or modify | ||||||
| it under the terms of the GNU General Public License as published by | it under the terms of the GNU Lesser General Public License as published by | ||||||
| the Free Software Foundation; either version 2 of the License, or | the Free Software Foundation; either version 2 of the License, or | ||||||
| (at your option) any later version. | (at your option) any later version. | ||||||
|  |  | ||||||
| http://www.gnu.org/licenses/gpl-2.0.html | http://www.gnu.org/licenses/lgpl-2.1.html | ||||||
|  |  | ||||||
| License of media (textures and sounds) | License of media (textures and sounds) | ||||||
| -------------------------------------- | -------------------------------------- | ||||||
|   | |||||||
| @@ -90,6 +90,6 @@ bucket.register_liquid( | |||||||
|  |  | ||||||
| minetest.register_craft({ | minetest.register_craft({ | ||||||
| 	type = "fuel", | 	type = "fuel", | ||||||
| 	recipe = "default:bucket_lava", | 	recipe = "bucket:bucket_lava", | ||||||
| 	burntime = 60, | 	burntime = 60, | ||||||
| }) | }) | ||||||
|   | |||||||
| @@ -6,11 +6,11 @@ License of source code: | |||||||
| Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com> | Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.com> | ||||||
|  |  | ||||||
| This program is free software; you can redistribute it and/or modify | This program is free software; you can redistribute it and/or modify | ||||||
| it under the terms of the GNU General Public License as published by | it under the terms of the GNU Lesser General Public License as published by | ||||||
| the Free Software Foundation; either version 2 of the License, or | the Free Software Foundation; either version 2.1 of the License, or | ||||||
| (at your option) any later version. | (at your option) any later version. | ||||||
|  |  | ||||||
| http://www.gnu.org/licenses/gpl-2.0.html | http://www.gnu.org/licenses/lgpl-2.1.html | ||||||
|  |  | ||||||
| License of media (textures and sounds) | License of media (textures and sounds) | ||||||
| -------------------------------------- | -------------------------------------- | ||||||
|   | |||||||
| @@ -696,7 +696,7 @@ end | |||||||
|  |  | ||||||
| minetest.register_node("default:stone", { | minetest.register_node("default:stone", { | ||||||
| 	description = "Stone", | 	description = "Stone", | ||||||
| 	tile_images = {"default_stone.png"}, | 	tiles = {"default_stone.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	drop = 'default:cobble', | 	drop = 'default:cobble', | ||||||
| @@ -706,7 +706,7 @@ minetest.register_node("default:stone", { | |||||||
|  |  | ||||||
| minetest.register_node("default:desert_stone", { | minetest.register_node("default:desert_stone", { | ||||||
| 	description = "Desert Stone", | 	description = "Desert Stone", | ||||||
| 	tile_images = {"default_desert_stone.png"}, | 	tiles = {"default_desert_stone.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	drop = 'default:desert_stone', | 	drop = 'default:desert_stone', | ||||||
| @@ -716,7 +716,7 @@ minetest.register_node("default:desert_stone", { | |||||||
|  |  | ||||||
| minetest.register_node("default:stone_with_coal", { | minetest.register_node("default:stone_with_coal", { | ||||||
| 	description = "Coal Ore", | 	description = "Coal Ore", | ||||||
| 	tile_images = {"default_stone.png^default_mineral_coal.png"}, | 	tiles = {"default_stone.png^default_mineral_coal.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	drop = 'default:coal_lump', | 	drop = 'default:coal_lump', | ||||||
| @@ -725,7 +725,7 @@ minetest.register_node("default:stone_with_coal", { | |||||||
|  |  | ||||||
| minetest.register_node("default:stone_with_iron", { | minetest.register_node("default:stone_with_iron", { | ||||||
| 	description = "Iron Ore", | 	description = "Iron Ore", | ||||||
| 	tile_images = {"default_stone.png^default_mineral_iron.png"}, | 	tiles = {"default_stone.png^default_mineral_iron.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	drop = 'default:iron_lump', | 	drop = 'default:iron_lump', | ||||||
| @@ -734,7 +734,7 @@ minetest.register_node("default:stone_with_iron", { | |||||||
|  |  | ||||||
| minetest.register_node("default:dirt_with_grass", { | minetest.register_node("default:dirt_with_grass", { | ||||||
| 	description = "Dirt with Grass", | 	description = "Dirt with Grass", | ||||||
| 	tile_images = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, | 	tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=3}, | 	groups = {crumbly=3}, | ||||||
| 	drop = 'default:dirt', | 	drop = 'default:dirt', | ||||||
| @@ -745,7 +745,7 @@ minetest.register_node("default:dirt_with_grass", { | |||||||
|  |  | ||||||
| minetest.register_node("default:dirt_with_grass_footsteps", { | minetest.register_node("default:dirt_with_grass_footsteps", { | ||||||
| 	description = "Dirt with Grass and Footsteps", | 	description = "Dirt with Grass and Footsteps", | ||||||
| 	tile_images = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, | 	tiles = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=3}, | 	groups = {crumbly=3}, | ||||||
| 	drop = 'default:dirt', | 	drop = 'default:dirt', | ||||||
| @@ -756,7 +756,7 @@ minetest.register_node("default:dirt_with_grass_footsteps", { | |||||||
|  |  | ||||||
| minetest.register_node("default:dirt", { | minetest.register_node("default:dirt", { | ||||||
| 	description = "Dirt", | 	description = "Dirt", | ||||||
| 	tile_images = {"default_dirt.png"}, | 	tiles = {"default_dirt.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=3}, | 	groups = {crumbly=3}, | ||||||
| 	sounds = default.node_sound_dirt_defaults(), | 	sounds = default.node_sound_dirt_defaults(), | ||||||
| @@ -764,7 +764,7 @@ minetest.register_node("default:dirt", { | |||||||
|  |  | ||||||
| minetest.register_node("default:sand", { | minetest.register_node("default:sand", { | ||||||
| 	description = "Sand", | 	description = "Sand", | ||||||
| 	tile_images = {"default_sand.png"}, | 	tiles = {"default_sand.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=3, falling_node=1}, | 	groups = {crumbly=3, falling_node=1}, | ||||||
| 	sounds = default.node_sound_sand_defaults(), | 	sounds = default.node_sound_sand_defaults(), | ||||||
| @@ -772,7 +772,7 @@ minetest.register_node("default:sand", { | |||||||
|  |  | ||||||
| minetest.register_node("default:desert_sand", { | minetest.register_node("default:desert_sand", { | ||||||
| 	description = "Desert Sand", | 	description = "Desert Sand", | ||||||
| 	tile_images = {"default_desert_sand.png"}, | 	tiles = {"default_desert_sand.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {sand=1, crumbly=3, falling_node=1}, | 	groups = {sand=1, crumbly=3, falling_node=1}, | ||||||
| 	sounds = default.node_sound_sand_defaults(), | 	sounds = default.node_sound_sand_defaults(), | ||||||
| @@ -780,7 +780,7 @@ minetest.register_node("default:desert_sand", { | |||||||
|  |  | ||||||
| minetest.register_node("default:gravel", { | minetest.register_node("default:gravel", { | ||||||
| 	description = "Gravel", | 	description = "Gravel", | ||||||
| 	tile_images = {"default_gravel.png"}, | 	tiles = {"default_gravel.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=2, falling_node=1}, | 	groups = {crumbly=2, falling_node=1}, | ||||||
| 	sounds = default.node_sound_dirt_defaults({ | 	sounds = default.node_sound_dirt_defaults({ | ||||||
| @@ -790,7 +790,7 @@ minetest.register_node("default:gravel", { | |||||||
|  |  | ||||||
| minetest.register_node("default:sandstone", { | minetest.register_node("default:sandstone", { | ||||||
| 	description = "Sandstone", | 	description = "Sandstone", | ||||||
| 	tile_images = {"default_sandstone.png"}, | 	tiles = {"default_sandstone.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=2,cracky=2}, | 	groups = {crumbly=2,cracky=2}, | ||||||
| 	drop = 'default:sand', | 	drop = 'default:sand', | ||||||
| @@ -799,7 +799,7 @@ minetest.register_node("default:sandstone", { | |||||||
|  |  | ||||||
| minetest.register_node("default:clay", { | minetest.register_node("default:clay", { | ||||||
| 	description = "Clay", | 	description = "Clay", | ||||||
| 	tile_images = {"default_clay.png"}, | 	tiles = {"default_clay.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {crumbly=3}, | 	groups = {crumbly=3}, | ||||||
| 	drop = 'default:clay_lump 4', | 	drop = 'default:clay_lump 4', | ||||||
| @@ -810,7 +810,7 @@ minetest.register_node("default:clay", { | |||||||
|  |  | ||||||
| minetest.register_node("default:brick", { | minetest.register_node("default:brick", { | ||||||
| 	description = "Brick Block", | 	description = "Brick Block", | ||||||
| 	tile_images = {"default_brick.png"}, | 	tiles = {"default_brick.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	drop = 'default:clay_brick 4', | 	drop = 'default:clay_brick 4', | ||||||
| @@ -819,7 +819,7 @@ minetest.register_node("default:brick", { | |||||||
|  |  | ||||||
| minetest.register_node("default:tree", { | minetest.register_node("default:tree", { | ||||||
| 	description = "Tree", | 	description = "Tree", | ||||||
| 	tile_images = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, | 	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, | 	groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| @@ -827,7 +827,7 @@ minetest.register_node("default:tree", { | |||||||
|  |  | ||||||
| minetest.register_node("default:jungletree", { | minetest.register_node("default:jungletree", { | ||||||
| 	description = "Jungle Tree", | 	description = "Jungle Tree", | ||||||
| 	tile_images = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, | 	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, | 	groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| @@ -837,7 +837,7 @@ minetest.register_node("default:junglegrass", { | |||||||
| 	description = "Jungle Grass", | 	description = "Jungle Grass", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	visual_scale = 1.3, | 	visual_scale = 1.3, | ||||||
| 	tile_images = {"default_junglegrass.png"}, | 	tiles = {"default_junglegrass.png"}, | ||||||
| 	inventory_image = "default_junglegrass.png", | 	inventory_image = "default_junglegrass.png", | ||||||
| 	wield_image = "default_junglegrass.png", | 	wield_image = "default_junglegrass.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -850,7 +850,7 @@ minetest.register_node("default:leaves", { | |||||||
| 	description = "Leaves", | 	description = "Leaves", | ||||||
| 	drawtype = "allfaces_optional", | 	drawtype = "allfaces_optional", | ||||||
| 	visual_scale = 1.3, | 	visual_scale = 1.3, | ||||||
| 	tile_images = {"default_leaves.png"}, | 	tiles = {"default_leaves.png"}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	groups = {snappy=3, leafdecay=3, flammable=2}, | 	groups = {snappy=3, leafdecay=3, flammable=2}, | ||||||
| 	drop = { | 	drop = { | ||||||
| @@ -873,7 +873,7 @@ minetest.register_node("default:leaves", { | |||||||
|  |  | ||||||
| minetest.register_node("default:cactus", { | minetest.register_node("default:cactus", { | ||||||
| 	description = "Cactus", | 	description = "Cactus", | ||||||
| 	tile_images = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"}, | 	tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {snappy=2,choppy=3,flammable=2}, | 	groups = {snappy=2,choppy=3,flammable=2}, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| @@ -882,7 +882,7 @@ minetest.register_node("default:cactus", { | |||||||
| minetest.register_node("default:papyrus", { | minetest.register_node("default:papyrus", { | ||||||
| 	description = "Papyrus", | 	description = "Papyrus", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	tile_images = {"default_papyrus.png"}, | 	tiles = {"default_papyrus.png"}, | ||||||
| 	inventory_image = "default_papyrus.png", | 	inventory_image = "default_papyrus.png", | ||||||
| 	wield_image = "default_papyrus.png", | 	wield_image = "default_papyrus.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -894,7 +894,7 @@ minetest.register_node("default:papyrus", { | |||||||
|  |  | ||||||
| minetest.register_node("default:bookshelf", { | minetest.register_node("default:bookshelf", { | ||||||
| 	description = "Bookshelf", | 	description = "Bookshelf", | ||||||
| 	tile_images = {"default_wood.png", "default_wood.png", "default_bookshelf.png"}, | 	tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3}, | 	groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3}, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| @@ -903,7 +903,7 @@ minetest.register_node("default:bookshelf", { | |||||||
| minetest.register_node("default:glass", { | minetest.register_node("default:glass", { | ||||||
| 	description = "Glass", | 	description = "Glass", | ||||||
| 	drawtype = "glasslike", | 	drawtype = "glasslike", | ||||||
| 	tile_images = {"default_glass.png"}, | 	tiles = {"default_glass.png"}, | ||||||
| 	inventory_image = minetest.inventorycube("default_glass.png"), | 	inventory_image = minetest.inventorycube("default_glass.png"), | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| @@ -915,7 +915,7 @@ minetest.register_node("default:glass", { | |||||||
| minetest.register_node("default:fence_wood", { | minetest.register_node("default:fence_wood", { | ||||||
| 	description = "Wooden Fence", | 	description = "Wooden Fence", | ||||||
| 	drawtype = "fencelike", | 	drawtype = "fencelike", | ||||||
| 	tile_images = {"default_wood.png"}, | 	tiles = {"default_wood.png"}, | ||||||
| 	inventory_image = "default_fence.png", | 	inventory_image = "default_fence.png", | ||||||
| 	wield_image = "default_fence.png", | 	wield_image = "default_fence.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -931,7 +931,7 @@ minetest.register_node("default:fence_wood", { | |||||||
| minetest.register_node("default:rail", { | minetest.register_node("default:rail", { | ||||||
| 	description = "Rail", | 	description = "Rail", | ||||||
| 	drawtype = "raillike", | 	drawtype = "raillike", | ||||||
| 	tile_images = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"}, | 	tiles = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"}, | ||||||
| 	inventory_image = "default_rail.png", | 	inventory_image = "default_rail.png", | ||||||
| 	wield_image = "default_rail.png", | 	wield_image = "default_rail.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -939,7 +939,8 @@ minetest.register_node("default:rail", { | |||||||
| 	walkable = false, | 	walkable = false, | ||||||
| 	selection_box = { | 	selection_box = { | ||||||
| 		type = "fixed", | 		type = "fixed", | ||||||
| 		--fixed = <default> |                 -- but how to specify the dimensions for curved and sideways rails? | ||||||
|  |                 fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, | ||||||
| 	}, | 	}, | ||||||
| 	groups = {bendy=2,snappy=1,dig_immediate=2}, | 	groups = {bendy=2,snappy=1,dig_immediate=2}, | ||||||
| }) | }) | ||||||
| @@ -947,7 +948,7 @@ minetest.register_node("default:rail", { | |||||||
| minetest.register_node("default:ladder", { | minetest.register_node("default:ladder", { | ||||||
| 	description = "Ladder", | 	description = "Ladder", | ||||||
| 	drawtype = "signlike", | 	drawtype = "signlike", | ||||||
| 	tile_images = {"default_ladder.png"}, | 	tiles = {"default_ladder.png"}, | ||||||
| 	inventory_image = "default_ladder.png", | 	inventory_image = "default_ladder.png", | ||||||
| 	wield_image = "default_ladder.png", | 	wield_image = "default_ladder.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -968,7 +969,7 @@ minetest.register_node("default:ladder", { | |||||||
|  |  | ||||||
| minetest.register_node("default:wood", { | minetest.register_node("default:wood", { | ||||||
| 	description = "Wooden Planks", | 	description = "Wooden Planks", | ||||||
| 	tile_images = {"default_wood.png"}, | 	tiles = {"default_wood.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, | 	groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, | ||||||
| 	sounds = default.node_sound_wood_defaults(), | 	sounds = default.node_sound_wood_defaults(), | ||||||
| @@ -976,7 +977,7 @@ minetest.register_node("default:wood", { | |||||||
|  |  | ||||||
| minetest.register_node("default:mese", { | minetest.register_node("default:mese", { | ||||||
| 	description = "Mese", | 	description = "Mese", | ||||||
| 	tile_images = {"default_mese.png"}, | 	tiles = {"default_mese.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=1}, | 	groups = {cracky=1}, | ||||||
| 	sounds = default.node_sound_defaults(), | 	sounds = default.node_sound_defaults(), | ||||||
| @@ -984,7 +985,7 @@ minetest.register_node("default:mese", { | |||||||
|  |  | ||||||
| minetest.register_node("default:cloud", { | minetest.register_node("default:cloud", { | ||||||
| 	description = "Cloud", | 	description = "Cloud", | ||||||
| 	tile_images = {"default_cloud.png"}, | 	tiles = {"default_cloud.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	sounds = default.node_sound_defaults(), | 	sounds = default.node_sound_defaults(), | ||||||
| }) | }) | ||||||
| @@ -993,7 +994,11 @@ minetest.register_node("default:water_flowing", { | |||||||
| 	description = "Flowing Water", | 	description = "Flowing Water", | ||||||
| 	inventory_image = minetest.inventorycube("default_water.png"), | 	inventory_image = minetest.inventorycube("default_water.png"), | ||||||
| 	drawtype = "flowingliquid", | 	drawtype = "flowingliquid", | ||||||
| 	tile_images = {"default_water.png"}, | 	tiles = {"default_water.png"}, | ||||||
|  | 	special_tiles = { | ||||||
|  | 		{name="default_water.png", backface_culling=false}, | ||||||
|  | 		{name="default_water.png", backface_culling=true}, | ||||||
|  | 	}, | ||||||
| 	alpha = WATER_ALPHA, | 	alpha = WATER_ALPHA, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| @@ -1005,10 +1010,6 @@ minetest.register_node("default:water_flowing", { | |||||||
| 	liquid_alternative_source = "default:water_source", | 	liquid_alternative_source = "default:water_source", | ||||||
| 	liquid_viscosity = WATER_VISC, | 	liquid_viscosity = WATER_VISC, | ||||||
| 	post_effect_color = {a=64, r=100, g=100, b=200}, | 	post_effect_color = {a=64, r=100, g=100, b=200}, | ||||||
| 	special_materials = { |  | ||||||
| 		{image="default_water.png", backface_culling=false}, |  | ||||||
| 		{image="default_water.png", backface_culling=true}, |  | ||||||
| 	}, |  | ||||||
| 	groups = {water=3, liquid=3, puts_out_fire=1}, | 	groups = {water=3, liquid=3, puts_out_fire=1}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -1016,7 +1017,11 @@ minetest.register_node("default:water_source", { | |||||||
| 	description = "Water Source", | 	description = "Water Source", | ||||||
| 	inventory_image = minetest.inventorycube("default_water.png"), | 	inventory_image = minetest.inventorycube("default_water.png"), | ||||||
| 	drawtype = "liquid", | 	drawtype = "liquid", | ||||||
| 	tile_images = {"default_water.png"}, | 	tiles = {"default_water.png"}, | ||||||
|  | 	special_tiles = { | ||||||
|  | 		-- New-style water source material (mostly unused) | ||||||
|  | 		{name="default_water.png", backface_culling=false}, | ||||||
|  | 	}, | ||||||
| 	alpha = WATER_ALPHA, | 	alpha = WATER_ALPHA, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| @@ -1028,10 +1033,6 @@ minetest.register_node("default:water_source", { | |||||||
| 	liquid_alternative_source = "default:water_source", | 	liquid_alternative_source = "default:water_source", | ||||||
| 	liquid_viscosity = WATER_VISC, | 	liquid_viscosity = WATER_VISC, | ||||||
| 	post_effect_color = {a=64, r=100, g=100, b=200}, | 	post_effect_color = {a=64, r=100, g=100, b=200}, | ||||||
| 	special_materials = { |  | ||||||
| 		-- New-style water source material (mostly unused) |  | ||||||
| 		{image="default_water.png", backface_culling=false}, |  | ||||||
| 	}, |  | ||||||
| 	groups = {water=3, liquid=3, puts_out_fire=1}, | 	groups = {water=3, liquid=3, puts_out_fire=1}, | ||||||
| }) | }) | ||||||
|  |  | ||||||
| @@ -1039,7 +1040,19 @@ minetest.register_node("default:lava_flowing", { | |||||||
| 	description = "Flowing Lava", | 	description = "Flowing Lava", | ||||||
| 	inventory_image = minetest.inventorycube("default_lava.png"), | 	inventory_image = minetest.inventorycube("default_lava.png"), | ||||||
| 	drawtype = "flowingliquid", | 	drawtype = "flowingliquid", | ||||||
| 	tile_images = {"default_lava.png"}, | 	tiles = {"default_lava.png"}, | ||||||
|  | 	special_tiles = { | ||||||
|  | 		{ | ||||||
|  | 			image="default_lava_flowing_animated.png", | ||||||
|  | 			backface_culling=false, | ||||||
|  | 			animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3} | ||||||
|  | 		}, | ||||||
|  | 		{ | ||||||
|  | 			image="default_lava_flowing_animated.png", | ||||||
|  | 			backface_culling=true, | ||||||
|  | 			animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.3} | ||||||
|  | 		}, | ||||||
|  | 	}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	light_source = LIGHT_MAX - 1, | 	light_source = LIGHT_MAX - 1, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| @@ -1052,18 +1065,20 @@ minetest.register_node("default:lava_flowing", { | |||||||
| 	liquid_viscosity = LAVA_VISC, | 	liquid_viscosity = LAVA_VISC, | ||||||
| 	damage_per_second = 4*2, | 	damage_per_second = 4*2, | ||||||
| 	post_effect_color = {a=192, r=255, g=64, b=0}, | 	post_effect_color = {a=192, r=255, g=64, b=0}, | ||||||
| 	special_materials = { | 	groups = {lava=3, liquid=2, hot=3, igniter=1}, | ||||||
| 		{image="default_lava.png", backface_culling=false}, |  | ||||||
| 		{image="default_lava.png", backface_culling=true}, |  | ||||||
| 	}, |  | ||||||
| 	groups = {lava=3, liquid=2, hot=3, igniter=2}, |  | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_node("default:lava_source", { | minetest.register_node("default:lava_source", { | ||||||
| 	description = "Lava Source", | 	description = "Lava Source", | ||||||
| 	inventory_image = minetest.inventorycube("default_lava.png"), | 	inventory_image = minetest.inventorycube("default_lava.png"), | ||||||
| 	drawtype = "liquid", | 	drawtype = "liquid", | ||||||
| 	tile_images = {"default_lava.png"}, | 	tiles = { | ||||||
|  | 		{name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}} | ||||||
|  | 	}, | ||||||
|  | 	special_tiles = { | ||||||
|  | 		-- New-style lava source material (mostly unused) | ||||||
|  | 		{name="default_lava.png", backface_culling=false}, | ||||||
|  | 	}, | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	light_source = LIGHT_MAX - 1, | 	light_source = LIGHT_MAX - 1, | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| @@ -1076,17 +1091,13 @@ minetest.register_node("default:lava_source", { | |||||||
| 	liquid_viscosity = LAVA_VISC, | 	liquid_viscosity = LAVA_VISC, | ||||||
| 	damage_per_second = 4*2, | 	damage_per_second = 4*2, | ||||||
| 	post_effect_color = {a=192, r=255, g=64, b=0}, | 	post_effect_color = {a=192, r=255, g=64, b=0}, | ||||||
| 	special_materials = { | 	groups = {lava=3, liquid=2, hot=3, igniter=1}, | ||||||
| 		-- New-style lava source material (mostly unused) |  | ||||||
| 		{image="default_lava.png", backface_culling=false}, |  | ||||||
| 	}, |  | ||||||
| 	groups = {lava=3, liquid=2, hot=3, igniter=2}, |  | ||||||
| }) | }) | ||||||
|  |  | ||||||
| minetest.register_node("default:torch", { | minetest.register_node("default:torch", { | ||||||
| 	description = "Torch", | 	description = "Torch", | ||||||
| 	drawtype = "torchlike", | 	drawtype = "torchlike", | ||||||
| 	tile_images = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"}, | 	tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"}, | ||||||
| 	inventory_image = "default_torch_on_floor.png", | 	inventory_image = "default_torch_on_floor.png", | ||||||
| 	wield_image = "default_torch_on_floor.png", | 	wield_image = "default_torch_on_floor.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -1108,7 +1119,7 @@ minetest.register_node("default:torch", { | |||||||
| minetest.register_node("default:sign_wall", { | minetest.register_node("default:sign_wall", { | ||||||
| 	description = "Sign", | 	description = "Sign", | ||||||
| 	drawtype = "signlike", | 	drawtype = "signlike", | ||||||
| 	tile_images = {"default_sign_wall.png"}, | 	tiles = {"default_sign_wall.png"}, | ||||||
| 	inventory_image = "default_sign_wall.png", | 	inventory_image = "default_sign_wall.png", | ||||||
| 	wield_image = "default_sign_wall.png", | 	wield_image = "default_sign_wall.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -1144,7 +1155,7 @@ minetest.register_node("default:sign_wall", { | |||||||
|  |  | ||||||
| minetest.register_node("default:chest", { | minetest.register_node("default:chest", { | ||||||
| 	description = "Chest", | 	description = "Chest", | ||||||
| 	tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", | 	tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", | ||||||
| 		"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"}, | 		"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"}, | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| 	groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, | 	groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, | ||||||
| @@ -1195,7 +1206,7 @@ end | |||||||
|  |  | ||||||
| minetest.register_node("default:chest_locked", { | minetest.register_node("default:chest_locked", { | ||||||
| 	description = "Locked Chest", | 	description = "Locked Chest", | ||||||
| 	tile_images = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", | 	tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png", | ||||||
| 		"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"}, | 		"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"}, | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| 	groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, | 	groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, | ||||||
| @@ -1278,7 +1289,7 @@ default.furnace_inactive_formspec = | |||||||
|  |  | ||||||
| minetest.register_node("default:furnace", { | minetest.register_node("default:furnace", { | ||||||
| 	description = "Furnace", | 	description = "Furnace", | ||||||
| 	tile_images = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", | 	tiles = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", | ||||||
| 		"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"}, | 		"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"}, | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| 	groups = {cracky=2}, | 	groups = {cracky=2}, | ||||||
| @@ -1309,7 +1320,7 @@ minetest.register_node("default:furnace", { | |||||||
|  |  | ||||||
| minetest.register_node("default:furnace_active", { | minetest.register_node("default:furnace_active", { | ||||||
| 	description = "Furnace", | 	description = "Furnace", | ||||||
| 	tile_images = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", | 	tiles = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png", | ||||||
| 		"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front_active.png"}, | 		"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front_active.png"}, | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| 	light_source = 8, | 	light_source = 8, | ||||||
| @@ -1457,7 +1468,7 @@ minetest.register_abm({ | |||||||
|  |  | ||||||
| minetest.register_node("default:cobble", { | minetest.register_node("default:cobble", { | ||||||
| 	description = "Cobblestone", | 	description = "Cobblestone", | ||||||
| 	tile_images = {"default_cobble.png"}, | 	tiles = {"default_cobble.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	sounds = default.node_sound_stone_defaults(), | 	sounds = default.node_sound_stone_defaults(), | ||||||
| @@ -1465,7 +1476,7 @@ minetest.register_node("default:cobble", { | |||||||
|  |  | ||||||
| minetest.register_node("default:mossycobble", { | minetest.register_node("default:mossycobble", { | ||||||
| 	description = "Mossy Cobblestone", | 	description = "Mossy Cobblestone", | ||||||
| 	tile_images = {"default_mossycobble.png"}, | 	tiles = {"default_mossycobble.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {cracky=3}, | 	groups = {cracky=3}, | ||||||
| 	sounds = default.node_sound_stone_defaults(), | 	sounds = default.node_sound_stone_defaults(), | ||||||
| @@ -1473,7 +1484,7 @@ minetest.register_node("default:mossycobble", { | |||||||
|  |  | ||||||
| minetest.register_node("default:steelblock", { | minetest.register_node("default:steelblock", { | ||||||
| 	description = "Steel Block", | 	description = "Steel Block", | ||||||
| 	tile_images = {"default_steel_block.png"}, | 	tiles = {"default_steel_block.png"}, | ||||||
| 	is_ground_content = true, | 	is_ground_content = true, | ||||||
| 	groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, | 	groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2}, | ||||||
| 	sounds = default.node_sound_stone_defaults(), | 	sounds = default.node_sound_stone_defaults(), | ||||||
| @@ -1481,7 +1492,7 @@ minetest.register_node("default:steelblock", { | |||||||
|  |  | ||||||
| minetest.register_node("default:nyancat", { | minetest.register_node("default:nyancat", { | ||||||
| 	description = "Nyan Cat", | 	description = "Nyan Cat", | ||||||
| 	tile_images = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png", | 	tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png", | ||||||
| 		"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"}, | 		"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"}, | ||||||
| 	inventory_image = "default_nc_front.png", | 	inventory_image = "default_nc_front.png", | ||||||
| 	paramtype2 = "facedir", | 	paramtype2 = "facedir", | ||||||
| @@ -1492,7 +1503,7 @@ minetest.register_node("default:nyancat", { | |||||||
|  |  | ||||||
| minetest.register_node("default:nyancat_rainbow", { | minetest.register_node("default:nyancat_rainbow", { | ||||||
| 	description = "Nyan Cat Rainbow", | 	description = "Nyan Cat Rainbow", | ||||||
| 	tile_images = {"default_nc_rb.png"}, | 	tiles = {"default_nc_rb.png"}, | ||||||
| 	inventory_image = "default_nc_rb.png", | 	inventory_image = "default_nc_rb.png", | ||||||
| 	groups = {cracky=2}, | 	groups = {cracky=2}, | ||||||
| 	sounds = default.node_sound_defaults(), | 	sounds = default.node_sound_defaults(), | ||||||
| @@ -1502,7 +1513,7 @@ minetest.register_node("default:sapling", { | |||||||
| 	description = "Sapling", | 	description = "Sapling", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	visual_scale = 1.0, | 	visual_scale = 1.0, | ||||||
| 	tile_images = {"default_sapling.png"}, | 	tiles = {"default_sapling.png"}, | ||||||
| 	inventory_image = "default_sapling.png", | 	inventory_image = "default_sapling.png", | ||||||
| 	wield_image = "default_sapling.png", | 	wield_image = "default_sapling.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| @@ -1515,7 +1526,7 @@ minetest.register_node("default:apple", { | |||||||
| 	description = "Apple", | 	description = "Apple", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	visual_scale = 1.0, | 	visual_scale = 1.0, | ||||||
| 	tile_images = {"default_apple.png"}, | 	tiles = {"default_apple.png"}, | ||||||
| 	inventory_image = "default_apple.png", | 	inventory_image = "default_apple.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
| 	sunlight_propagates = true, | 	sunlight_propagates = true, | ||||||
| @@ -1529,7 +1540,7 @@ minetest.register_node("default:dry_shrub", { | |||||||
| 	description = "Dry Shrub", | 	description = "Dry Shrub", | ||||||
| 	drawtype = "plantlike", | 	drawtype = "plantlike", | ||||||
| 	visual_scale = 1.0, | 	visual_scale = 1.0, | ||||||
| 	tile_images = {"default_dry_shrub.png"}, | 	tiles = {"default_dry_shrub.png"}, | ||||||
| 	inventory_image = "default_dry_shrub.png", | 	inventory_image = "default_dry_shrub.png", | ||||||
| 	wield_image = "default_dry_shrub.png", | 	wield_image = "default_dry_shrub.png", | ||||||
| 	paramtype = "light", | 	paramtype = "light", | ||||||
|   | |||||||
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								mods/default/textures/default_lava_flowing_animated.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								mods/default/textures/default_lava_flowing_animated.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 8.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								mods/default/textures/default_lava_source_animated.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								mods/default/textures/default_lava_source_animated.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 3.4 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 299 B After Width: | Height: | Size: 203 B | 
| @@ -18,11 +18,11 @@ Modifications: | |||||||
|   Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com> |   Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com> | ||||||
|  |  | ||||||
| This program is free software; you can redistribute it and/or modify | This program is free software; you can redistribute it and/or modify | ||||||
| it under the terms of the GNU General Public License as published by | it under the terms of the GNU Lesser General Public License as published by | ||||||
| the Free Software Foundation; either version 2 of the License, or | the Free Software Foundation; either version 2.1 of the License, or | ||||||
| (at your option) any later version. | (at your option) any later version. | ||||||
|  |  | ||||||
| http://www.gnu.org/licenses/gpl-2.0.html | http://www.gnu.org/licenses/lgpl-2.1.html | ||||||
|  |  | ||||||
| License of media (textures and sounds) | License of media (textures and sounds) | ||||||
| -------------------------------------- | -------------------------------------- | ||||||
|   | |||||||
| @@ -6,11 +6,11 @@ License of source code: | |||||||
| Copyright (C) 2012 Perttu Ahola (celeron55) <celeron55@gmail.com> | Copyright (C) 2012 Perttu Ahola (celeron55) <celeron55@gmail.com> | ||||||
|  |  | ||||||
| This program is free software; you can redistribute it and/or modify | This program is free software; you can redistribute it and/or modify | ||||||
| it under the terms of the GNU General Public License as published by | it under the terms of the GNU Lesser General Public License as published by | ||||||
| the Free Software Foundation; either version 2 of the License, or | the Free Software Foundation; either version 2.1 of the License, or | ||||||
| (at your option) any later version. | (at your option) any later version. | ||||||
|  |  | ||||||
| http://www.gnu.org/licenses/gpl-2.0.html | http://www.gnu.org/licenses/lgpl-2.1.html | ||||||
|  |  | ||||||
| License of media (textures and sounds) | License of media (textures and sounds) | ||||||
| -------------------------------------- | -------------------------------------- | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ minetest.register_node("fire:basic_flame", { | |||||||
| 	drawtype = "glasslike", | 	drawtype = "glasslike", | ||||||
| 	tile_images = {"fire_basic_flame.png"}, | 	tile_images = {"fire_basic_flame.png"}, | ||||||
| 	light_source = 14, | 	light_source = 14, | ||||||
| 	groups = {igniter=3,dig_immediate=3}, | 	groups = {igniter=2,dig_immediate=3}, | ||||||
| 	drop = '', | 	drop = '', | ||||||
| 	walkable = false, | 	walkable = false, | ||||||
| }) | }) | ||||||
|   | |||||||
							
								
								
									
										26
									
								
								mods/stairs/README.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								mods/stairs/README.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | |||||||
|  | Minetest 0.4 mod: stairs | ||||||
|  | ========================= | ||||||
|  |  | ||||||
|  | License of source code: | ||||||
|  | ----------------------- | ||||||
|  | Copyright (C) 2011-2012 Kahrl <kahrl@gmx.net> | ||||||
|  | Copyright (C) 2011-2012 celeron55, Perttu Ahola <celeron55@gmail.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 of the License, or | ||||||
|  | (at your option) any later version. | ||||||
|  |  | ||||||
|  | http://www.gnu.org/licenses/lgpl-2.1.html | ||||||
|  |  | ||||||
|  | License of media (textures and sounds) | ||||||
|  | -------------------------------------- | ||||||
|  | Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)                                  | ||||||
|  | http://creativecommons.org/licenses/by-sa/3.0/ | ||||||
|  |  | ||||||
|  | Authors of media files | ||||||
|  | ----------------------- | ||||||
|  | Everything not listed in here: | ||||||
|  | Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com> | ||||||
|  |  | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								mods/stairs/depends.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								mods/stairs/depends.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | default | ||||||
							
								
								
									
										146
									
								
								mods/stairs/init.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										146
									
								
								mods/stairs/init.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,146 @@ | |||||||
|  | -- Minetest 0.4 mod: stairs | ||||||
|  | -- See README.txt for licensing and other information. | ||||||
|  |  | ||||||
|  | stairs = {} | ||||||
|  |  | ||||||
|  | -- Node will be called stairs:stair_<subname> | ||||||
|  | function stairs.register_stair(subname, recipeitem, groups, images, description) | ||||||
|  | 	minetest.register_node("stairs:stair_" .. subname, { | ||||||
|  | 		description = description, | ||||||
|  | 		drawtype = "nodebox", | ||||||
|  | 		tiles = images, | ||||||
|  | 		paramtype = "light", | ||||||
|  | 		paramtype2 = "facedir", | ||||||
|  | 		is_ground_content = true, | ||||||
|  | 		groups = groups, | ||||||
|  | 		node_box = { | ||||||
|  | 			type = "fixed", | ||||||
|  | 			fixed = { | ||||||
|  | 				{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, | ||||||
|  | 				{-0.5, 0, 0, 0.5, 0.5, 0.5}, | ||||||
|  | 			}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  |  | ||||||
|  | 	minetest.register_craft({ | ||||||
|  | 		output = 'stairs:stair_' .. subname .. ' 4', | ||||||
|  | 		recipe = { | ||||||
|  | 			{recipeitem, "", ""}, | ||||||
|  | 			{recipeitem, recipeitem, ""}, | ||||||
|  | 			{recipeitem, recipeitem, recipeitem}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  |  | ||||||
|  | 	-- Flipped recipe for the silly minecrafters | ||||||
|  | 	minetest.register_craft({ | ||||||
|  | 		output = 'stairs:stair_' .. subname .. ' 4', | ||||||
|  | 		recipe = { | ||||||
|  | 			{"", "", recipeitem}, | ||||||
|  | 			{"", recipeitem, recipeitem}, | ||||||
|  | 			{recipeitem, recipeitem, recipeitem}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | -- Node will be called stairs:slab_<subname> | ||||||
|  | function stairs.register_slab(subname, recipeitem, groups, images, description) | ||||||
|  | 	minetest.register_node("stairs:slab_" .. subname, { | ||||||
|  | 		description = description, | ||||||
|  | 		drawtype = "nodebox", | ||||||
|  | 		tiles = images, | ||||||
|  | 		paramtype = "light", | ||||||
|  | 		is_ground_content = true, | ||||||
|  | 		groups = groups, | ||||||
|  | 		node_box = { | ||||||
|  | 			type = "fixed", | ||||||
|  | 			fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, | ||||||
|  | 		}, | ||||||
|  | 		selection_box = { | ||||||
|  | 			type = "fixed", | ||||||
|  | 			fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}, | ||||||
|  | 		}, | ||||||
|  | 		on_place = function(itemstack, placer, pointed_thing) | ||||||
|  | 			if pointed_thing.type ~= "node" then | ||||||
|  | 				return itemstack | ||||||
|  | 			end | ||||||
|  |  | ||||||
|  | 			-- If it's being placed on an another similar one, replace it with | ||||||
|  | 			-- a full block | ||||||
|  | 			local slabpos = nil | ||||||
|  | 			local slabnode = nil | ||||||
|  | 			local p0 = pointed_thing.under | ||||||
|  | 			local p1 = pointed_thing.above | ||||||
|  | 			local n0 = minetest.env:get_node(p0) | ||||||
|  | 			local n1 = minetest.env:get_node(p1) | ||||||
|  | 			if n0.name == "stairs:slab_" .. subname then | ||||||
|  | 				slabpos = p0 | ||||||
|  | 				slabnode = n0 | ||||||
|  | 			elseif n1.name == "stairs:slab_" .. subname then | ||||||
|  | 				slabpos = p1 | ||||||
|  | 				slabnode = n1 | ||||||
|  | 			end | ||||||
|  | 			if slabpos then | ||||||
|  | 				-- Remove the slab at slabpos | ||||||
|  | 				minetest.env:remove_node(slabpos) | ||||||
|  | 				-- Make a fake stack of a single item and try to place it | ||||||
|  | 				local fakestack = ItemStack(recipeitem) | ||||||
|  | 				pointed_thing.above = slabpos | ||||||
|  | 				fakestack = minetest.item_place(fakestack, placer, pointed_thing) | ||||||
|  | 				-- If the item was taken from the fake stack, decrement original | ||||||
|  | 				if not fakestack or fakestack:is_empty() then | ||||||
|  | 					itemstack:take_item(1) | ||||||
|  | 				-- Else put old node back | ||||||
|  | 				else | ||||||
|  | 					minetest.env:set_node(slabpos, slabnode) | ||||||
|  | 				end | ||||||
|  | 				return itemstack | ||||||
|  | 			end | ||||||
|  | 			 | ||||||
|  | 			-- Otherwise place regularly | ||||||
|  | 			return minetest.item_place(itemstack, placer, pointed_thing) | ||||||
|  | 		end, | ||||||
|  | 	}) | ||||||
|  |  | ||||||
|  | 	minetest.register_craft({ | ||||||
|  | 		output = 'stairs:slab_' .. subname .. ' 3', | ||||||
|  | 		recipe = { | ||||||
|  | 			{recipeitem, recipeitem, recipeitem}, | ||||||
|  | 		}, | ||||||
|  | 	}) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | -- Nodes will be called stairs:{stair,slab}_<subname> | ||||||
|  | function stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab) | ||||||
|  | 	stairs.register_stair(subname, recipeitem, groups, images, desc_stair) | ||||||
|  | 	stairs.register_slab(subname, recipeitem, groups, images, desc_slab) | ||||||
|  | end | ||||||
|  |  | ||||||
|  | stairs.register_stair_and_slab("wood", "default:wood", | ||||||
|  | 		{snappy=2,choppy=2,oddly_breakable_by_hand=2}, | ||||||
|  | 		{"default_wood.png"}, | ||||||
|  | 		"Wooden stair", | ||||||
|  | 		"Wooden slab") | ||||||
|  |  | ||||||
|  | stairs.register_stair_and_slab("stone", "default:stone", | ||||||
|  | 		{cracky=3}, | ||||||
|  | 		{"default_stone.png"}, | ||||||
|  | 		"Stone stair", | ||||||
|  | 		"Stone slab") | ||||||
|  |  | ||||||
|  | stairs.register_stair_and_slab("cobble", "default:cobble", | ||||||
|  | 		{cracky=3}, | ||||||
|  | 		{"default_cobble.png"}, | ||||||
|  | 		"Cobble stair", | ||||||
|  | 		"Cobble slab") | ||||||
|  |  | ||||||
|  | stairs.register_stair_and_slab("brick", "default:brick", | ||||||
|  | 		{cracky=3}, | ||||||
|  | 		{"default_brick.png"}, | ||||||
|  | 		"Brick stair", | ||||||
|  | 		"Brick slab") | ||||||
|  |  | ||||||
|  | stairs.register_stair_and_slab("sandstone", "default:sandstone", | ||||||
|  | 		{crumbly=2,cracky=2}, | ||||||
|  | 		{"default_sandstone.png"}, | ||||||
|  | 		"Sandstone stair", | ||||||
|  | 		"Sandstone slab") | ||||||
		Reference in New Issue
	
	Block a user