Compare commits
	
		
			32 Commits
		
	
	
		
			nalc-1.2.0
			...
			a3d97b75cc
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a3d97b75cc | |||
| 
						 | 
					aa2c8f2e90 | ||
| 04b9577a91 | |||
| 
						 | 
					313e54cf69 | ||
| 
						 | 
					edc74e1583 | ||
| 7fcd97d172 | |||
| 
						 | 
					349e691afb | ||
| 
						 | 
					2307c99f7d | ||
| 
						 | 
					b05fb6087a | ||
| 567a483405 | |||
| 
						 | 
					720adef1d0 | ||
| 
						 | 
					2e3e82cd92 | ||
| 
						 | 
					bd5ff73c19 | ||
| 
						 | 
					ed06375ad5 | ||
| 
						 | 
					4af6f35734 | ||
| 
						 | 
					a01222f15e | ||
| 
						 | 
					4f8eeab19a | ||
| b98f6c38f1 | |||
| 
						 | 
					95a4b96478 | ||
| 0514845098 | |||
| 
						 | 
					975bee9898 | ||
| 
						 | 
					0e43ab505c | ||
| 3e0ef20bd8 | |||
| 
						 | 
					07afd28b2f | ||
| 599158ff67 | |||
| 
						 | 
					f78b47d9c2 | ||
| 762100db46 | |||
| 
						 | 
					f3e0b60827 | ||
| 
						 | 
					a3c96afbda | ||
| 
						 | 
					4fdbff14f8 | ||
| 7fc5410778 | |||
| 
						 | 
					3824e097ba | 
@@ -2,11 +2,15 @@ Baked Clay
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
This mod lets the player bake clay into hardened blocks and colour them with
 | 
					This mod lets the player bake clay into hardened blocks and colour them with
 | 
				
			||||||
dye (8x baked clay and 1x dye in centre), stairs and slabs are also available.
 | 
					dye (8x baked clay and 1x dye in centre), stairs and slabs are also available.
 | 
				
			||||||
 | 
					Cooking baked clay turns it into glazed terracotta blocks.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
https://forum.minetest.net/viewtopic.php?id=8890
 | 
					https://forum.minetest.net/viewtopic.php?id=8890
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Changelog:
 | 
					Changelog:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 1.2 - Add 'stairsplus_clay_compatibility' setting.
 | 
				
			||||||
 | 
					- 1.1 - Remove 0.4.x compatibility to better support 5.x mods
 | 
				
			||||||
 | 
					- 1.0 - Re-Added glazed terracotta blocks when you cook baked clay in furnace (thanks Amara2_MK), added support for sofar's flowerpot mod, missing glazed textures re-coloured by firefox.
 | 
				
			||||||
- 0.9 - Baked clay now works in the technic cnc machine
 | 
					- 0.9 - Baked clay now works in the technic cnc machine
 | 
				
			||||||
- 0.8 - Cooking clay block in furnace gives natural baked clay which you can dye
 | 
					- 0.8 - Cooking clay block in furnace gives natural baked clay which you can dye
 | 
				
			||||||
- 0.7 - Added support for stairsplus so that stairs are registered properly
 | 
					- 0.7 - Added support for stairsplus so that stairs are registered properly
 | 
				
			||||||
@@ -17,7 +21,9 @@ Changelog:
 | 
				
			|||||||
- 0.2 - Any colour of baked clay can be re-dyed into another colour
 | 
					- 0.2 - Any colour of baked clay can be re-dyed into another colour
 | 
				
			||||||
- 0.1 - Initial Release
 | 
					- 0.1 - Initial Release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Lucky Blocks: 9
 | 
					Lucky Blocks: 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Note: Under settings you will find 'colored_clay_compatibility' switch that when enabled will register aliases for the older colored clay mod and it's stairplus stairs.
 | 
					Note: Under settings you will find 'colored_clay_compatibility' switch that when enabled will register aliases for the older colored clay mod and it's stairplus stairs.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					You will also find the 'stairsplus_clay_compatibility' setting that is enabled by default for older worlds that switched from default stairs mod to stairsplus.  It can be disabled for brand new worlds only using stairsplus mod though.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +0,0 @@
 | 
				
			|||||||
default
 | 
					 | 
				
			||||||
stairs
 | 
					 | 
				
			||||||
moreblocks?
 | 
					 | 
				
			||||||
lucky_block?
 | 
					 | 
				
			||||||
technic_cnc?
 | 
					 | 
				
			||||||
@@ -1 +0,0 @@
 | 
				
			|||||||
Adds the ability to bake clay into blocks and colour them with dye.
 | 
					 | 
				
			||||||
							
								
								
									
										135
									
								
								flowers.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,135 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					-- translation support
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local S = minetest.get_translator("bakedclay")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- new flowers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local flowers = {
 | 
				
			||||||
 | 
						{"delphinium", S("Blue Delphinium"),
 | 
				
			||||||
 | 
						{-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_cyan = 1}},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{"thistle", S("Thistle"),
 | 
				
			||||||
 | 
						{-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_magenta = 1}},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{"lazarus", S("Lazarus Bell"),
 | 
				
			||||||
 | 
						{-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_pink = 1}},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						{"mannagrass", S("Reed Mannagrass"),
 | 
				
			||||||
 | 
						{-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_dark_green = 1}}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- helper function
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local function add_simple_flower(name, desc, box, f_groups)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						f_groups.snappy = 3
 | 
				
			||||||
 | 
						f_groups.flower = 1
 | 
				
			||||||
 | 
						f_groups.flora = 1
 | 
				
			||||||
 | 
						f_groups.attached_node = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						minetest.register_node("bakedclay:" .. name, {
 | 
				
			||||||
 | 
							description = desc,
 | 
				
			||||||
 | 
							drawtype = "plantlike",
 | 
				
			||||||
 | 
							waving = 1,
 | 
				
			||||||
 | 
							tiles = {"baked_clay_" .. name .. ".png"},
 | 
				
			||||||
 | 
							inventory_image = "baked_clay_" .. name .. ".png",
 | 
				
			||||||
 | 
							wield_image = "baked_clay_" .. name .. ".png",
 | 
				
			||||||
 | 
							sunlight_propagates = true,
 | 
				
			||||||
 | 
							paramtype = "light",
 | 
				
			||||||
 | 
							walkable = false,
 | 
				
			||||||
 | 
							buildable_to = true,
 | 
				
			||||||
 | 
							groups = f_groups,
 | 
				
			||||||
 | 
							sounds = default.node_sound_leaves_defaults(),
 | 
				
			||||||
 | 
							selection_box = {type = "fixed", fixed = box}
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- register new flowers to fill in missing dye colours
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for _,item in pairs(flowers) do
 | 
				
			||||||
 | 
						add_simple_flower(unpack(item))
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- add new flowers to mapgen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.register_decoration({
 | 
				
			||||||
 | 
						deco_type = "simple",
 | 
				
			||||||
 | 
						place_on = {"default:dirt_with_grass"},
 | 
				
			||||||
 | 
						sidelen = 16,
 | 
				
			||||||
 | 
						noise_params = {
 | 
				
			||||||
 | 
							offset = 0,
 | 
				
			||||||
 | 
							scale = 0.004,
 | 
				
			||||||
 | 
							spread = {x = 100, y = 100, z = 100},
 | 
				
			||||||
 | 
							seed = 7133,
 | 
				
			||||||
 | 
							octaves = 3,
 | 
				
			||||||
 | 
							persist = 0.6
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						y_min = 10,
 | 
				
			||||||
 | 
						y_max = 90,
 | 
				
			||||||
 | 
						decoration = "bakedclay:delphinium"
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.register_decoration({
 | 
				
			||||||
 | 
						deco_type = "simple",
 | 
				
			||||||
 | 
						place_on = {"default:dirt_with_grass", "default:dirt_with_dry_grass"},
 | 
				
			||||||
 | 
						sidelen = 16,
 | 
				
			||||||
 | 
						noise_params = {
 | 
				
			||||||
 | 
							offset = 0,
 | 
				
			||||||
 | 
							scale = 0.004,
 | 
				
			||||||
 | 
							spread = {x = 100, y = 100, z = 100},
 | 
				
			||||||
 | 
							seed = 7134,
 | 
				
			||||||
 | 
							octaves = 3,
 | 
				
			||||||
 | 
							persist = 0.6
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						y_min = 15,
 | 
				
			||||||
 | 
						y_max = 90,
 | 
				
			||||||
 | 
						decoration = "bakedclay:thistle"
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.register_decoration({
 | 
				
			||||||
 | 
						deco_type = "simple",
 | 
				
			||||||
 | 
						place_on = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"},
 | 
				
			||||||
 | 
						sidelen = 16,
 | 
				
			||||||
 | 
						noise_params = {
 | 
				
			||||||
 | 
							offset = 0,
 | 
				
			||||||
 | 
							scale = 0.01,
 | 
				
			||||||
 | 
							spread = {x = 100, y = 100, z = 100},
 | 
				
			||||||
 | 
							seed = 7135,
 | 
				
			||||||
 | 
							octaves = 3,
 | 
				
			||||||
 | 
							persist = 0.6
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						y_min = 1,
 | 
				
			||||||
 | 
						y_max = 90,
 | 
				
			||||||
 | 
						decoration = "bakedclay:lazarus",
 | 
				
			||||||
 | 
						spawn_by = "default:jungletree",
 | 
				
			||||||
 | 
						num_spawn_by = 1
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.register_decoration({
 | 
				
			||||||
 | 
						deco_type = "simple",
 | 
				
			||||||
 | 
						place_on = {"default:dirt_with_grass", "default:sand"},
 | 
				
			||||||
 | 
						sidelen = 16,
 | 
				
			||||||
 | 
						noise_params = {
 | 
				
			||||||
 | 
							offset = 0,
 | 
				
			||||||
 | 
							scale = 0.009,
 | 
				
			||||||
 | 
							spread = {x = 100, y = 100, z = 100},
 | 
				
			||||||
 | 
							seed = 7136,
 | 
				
			||||||
 | 
							octaves = 3,
 | 
				
			||||||
 | 
							persist = 0.6
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
 | 
						y_min = 1,
 | 
				
			||||||
 | 
						y_max = 15,
 | 
				
			||||||
 | 
						decoration = "bakedclay:mannagrass",
 | 
				
			||||||
 | 
						spawn_by = "group:water",
 | 
				
			||||||
 | 
						num_spawn_by = 1
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- flowerpot mod support
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if minetest.get_modpath("flowerpot") then
 | 
				
			||||||
 | 
						flowerpot.register_node("bakedclay:delphinium")
 | 
				
			||||||
 | 
						flowerpot.register_node("bakedclay:thistle")
 | 
				
			||||||
 | 
						flowerpot.register_node("bakedclay:lazarus")
 | 
				
			||||||
 | 
						flowerpot.register_node("bakedclay:mannagrass")
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
							
								
								
									
										372
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						@@ -1,305 +1,227 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
-- Baked Clay by TenPlus1
 | 
					-- translation support
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local S = minetest.get_translator("bakedclay")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- list of clay colours
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local clay = {
 | 
					local clay = {
 | 
				
			||||||
	{"natural", "Natural"},
 | 
						{"natural", S("Natural")},
 | 
				
			||||||
	{"white", "White"},
 | 
						{"white", S("White")},
 | 
				
			||||||
	{"grey", "Grey"},
 | 
						{"grey", S("Grey")},
 | 
				
			||||||
	{"black", "Black"},
 | 
						{"black", S("Black")},
 | 
				
			||||||
	{"red", "Red"},
 | 
						{"red", S("Red")},
 | 
				
			||||||
	{"yellow", "Yellow"},
 | 
						{"yellow", S("Yellow")},
 | 
				
			||||||
	{"green", "Green"},
 | 
						{"green", S("Green")},
 | 
				
			||||||
	{"cyan", "Cyan"},
 | 
						{"cyan", S("Cyan")},
 | 
				
			||||||
	{"blue", "Blue"},
 | 
						{"blue", S("Blue")},
 | 
				
			||||||
	{"magenta", "Magenta"},
 | 
						{"magenta", S("Magenta")},
 | 
				
			||||||
	{"orange", "Orange"},
 | 
						{"orange", S("Orange")},
 | 
				
			||||||
	{"violet", "Violet"},
 | 
						{"violet", S("Violet")},
 | 
				
			||||||
	{"brown", "Brown"},
 | 
						{"brown", S("Brown")},
 | 
				
			||||||
	{"pink", "Pink"},
 | 
						{"pink", S("Pink")},
 | 
				
			||||||
	{"dark_grey", "Dark Grey"},
 | 
						{"dark_grey", S("Dark Grey")},
 | 
				
			||||||
	{"dark_green", "Dark Green"},
 | 
						{"dark_green", S("Dark Green")}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- check mod support
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local techcnc_mod = minetest.get_modpath("technic_cnc")
 | 
					local techcnc_mod = minetest.get_modpath("technic_cnc")
 | 
				
			||||||
local stairs_mod = minetest.get_modpath("stairs")
 | 
					local stairs_mod = minetest.get_modpath("stairs")
 | 
				
			||||||
local stairsplus_mod = minetest.get_modpath("moreblocks")
 | 
					local stairsplus_mod = minetest.get_modpath("moreblocks")
 | 
				
			||||||
	and minetest.global_exists("stairsplus")
 | 
							and minetest.global_exists("stairsplus")
 | 
				
			||||||
 | 
					local stairsplus_compat = minetest.settings:get_bool("stairsplus_clay_compatibility") ~= false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- scroll through colours
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for _, clay in pairs(clay) do
 | 
					for _, clay in pairs(clay) do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- node definition
 | 
						-- register node
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	minetest.register_node("bakedclay:" .. clay[1], {
 | 
						minetest.register_node("bakedclay:" .. clay[1], {
 | 
				
			||||||
		description = clay[2] .. " Baked Clay",
 | 
							description = clay[2] .. " " .. S("Baked Clay"),
 | 
				
			||||||
		tiles = {"baked_clay_" .. clay[1] ..".png"},
 | 
							tiles = {"baked_clay_" .. clay[1] ..".png"},
 | 
				
			||||||
		groups = {cracky = 3, bakedclay = 1},
 | 
							groups = {cracky = 3, bakedclay = 1},
 | 
				
			||||||
		sounds = default.node_sound_stone_defaults(),
 | 
							sounds = default.node_sound_stone_defaults(),
 | 
				
			||||||
 | 
							is_ground_content = false
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- craft from dye and any baked clay
 | 
						-- register craft recipe
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if clay[1] ~= "natural" then
 | 
						if clay[1] ~= "natural" then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		minetest.register_craft({
 | 
							minetest.register_craft({
 | 
				
			||||||
			output = "bakedclay:" .. clay[1] .. " 8",
 | 
								output = "bakedclay:" .. clay[1] .. " 8",
 | 
				
			||||||
			recipe = {
 | 
								recipe = {
 | 
				
			||||||
				{"group:bakedclay", "group:bakedclay", "group:bakedclay"},
 | 
									{"group:bakedclay", "group:bakedclay", "group:bakedclay"},
 | 
				
			||||||
				{"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"},
 | 
									{"group:bakedclay", "dye:" .. clay[1], "group:bakedclay"},
 | 
				
			||||||
				{"group:bakedclay", "group:bakedclay", "group:bakedclay"}
 | 
									{"group:bakedclay", "group:bakedclay", "group:bakedclay"}
 | 
				
			||||||
			},
 | 
								}
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- register stairsplus stairs if found
 | 
						-- stairs plus
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if stairsplus_mod then
 | 
						if stairsplus_mod then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1], "bakedclay:" .. clay[1], {
 | 
							stairsplus:register_all("bakedclay", "baked_clay_" .. clay[1],
 | 
				
			||||||
			description = clay[2] .. " Baked Clay",
 | 
									"bakedclay:" .. clay[1], {
 | 
				
			||||||
 | 
								description = clay[2] .. " " .. S("Baked Clay"),
 | 
				
			||||||
			tiles = {"baked_clay_" .. clay[1] .. ".png"},
 | 
								tiles = {"baked_clay_" .. clay[1] .. ".png"},
 | 
				
			||||||
			groups = {cracky = 3},
 | 
								groups = {cracky = 3},
 | 
				
			||||||
			sounds = default.node_sound_stone_defaults(),
 | 
								sounds = default.node_sound_stone_defaults()
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		stairsplus:register_alias_all("bakedclay", clay[1], "bakedclay", "baked_clay_" .. clay[1])
 | 
							if stairsplus_compat then
 | 
				
			||||||
		minetest.register_alias("stairs:slab_bakedclay_".. clay[1], "bakedclay:slab_baked_clay_" .. clay[1])
 | 
					
 | 
				
			||||||
		minetest.register_alias("stairs:stair_bakedclay_".. clay[1], "bakedclay:stair_baked_clay_" .. clay[1])
 | 
								stairsplus:register_alias_all("bakedclay", clay[1],
 | 
				
			||||||
 | 
										"bakedclay", "baked_clay_" .. clay[1])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								minetest.register_alias("stairs:slab_bakedclay_".. clay[1],
 | 
				
			||||||
 | 
										"bakedclay:slab_baked_clay_" .. clay[1])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								minetest.register_alias("stairs:stair_bakedclay_".. clay[1],
 | 
				
			||||||
 | 
										"bakedclay:stair_baked_clay_" .. clay[1])
 | 
				
			||||||
 | 
							end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						-- stairs redo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- register all stair types for stairs redo
 | 
					 | 
				
			||||||
	elseif stairs_mod and stairs.mod then
 | 
						elseif stairs_mod and stairs.mod then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		stairs.register_all("bakedclay_" .. clay[1], "bakedclay:" .. clay[1],
 | 
							stairs.register_all("bakedclay_" .. clay[1], "bakedclay:" .. clay[1],
 | 
				
			||||||
			{cracky = 3},
 | 
								{cracky = 3},
 | 
				
			||||||
			{"baked_clay_" .. clay[1] .. ".png"},
 | 
								{"baked_clay_" .. clay[1] .. ".png"},
 | 
				
			||||||
			clay[2] .. " Baked Clay",
 | 
								clay[2] .. " " .. S("Baked Clay"),
 | 
				
			||||||
			default.node_sound_stone_defaults())
 | 
								default.node_sound_stone_defaults())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- register stair and slab using default stairs
 | 
						-- default stairs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	elseif stairs_mod then
 | 
						elseif stairs_mod then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		stairs.register_stair_and_slab("bakedclay_".. clay[1], "bakedclay:".. clay[1],
 | 
							stairs.register_stair_and_slab("bakedclay_".. clay[1], "bakedclay:".. clay[1],
 | 
				
			||||||
			{cracky = 3},
 | 
								{cracky = 3},
 | 
				
			||||||
			{"baked_clay_" .. clay[1] .. ".png"},
 | 
								{"baked_clay_" .. clay[1] .. ".png"},
 | 
				
			||||||
			clay[2] .. " Baked Clay Stair",
 | 
								clay[2] .. " " .. S("Baked Clay Stair"),
 | 
				
			||||||
			clay[2] .. " Baked Clay Slab",
 | 
								clay[2] .. " " .. S("Baked Clay Slab"),
 | 
				
			||||||
			default.node_sound_stone_defaults())
 | 
								default.node_sound_stone_defaults())
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- register bakedclay for use in technic_cnc mod
 | 
						-- register bakedclay for use in technic_cnc mod after all mods loaded
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if techcnc_mod then
 | 
						if techcnc_mod then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		technic_cnc.register_all("bakedclay:" .. clay[1],
 | 
							minetest.register_on_mods_loaded(function()
 | 
				
			||||||
		{cracky = 3, not_in_creative_inventory = 1},
 | 
					
 | 
				
			||||||
		{"baked_clay_" .. clay[1] .. ".png"},
 | 
								technic_cnc.register_all("bakedclay:" .. clay[1],
 | 
				
			||||||
		clay[2] .. " Baked Clay")
 | 
									{cracky = 3, not_in_creative_inventory = 1},
 | 
				
			||||||
 | 
									{"baked_clay_" .. clay[1] .. ".png"},
 | 
				
			||||||
 | 
									clay[2] .. " Baked Clay")
 | 
				
			||||||
 | 
							end)
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- cook clay block into white baked clay
 | 
					-- Terracotta blocks
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for _, clay in pairs(clay) do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if clay[1] ~= "natural" then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							local texture = "baked_clay_terracotta_" .. clay[1] ..".png"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							minetest.register_node("bakedclay:terracotta_" .. clay[1], {
 | 
				
			||||||
 | 
								description = clay[2] .. " " .. S("Glazed Terracotta"),
 | 
				
			||||||
 | 
								tiles = {
 | 
				
			||||||
 | 
									texture .. "",
 | 
				
			||||||
 | 
									texture .. "",
 | 
				
			||||||
 | 
									texture .. "^[transformR180",
 | 
				
			||||||
 | 
									texture .. "",
 | 
				
			||||||
 | 
									texture .. "^[transformR270",
 | 
				
			||||||
 | 
									texture .. "^[transformR90",
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
 | 
								paramtype2 = "facedir",
 | 
				
			||||||
 | 
								groups = {cracky = 3, terracotta = 1},
 | 
				
			||||||
 | 
								sounds = default.node_sound_stone_defaults(),
 | 
				
			||||||
 | 
								is_ground_content = false,
 | 
				
			||||||
 | 
								on_place = minetest.rotate_node
 | 
				
			||||||
 | 
							})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							minetest.register_craft({
 | 
				
			||||||
 | 
								type = "cooking",
 | 
				
			||||||
 | 
								output = "bakedclay:terracotta_" .. clay[1],
 | 
				
			||||||
 | 
								recipe = "bakedclay:" .. clay[1]
 | 
				
			||||||
 | 
							})
 | 
				
			||||||
 | 
						end
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					minetest.register_alias("bakedclay:terracotta_light_blue", "bakedclay:terracotta_cyan")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- cook clay block into natural baked clay
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craft({
 | 
					minetest.register_craft({
 | 
				
			||||||
	type = "cooking",
 | 
						type = "cooking",
 | 
				
			||||||
	output = "bakedclay:natural",
 | 
						output = "bakedclay:natural",
 | 
				
			||||||
	recipe = "default:clay",
 | 
						recipe = "default:clay"
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- 2x2 red bakedclay makes 16x clay brick
 | 
					-- 2x2 red baked clay makes 16x clay brick
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.register_craft( {
 | 
					minetest.register_craft( {
 | 
				
			||||||
	output = "default:clay_brick 16",
 | 
						output = "default:clay_brick 16",
 | 
				
			||||||
	recipe = {
 | 
						recipe = {
 | 
				
			||||||
		{"bakedclay:red", "bakedclay:red"},
 | 
							{"bakedclay:red", "bakedclay:red"},
 | 
				
			||||||
		{"bakedclay:red", "bakedclay:red"},
 | 
							{"bakedclay:red", "bakedclay:red"}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- register some new flowers to fill in missing dye colours
 | 
					 | 
				
			||||||
-- flower registration (borrowed from default game)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
local function add_simple_flower(name, desc, box, f_groups)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	f_groups.snappy = 3
 | 
					 | 
				
			||||||
	f_groups.flower = 1
 | 
					 | 
				
			||||||
	f_groups.flora = 1
 | 
					 | 
				
			||||||
	f_groups.attached_node = 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	minetest.register_node("bakedclay:" .. name, {
 | 
					 | 
				
			||||||
		description = desc,
 | 
					 | 
				
			||||||
		drawtype = "plantlike",
 | 
					 | 
				
			||||||
		waving = 1,
 | 
					 | 
				
			||||||
		tiles = {"baked_clay_" .. name .. ".png"},
 | 
					 | 
				
			||||||
		inventory_image = "baked_clay_" .. name .. ".png",
 | 
					 | 
				
			||||||
		wield_image = "baked_clay_" .. name .. ".png",
 | 
					 | 
				
			||||||
		sunlight_propagates = true,
 | 
					 | 
				
			||||||
		paramtype = "light",
 | 
					 | 
				
			||||||
		walkable = false,
 | 
					 | 
				
			||||||
		buildable_to = true,
 | 
					 | 
				
			||||||
		stack_max = 99,
 | 
					 | 
				
			||||||
		groups = f_groups,
 | 
					 | 
				
			||||||
		sounds = default.node_sound_leaves_defaults(),
 | 
					 | 
				
			||||||
		selection_box = {
 | 
					 | 
				
			||||||
			type = "fixed",
 | 
					 | 
				
			||||||
			fixed = box
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	})
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
local flowers = {
 | 
					 | 
				
			||||||
	{"delphinium", "Blue Delphinium", {-0.15, -0.5, -0.15, 0.15, 0.3, 0.15}, {color_cyan = 1}},
 | 
					 | 
				
			||||||
	{"thistle", "Thistle", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_magenta = 1}},
 | 
					 | 
				
			||||||
	{"lazarus", "Lazarus Bell", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_pink = 1}},
 | 
					 | 
				
			||||||
	{"mannagrass", "Reed Mannagrass", {-0.15, -0.5, -0.15, 0.15, 0.2, 0.15}, {color_dark_green = 1}},
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
for _,item in pairs(flowers) do
 | 
					 | 
				
			||||||
	add_simple_flower(unpack(item))
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-- mapgen for new flowers
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minetest.register_decoration({
 | 
					 | 
				
			||||||
	deco_type = "simple",
 | 
					 | 
				
			||||||
	place_on = {"default:dirt_with_grass"},
 | 
					 | 
				
			||||||
	sidelen = 16,
 | 
					 | 
				
			||||||
	noise_params = {
 | 
					 | 
				
			||||||
		offset = 0,
 | 
					 | 
				
			||||||
		scale = 0.004,
 | 
					 | 
				
			||||||
		spread = {x = 100, y = 100, z = 100},
 | 
					 | 
				
			||||||
		seed = 7133,
 | 
					 | 
				
			||||||
		octaves = 3,
 | 
					 | 
				
			||||||
		persist = 0.6
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	y_min = 10,
 | 
					 | 
				
			||||||
	y_max = 90,
 | 
					 | 
				
			||||||
	decoration = "bakedclay:delphinium",
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minetest.register_decoration({
 | 
					 | 
				
			||||||
	deco_type = "simple",
 | 
					 | 
				
			||||||
	place_on = {"default:dirt_with_grass", "default:dirt_with_dry_grass"},
 | 
					 | 
				
			||||||
	sidelen = 16,
 | 
					 | 
				
			||||||
	noise_params = {
 | 
					 | 
				
			||||||
		offset = 0,
 | 
					 | 
				
			||||||
		scale = 0.004,
 | 
					 | 
				
			||||||
		spread = {x = 100, y = 100, z = 100},
 | 
					 | 
				
			||||||
		seed = 7134,
 | 
					 | 
				
			||||||
		octaves = 3,
 | 
					 | 
				
			||||||
		persist = 0.6
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	y_min = 15,
 | 
					 | 
				
			||||||
	y_max = 90,
 | 
					 | 
				
			||||||
	decoration = "bakedclay:thistle",
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minetest.register_decoration({
 | 
					 | 
				
			||||||
	deco_type = "simple",
 | 
					 | 
				
			||||||
	place_on = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"},
 | 
					 | 
				
			||||||
	sidelen = 16,
 | 
					 | 
				
			||||||
	noise_params = {
 | 
					 | 
				
			||||||
		offset = 0,
 | 
					 | 
				
			||||||
		scale = 0.01,
 | 
					 | 
				
			||||||
		spread = {x = 100, y = 100, z = 100},
 | 
					 | 
				
			||||||
		seed = 7135,
 | 
					 | 
				
			||||||
		octaves = 3,
 | 
					 | 
				
			||||||
		persist = 0.6
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	y_min = 1,
 | 
					 | 
				
			||||||
	y_max = 90,
 | 
					 | 
				
			||||||
	decoration = "bakedclay:lazarus",
 | 
					 | 
				
			||||||
	spawn_by = "default:jungletree",
 | 
					 | 
				
			||||||
	num_spawn_by = 1,
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
minetest.register_decoration({
 | 
					 | 
				
			||||||
	deco_type = "simple",
 | 
					 | 
				
			||||||
	place_on = {"default:dirt_with_grass", "default:sand"},
 | 
					 | 
				
			||||||
	sidelen = 16,
 | 
					 | 
				
			||||||
	noise_params = {
 | 
					 | 
				
			||||||
		offset = 0,
 | 
					 | 
				
			||||||
		scale = 0.009,
 | 
					 | 
				
			||||||
		spread = {x = 100, y = 100, z = 100},
 | 
					 | 
				
			||||||
		seed = 7136,
 | 
					 | 
				
			||||||
		octaves = 3,
 | 
					 | 
				
			||||||
		persist = 0.6
 | 
					 | 
				
			||||||
	},
 | 
					 | 
				
			||||||
	y_min = 1,
 | 
					 | 
				
			||||||
	y_max = 15,
 | 
					 | 
				
			||||||
	decoration = "bakedclay:mannagrass",
 | 
					 | 
				
			||||||
	spawn_by = "group:water",
 | 
					 | 
				
			||||||
	num_spawn_by = 1,
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-- add lucky blocks
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if minetest.get_modpath("lucky_block") then
 | 
					 | 
				
			||||||
local p = "bakedclay:"
 | 
					 | 
				
			||||||
lucky_block:add_blocks({
 | 
					 | 
				
			||||||
	{"dro", {"bakedclay:"}, 10, true},
 | 
					 | 
				
			||||||
	{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
 | 
					 | 
				
			||||||
		p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
 | 
					 | 
				
			||||||
		p.."pink", p.."red", p.."violet", p.."white", p.."yellow", p.."natural"}, 0},
 | 
					 | 
				
			||||||
	{"fal", {p.."black", p.."blue", p.."brown", p.."cyan", p.."dark_green",
 | 
					 | 
				
			||||||
		p.."dark_grey", p.."green", p.."grey", p.."magenta", p.."orange",
 | 
					 | 
				
			||||||
		p.."pink", p.."red", p.."violet", p.."white", p.."yellow", p.."natural"}, 0, true},
 | 
					 | 
				
			||||||
	{"dro", {p.."delphinium"}, 5},
 | 
					 | 
				
			||||||
	{"dro", {p.."lazarus"}, 5},
 | 
					 | 
				
			||||||
	{"dro", {p.."mannagrass"}, 5},
 | 
					 | 
				
			||||||
	{"dro", {p.."thistle"}, 6},
 | 
					 | 
				
			||||||
	{"flo", 5, {p.."natural", p.."black", p.."blue", p.."brown", p.."cyan",
 | 
					 | 
				
			||||||
		p.."dark_green", p.."dark_grey", p.."green", p.."grey", p.."magenta",
 | 
					 | 
				
			||||||
		p.."orange", p.."pink", p.."red", p.."violet", p.."white", p.."yellow"}, 2},
 | 
					 | 
				
			||||||
	{"nod", "default:chest", 0, {
 | 
					 | 
				
			||||||
		{name = p.."natural", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."black", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."blue", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."brown", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."cyan", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."dark_green", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."dark_grey", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."green", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."grey", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."magenta", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."orange", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."pink", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."red", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."violet", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."white", max = 30},
 | 
					 | 
				
			||||||
		{name = p.."yellow", max = 30},
 | 
					 | 
				
			||||||
	}},
 | 
					 | 
				
			||||||
})
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-- colored clay compatibility
 | 
					-- colored clay compatibility
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if minetest.settings:get_bool("colored_clay_compatibility") == true then
 | 
					if minetest.settings:get_bool("colored_clay_compatibility") == true then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local cc = {
 | 
						local cc = {
 | 
				
			||||||
	{"black", "black"},
 | 
							{"black", "black"},
 | 
				
			||||||
	{"blue", "blue"},
 | 
							{"blue", "blue"},
 | 
				
			||||||
	{"bright", "natural"},
 | 
							{"bright", "natural"},
 | 
				
			||||||
	{"brown", "brown"},
 | 
							{"brown", "brown"},
 | 
				
			||||||
	{"cyan", "cyan"},
 | 
							{"cyan", "cyan"},
 | 
				
			||||||
	{"dark_green", "dark_green"},
 | 
							{"dark_green", "dark_green"},
 | 
				
			||||||
	{"dark_grey", "dark_grey"},
 | 
							{"dark_grey", "dark_grey"},
 | 
				
			||||||
	{"green", "green"},
 | 
							{"green", "green"},
 | 
				
			||||||
	{"grey", "grey"},
 | 
							{"grey", "grey"},
 | 
				
			||||||
	{"hardened", "natural"},
 | 
							{"hardened", "natural"},
 | 
				
			||||||
	{"magenta", "magenta"},
 | 
							{"magenta", "magenta"},
 | 
				
			||||||
	{"orange", "orange"},
 | 
							{"orange", "orange"},
 | 
				
			||||||
	{"pink", "pink"},
 | 
							{"pink", "pink"},
 | 
				
			||||||
	{"red", "red"},
 | 
							{"red", "red"},
 | 
				
			||||||
	{"violet", "violet"},
 | 
							{"violet", "violet"},
 | 
				
			||||||
	{"white", "white"},
 | 
							{"white", "white"},
 | 
				
			||||||
	{"yellow", "yellow"}
 | 
							{"yellow", "yellow"}
 | 
				
			||||||
}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for n = 1, #cc do
 | 
						for n = 1, #cc do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	local nod1 = "colored_clay:" .. cc[n][1]
 | 
							local nod1 = "colored_clay:" .. cc[n][1]
 | 
				
			||||||
	local nod2 = "bakedclay:" .. cc[n][2]
 | 
							local nod2 = "bakedclay:" .. cc[n][2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	minetest.register_alias(nod1, nod2)
 | 
							minetest.register_alias(nod1, nod2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if stairsplus_mod then
 | 
							if stairsplus_mod then
 | 
				
			||||||
		stairsplus:register_alias_all("colored_clay", cc[n][1], "bakedclay", cc[n][2])
 | 
								stairsplus:register_alias_all("colored_clay", cc[n][1], "bakedclay", cc[n][2])
 | 
				
			||||||
 | 
							end
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- get mod path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local path = minetest.get_modpath("bakedclay")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- add new flowers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dofile(path .. "/flowers.lua")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- add lucky blocks if mod present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if minetest.get_modpath("lucky_block") then
 | 
				
			||||||
 | 
						dofile(path .. "/lucky_block.lua")
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
minetest.log("action", "[MOD] Baked Clay loaded.")
 | 
					print ("[MOD] Baked Clay loaded")
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								license.txt
									
									
									
									
									
								
							
							
						
						@@ -19,3 +19,18 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
				
			|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
					LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
				
			||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 | 
					OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 | 
				
			||||||
THE SOFTWARE.
 | 
					THE SOFTWARE.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Textures by TenPlus1 (CC0) unless listed below
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Textures by Amara2_MK (Creative Commons)
 | 
				
			||||||
 | 
					https://www.curseforge.com/minecraft/texture-packs/glazed-terracotta-revamp
 | 
				
			||||||
 | 
					  baked_clay_terracotta*.png
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Missing gray, light gray, black and green textures re-coloured by Firefox.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Textures by Timbits (CC-BY-SA 3.0)
 | 
				
			||||||
 | 
					  baked_clay_lazarus.png
 | 
				
			||||||
 | 
					  baked_clay_delphinium.png
 | 
				
			||||||
 | 
					  baked_clay_mannagrass.png
 | 
				
			||||||
 | 
					  baked_clay_thistle.png
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										25
									
								
								locale/bakedclay.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					# textdomain: bakedclay
 | 
				
			||||||
 | 
					Blue Delphinium=Delfinio Azul
 | 
				
			||||||
 | 
					Thistle=Cardo
 | 
				
			||||||
 | 
					Lazarus Bell=Campana Lázaro
 | 
				
			||||||
 | 
					Reed Mannagrass=Césped de caña
 | 
				
			||||||
 | 
					Natural=Natural
 | 
				
			||||||
 | 
					White=Blanco
 | 
				
			||||||
 | 
					Grey=Gris
 | 
				
			||||||
 | 
					Black=Negro
 | 
				
			||||||
 | 
					Red=Rojo
 | 
				
			||||||
 | 
					Yellow=Amarillo
 | 
				
			||||||
 | 
					Green=Verde
 | 
				
			||||||
 | 
					Cyan=Celeste
 | 
				
			||||||
 | 
					Blue=Azul
 | 
				
			||||||
 | 
					Magenta=Magenta
 | 
				
			||||||
 | 
					Orange=Naranja
 | 
				
			||||||
 | 
					Violet=Violeta
 | 
				
			||||||
 | 
					Brown=Cáfe
 | 
				
			||||||
 | 
					Pink=Rosa
 | 
				
			||||||
 | 
					Dark Grey=Gris Oscuro
 | 
				
			||||||
 | 
					Dark Green=Verde Oscuro
 | 
				
			||||||
 | 
					Baked Clay=Barro Cocido
 | 
				
			||||||
 | 
					Baked Clay Stair=Escalera de Barro Cocido
 | 
				
			||||||
 | 
					Baked Clay Slab=Losa de Barro Cocido
 | 
				
			||||||
 | 
					Glazed Terracotta=Terracota esmaltada.
 | 
				
			||||||
							
								
								
									
										27
									
								
								locale/bakedclay.uk.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,27 @@
 | 
				
			|||||||
 | 
					# textdomain: bakedclay
 | 
				
			||||||
 | 
					Adds the ability to bake clay into blocks and colour them with dye.=Додає можливість випалювати глину в блоки та фарбувати їх барвниками.
 | 
				
			||||||
 | 
					Bake clay blocks and colour with dye, also has Terracotta designs.=Випалюйте глиняні блоки та фарбуйте їх барвниками, а також виготовляйте теракотові візерунки.
 | 
				
			||||||
 | 
					Blue Delphinium=Синій дельфініум
 | 
				
			||||||
 | 
					Thistle=Будяк
 | 
				
			||||||
 | 
					Lazarus Bell=Дзвіночок Лазаря
 | 
				
			||||||
 | 
					Reed Mannagrass=Лепешняк великий
 | 
				
			||||||
 | 
					Natural=Натуральна
 | 
				
			||||||
 | 
					White=Біла
 | 
				
			||||||
 | 
					Grey=Сіра
 | 
				
			||||||
 | 
					Black=Чорна
 | 
				
			||||||
 | 
					Red=Червона
 | 
				
			||||||
 | 
					Yellow=Жовта
 | 
				
			||||||
 | 
					Green=Зелена
 | 
				
			||||||
 | 
					Cyan=Блакитна
 | 
				
			||||||
 | 
					Blue=Синя
 | 
				
			||||||
 | 
					Magenta=Пурпурна
 | 
				
			||||||
 | 
					Orange=Помаранчева
 | 
				
			||||||
 | 
					Violet=Фіолетова
 | 
				
			||||||
 | 
					Brown=Коричнева
 | 
				
			||||||
 | 
					Pink=Рожева
 | 
				
			||||||
 | 
					Dark Grey=Темно-сіра
 | 
				
			||||||
 | 
					Dark Green=Темно-зелена
 | 
				
			||||||
 | 
					Baked Clay=Випалена глина
 | 
				
			||||||
 | 
					Baked Clay Stair=випалена глина (сходи)
 | 
				
			||||||
 | 
					Baked Clay Slab=випалена глина (плита)
 | 
				
			||||||
 | 
					Glazed Terracotta=Глазурована теракота
 | 
				
			||||||
							
								
								
									
										25
									
								
								locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					# textdomain: bakedclay
 | 
				
			||||||
 | 
					Blue Delphinium=
 | 
				
			||||||
 | 
					Thistle=
 | 
				
			||||||
 | 
					Lazarus Bell=
 | 
				
			||||||
 | 
					Reed Mannagrass=
 | 
				
			||||||
 | 
					Natural=
 | 
				
			||||||
 | 
					White=
 | 
				
			||||||
 | 
					Grey=
 | 
				
			||||||
 | 
					Black=
 | 
				
			||||||
 | 
					Red=
 | 
				
			||||||
 | 
					Yellow=
 | 
				
			||||||
 | 
					Green=
 | 
				
			||||||
 | 
					Cyan=
 | 
				
			||||||
 | 
					Blue=
 | 
				
			||||||
 | 
					Magenta=
 | 
				
			||||||
 | 
					Orange=
 | 
				
			||||||
 | 
					Violet=
 | 
				
			||||||
 | 
					Brown=
 | 
				
			||||||
 | 
					Pink=
 | 
				
			||||||
 | 
					Dark Grey=
 | 
				
			||||||
 | 
					Dark Green=
 | 
				
			||||||
 | 
					Baked Clay=
 | 
				
			||||||
 | 
					Baked Clay Stair=
 | 
				
			||||||
 | 
					Baked Clay Slab=
 | 
				
			||||||
 | 
					Glazed Terracotta=
 | 
				
			||||||
							
								
								
									
										65
									
								
								lucky_block.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,65 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					-- helpers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local p = "bakedclay:"
 | 
				
			||||||
 | 
					local p2 = "bakedclay:terracotta_"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					-- add lucky blocks
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					lucky_block:add_blocks({
 | 
				
			||||||
 | 
						{"dro", {"bakedclay:"}, 10, true},
 | 
				
			||||||
 | 
						{"fal", {
 | 
				
			||||||
 | 
							p .. "black", p .. "blue", p .. "brown", p .. "cyan", p .. "dark_green",
 | 
				
			||||||
 | 
							p .. "dark_grey", p .. "green", p .. "grey", p .. "magenta", p .. "orange",
 | 
				
			||||||
 | 
							p .. "pink", p .. "red", p .. "violet", p .. "white", p .. "yellow", p .. "natural"
 | 
				
			||||||
 | 
						}, 0},
 | 
				
			||||||
 | 
						{"fal", {
 | 
				
			||||||
 | 
							p .. "black", p .. "blue", p .. "brown", p .. "cyan", p .. "dark_green",
 | 
				
			||||||
 | 
							p .. "dark_grey", p .. "green", p .. "grey", p .. "magenta", p .. "orange",
 | 
				
			||||||
 | 
							p .. "pink", p .. "red", p .. "violet", p .. "white", p .. "yellow", p .. "natural"
 | 
				
			||||||
 | 
						}, 0, true},
 | 
				
			||||||
 | 
						{"dro", {p .. "delphinium"}, 5},
 | 
				
			||||||
 | 
						{"dro", {p .. "lazarus"}, 5},
 | 
				
			||||||
 | 
						{"dro", {p .. "mannagrass"}, 5},
 | 
				
			||||||
 | 
						{"dro", {p .. "thistle"}, 6},
 | 
				
			||||||
 | 
						{"flo", 5, {
 | 
				
			||||||
 | 
							p .. "natural", p .. "black", p .. "blue", p .. "brown", p .. "cyan",
 | 
				
			||||||
 | 
							p .. "dark_green", p .. "dark_grey", p .. "green", p .. "grey", p .. "magenta",
 | 
				
			||||||
 | 
							p .. "orange", p .. "pink", p .. "red", p .. "violet", p .. "white", p .. "yellow"
 | 
				
			||||||
 | 
						}, 2},
 | 
				
			||||||
 | 
						{"nod", "default:chest", 0, {
 | 
				
			||||||
 | 
							{name = p .. "natural", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "black", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "blue", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "brown", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "cyan", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "dark_green", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "dark_grey", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "green", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "grey", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "magenta", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "orange", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "pink", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "red", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "violet", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "white", max = 20},
 | 
				
			||||||
 | 
							{name = p .. "yellow", max = 20}
 | 
				
			||||||
 | 
						}},
 | 
				
			||||||
 | 
						{"nod", "default:chest", 0, {
 | 
				
			||||||
 | 
							{name = p2 .. "black", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "blue", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "brown", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "cyan", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "dark_green", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "dark_grey", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "green", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "grey", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "magenta", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "orange", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "pink", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "red", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "violet", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "white", max = 20},
 | 
				
			||||||
 | 
							{name = p2 .. "yellow", max = 20}
 | 
				
			||||||
 | 
						}}
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
							
								
								
									
										6
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						@@ -1 +1,5 @@
 | 
				
			|||||||
name = bakedclay
 | 
					name = bakedclay
 | 
				
			||||||
 | 
					description = Bake clay blocks and colour with dye, also has Terracotta designs.
 | 
				
			||||||
 | 
					depends = default
 | 
				
			||||||
 | 
					optional_depends = stairs, moreblocks, lucky_block, flowerpot
 | 
				
			||||||
 | 
					min_minetest_version = 5.0
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								screenshot.png
									
									
									
									
									
								
							
							
						
						| 
		 Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 81 KiB  | 
@@ -1,2 +1,5 @@
 | 
				
			|||||||
#    Registers compatibility aliases with the older colored_clay mod
 | 
					#    Registers compatibility aliases with the older colored_clay mod
 | 
				
			||||||
colored_clay_compatibility (Colored Clay Compatibility) bool false
 | 
					colored_clay_compatibility (Colored Clay Compatibility) bool false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#    Registers compatibility aliases in older worlds for StairsPlus mod
 | 
				
			||||||
 | 
					stairsplus_clay_compatibility (StairsPlus Stair Compatibility) bool true
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_black.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 627 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_blue.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 573 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_brown.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 520 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_cyan.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 591 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_dark_green.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 664 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_dark_grey.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 534 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_green.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 746 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_grey.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 659 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_light_blue.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 589 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_magenta.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 490 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_orange.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 530 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_pink.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 520 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_red.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 385 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_violet.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 641 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_white.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 660 B  | 
							
								
								
									
										
											BIN
										
									
								
								textures/baked_clay_terracotta_yellow.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 569 B  |