aboutsummaryrefslogtreecommitdiff
path: root/textures
Commit message (Expand)AuthorAge
* Textures: New 'smoke puff' texture from TNT modparamat2016-10-04
* Main menu, lua_api.txt: Fix mod/texture pack screenshot size issuesWuzzy2016-07-27
* Textures: Replace menu background fallback dirt_bg.png with empty sky textureparamat2016-04-21
* Mainmenu: Unify favorite servers with main serverlistkilbith2016-04-20
* Minimap: revert change from RGBA to IndexedAuke Kok2016-04-11
* Minimap: "North" indicator arrow for circle minimapAuke Kok2016-04-08
* Update menu header imageJean-Patrick Guerrero2016-03-25
* Resize object_marker_red.png to 16x16ShadowNinja2016-02-28
* Minimap: show player markersRealBadAngel2016-02-19
* Cleanup selection mesh code, add shaders for halo and selection boxesRealBadAngel2016-02-08
* Android: Implement Autohiding button bars to cleanup screenSapier2015-12-18
* Compress textures and fontsMaksim Gamarnik2015-10-15
* Fix relief mapping issuesRealBadAngel2015-07-16
* Add minimap featureRealBadAngel2015-06-27
* Use frame instead of words 'no screenshot available'rubenwardy2015-06-24
* Add extra buttons to Android GUI. All icons are licensed by freepik.com under...Kodexky2014-12-30
* Regenerate server_flags_creative.png from XCFKahrl2014-12-21
* Fix background of creative icon (was black, now transparent)Kahrl2014-12-14
* Display serverlist flags as iconsKahrl2014-12-13
* Fix MSVC compiling warnings and remove an unused textureSmallJoker2014-12-12
* Change default halo.png for better visibility.RealBadAngel2014-09-19
* Node highlighting.RealBadAngel2014-09-17
* Add support for Android 2.3+sapier2014-06-29
* Fix regression dirt texture not beeing default in non cloud menusapier2014-06-14
* Shaders rework.RealBadAngel2013-12-03
* Make freetype usage configureable by a settingPilzAdam2013-08-04
* Add texture pack selection to main menuNovatux2013-08-04
* Replace C++ mainmenu by formspec powered onesapier2013-07-02
* Compress texturesDavid Gumberg2013-06-18
* Higher resolution menuheaderPilzAdam2013-05-25
* Add menu_header.png and remove old, unused texturesPilzAdam2013-05-20
* unkn own block -> unkn own nodekhonkhortisan2013-04-05
* Add cloud menu background by Krisi, configurable with the menu_clouds option.ShadowNinja2013-03-13
* Update menulogo.pngIlya Zhuravlev2013-03-10
* Support custom textures installed as /textures/all/*.pngPerttu Ahola2012-04-07
* Flatten share/ and user/ in the source and for the RUN_IN_PLACE buildPerttu Ahola2012-03-20
id='n323' href='#n323'>323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121
--[[
More Blocks: node definitions

Copyright (c) 2011-2017 Hugo Locurcio and contributors.
              2018-2020 Och_Noe 
Licensed under the zlib license. See LICENSE.md for more information.
--]]

local S = moreblocks.intllib

local sound_dirt = default.node_sound_dirt_defaults()
local sound_wood = default.node_sound_wood_defaults()
local sound_stone = default.node_sound_stone_defaults()
local sound_glass = default.node_sound_glass_defaults()
local sound_leaves = default.node_sound_leaves_defaults()
local sound_gravel = default.node_sound_gravel_defaults()

-- Don't break on 0.4.14 and earlier.
local sound_metal = (default.node_sound_metal_defaults
		and default.node_sound_metal_defaults() or sound_stone)

local function tile_tiles(name)
	local tex = "moreblocks_" ..name.. ".png"
	return {tex, tex, tex, tex, tex.. "^[transformR90", tex.. "^[transformR90"}
end

local box_slope = {
	type = "fixed",
	fixed = {
		{-0.5,  -0.5,  -0.5, 0.5, -0.25, 0.5},
		{-0.5, -0.25, -0.25, 0.5,     0, 0.5},
		{-0.5,     0,     0, 0.5,  0.25, 0.5},
		{-0.5,  0.25,  0.25, 0.5,   0.5, 0.5}
	}
}

local box_slope_half = {
	type = "fixed",
	fixed = {
		{-0.5, -0.5,   -0.5,  0.5, -0.375, 0.5},
		{-0.5, -0.375, -0.25, 0.5, -0.25,  0.5},
		{-0.5, -0.25,  0,    0.5, -0.125, 0.5},
		{-0.5, -0.125, 0.25, 0.5,  0,     0.5},
	}
}

local box_slope_half_raised = {
	type = "fixed",
	fixed = {
		{-0.5, -0.5,   -0.5,  0.5, 0.125, 0.5},
		{-0.5, 0.125, -0.25, 0.5, 0.25,  0.5},
		{-0.5, 0.25,  0,    0.5, 0.375, 0.5},
		{-0.5, 0.375, 0.25, 0.5,  0.5,     0.5},
	}
}


local box_slope_third = {
	type = "fixed",
	fixed = {
		{-0.5, -0.5,   -0.5,  0.5, -0.417 , 0.5},
		{-0.5, -0.417, -0.25, 0.5, -0.333 , 0.5},
		{-0.5, -0.333,  0,    0.5, -0.250 , 0.5},
		{-0.5, -0.250,  0.25, 0.5, -0.167, 0.5},
	}
}

local box_slope_third_raised = {
	type = "fixed",
	fixed = {
		{-0.5, -0.5,   -0.5,  0.5, -0.083 , 0.5},
		{-0.5, -0.083, -0.25, 0.5,  0     , 0.5},
		{-0.5,  0    ,  0,    0.5,  0.083 , 0.5},
		{-0.5,  0.083,  0.25, 0.5,  0.167, 0.5},
	}
}

local box_slope_third_top = {
	type = "fixed",
	fixed = {
		{-0.5, -0.5,   -0.5,  0.5, 0.250, 0.5},
		{-0.5,  0.250, -0.25, 0.5, 0.333, 0.5},
		{-0.5,  0.333,  0,    0.5, 0.417, 0.5},
		{-0.5,  0.417,  0.25, 0.5, 0.5  , 0.5},
	}
}

local minimal_slopes_defs = {
        [""] = {
                mesh = "moreblocks_slope.obj",
                collision_box = box_slope,
                selection_box = box_slope,

        },
        ["_half"] = {
                mesh = "moreblocks_slope_half.obj",
                collision_box = box_slope_half,
                selection_box = box_slope_half,
        },
        ["_half_raised"] = {
                mesh = "moreblocks_slope_half_raised.obj",
                collision_box = box_slope_half_raised,
                selection_box = box_slope_half_raised,
        },

     }


local function copytable(orig)
        local orig_type = type(orig)
        local copy
        if orig_type == 'table' then
                copy = {}
                for orig_key, orig_value in next, orig, nil do
                        copy[copytable(orig_key)] = copytable(orig_value)
                end
                setmetatable(copy, copytable(getmetatable(orig)))
        else
                copy = orig
        end
        return copy
end



local function register_minimal_shapes(modname, subname, recipeitem, fields)
   local defs = copytable(minimal_slopes_defs)
   local desc = S("%s Slope"):format(fields.description)
   for alternate, def in pairs(defs) do
      for k, v in pairs(fields) do
	 def[k] = v
      end
      def.drawtype = "mesh"
      def.paramtype = "light"
      def.paramtype2 = def.paramtype2 or "facedir"
      def.on_place = minetest.rotate_node
      def.description = desc
      def.use_texture_alpha = fields.use_texture_alpha
      def.groups = def.groups -- stairsplus:prepare_groups(fields.groups)
      if fields.drop and not (type(fields.drop) == "table") then
	 def.drop = modname.. ":slope_" ..fields.drop..alternate
      end
      minetest.register_node(":" ..modname.. ":slope_" ..subname..alternate, def)
   end
   
   
   minetest.register_craft({
			      recipe = {
				 { "","","" },
				 { "","",recipeitem, },
				 { "", recipeitem, recipeitem },
			      },
			      output = modname .. ":slope_" .. subname
			   })

   minetest.register_craft({
			      recipe = {
				 { "","","" },
				 { "","","", },
				 { "", recipeitem, recipeitem },
			      },
			      output = modname .. ":slope_" .. subname .. "_half 12"
			   })

   minetest.register_craft({
			      recipe = {
				 { "","",recipeitem, },
				 { "","","" },
				 { "", recipeitem, recipeitem },
			      },
			      output = modname .. ":slope_" .. subname .. "_half_raised 4"
			   })

   
   minetest.register_craft({
			      type = "shapeless",
			      output = recipeitem,
			      recipe =  {modname .. ":slope_" .. subname, modname .. ":slope_" .. subname},
			   })
   
   minetest.register_craft({
			      type = "shapeless",
			      output = recipeitem,
			      recipe =  {modname .. ":slope_" .. subname .. "_half", modname .. ":slope_" .. subname .. "_half_raised"},
			   })
   




   -- 100% slope     1 node
   

   --  50% slope     2 nodes


   --  50% slab      1 node

   
end


local nodes = {
	["wood_tile"] = {
		description = S("Wooden Tile"),
		groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^moreblocks_wood_tile.png",
		"default_wood.png^moreblocks_wood_tile.png",
		"default_wood.png^moreblocks_wood_tile.png",
		"default_wood.png^moreblocks_wood_tile.png",
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
		"default_wood.png^moreblocks_wood_tile.png^[transformR90"},
		sounds = sound_wood,
	},
	["wood_tile_flipped"] = {
		description = S("Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90",
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
		"default_wood.png^moreblocks_wood_tile.png^[transformR90",
		"default_wood.png^moreblocks_wood_tile.png^[transformR180",
		"default_wood.png^moreblocks_wood_tile.png^[transformR180"},
		sounds = sound_wood,
		no_stairs = true,
	},
	["wood_tile_center"] = {
		description = S("Centered Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^moreblocks_wood_tile_center.png"},
		sounds = sound_wood,
	},
	["wood_tile_full"] = {
		description = S("Full Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = tile_tiles("wood_tile_full"),
		sounds = sound_wood,
	},
	["wood_tile_up"] = {
		description = S("Upwards Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^moreblocks_wood_tile_up.png"},
		sounds = sound_wood,
		no_stairs = true,
	},
	["wood_tile_down"] = {
		description = S("Downwards Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_up.png^[transformR180"},
		sounds = sound_wood,
		no_stairs = true,
	},
	["wood_tile_left"] = {
		description = S("Leftwards Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_up.png^[transformR270"},
		sounds = sound_wood,
		no_stairs = true,
	},
	["wood_tile_right"] = {
		description = S("Rightwards Wooden Tile"),
		groups = {wood = 1, snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
		tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_up.png^[transformR90"},
		sounds = sound_wood,
		no_stairs = true,
	},
	["circle_stone_bricks"] = {
		description = S("Circle Stone Bricks"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["grey_bricks"] = {
		description = S("Stone Bricks"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["coal_stone_bricks"] = {
		description = S("Coal Stone Bricks"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["iron_stone_bricks"] = {
		description = S("Iron Stone Bricks"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["stone_tile"] = {
		description = S("Stone Tile"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["split_stone_tile"] = {
		description = S("Split Stone Tile"),
		tiles = {"moreblocks_split_stone_tile_top.png",
			"moreblocks_split_stone_tile.png"},
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["split_stone_tile_alt"] = {
		description = S("Checkered Stone Tile"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["tar"] = {
		description = S("Tar"),
		groups = {cracky = 2, tar_block = 1},
		sounds = sound_stone,
	},
        ["dirt_compressed"] = {
                description = S("Compressed Dirt"),
                groups = {crumbly=2},
                is_ground_content = false,
                sounds = sound_dirt,
        },
	["cobble_compressed"] = {
		description = S("Compressed Cobblestone"),
		groups = {cracky = 1},
		sounds = sound_stone,
	},
        ["cobble_condensed"] = {
           description = "Condensed Cobblestone",
           tiles = {"moreblocks_cobble_compressed.png^[colorize:black:255]"},
           is_ground_content = false,
           groups = {cracky = 1, stone = 2},
           stack_max = 999,
           sounds = default.node_sound_stone_defaults(),
        },
	["plankstone"] = {
		description = S("Plankstone"),
		groups = {cracky = 3},
		tiles = tile_tiles("plankstone"),
		sounds = sound_stone,
	},
	["iron_glass"] = {
		description = S("Iron Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_iron_glass.png", "moreblocks_iron_glass_detail.png"},
		--tiles = {"moreblocks_iron_glass.png"},
                one_texture = true,
		paramtype = "light",
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["coal_glass"] = {
		description = S("Coal Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_coal_glass.png", "moreblocks_coal_glass_detail.png"},
		--tiles = {"moreblocks_coal_glass.png"},
                one_texture = true,
		paramtype = "light",
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["clean_glass"] = {
		description = S("Clean Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_clean_glass.png", "moreblocks_clean_glass_detail.png"},
		-- tiles = {"moreblocks_clean_glass.png"},
                one_texture = true,
		paramtype = "light",
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["cactus_brick"] = {
		description = S("Cactus Brick"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["cactus_checker"] = {
		description = S("Cactus Checker"),
		groups = {cracky = 3},
		tiles = {"default_stone.png^moreblocks_cactus_checker.png",
		"default_stone.png^moreblocks_cactus_checker.png",
		"default_stone.png^moreblocks_cactus_checker.png",
		"default_stone.png^moreblocks_cactus_checker.png",
		"default_stone.png^moreblocks_cactus_checker.png^[transformR90",
		"default_stone.png^moreblocks_cactus_checker.png^[transformR90"},
		sounds = sound_stone,
	},
	["empty_bookshelf"] = {
		description = S("Empty Bookshelf"),
		tiles = {"default_wood.png", "default_wood.png",
			"moreblocks_empty_bookshelf.png"},
		groups = {snappy = 2, choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
		sounds = sound_wood,
		furnace_burntime = 15,
		no_stairs = true,
	},
	["coal_stone"] = {
		description = S("Coal Stone"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["iron_stone"] = {
		description = S("Iron Stone"),
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["coal_checker"] = {
		description = S("Coal Checker"),
		tiles = {"default_stone.png^moreblocks_coal_checker.png",
		"default_stone.png^moreblocks_coal_checker.png",
		"default_stone.png^moreblocks_coal_checker.png",
		"default_stone.png^moreblocks_coal_checker.png",
		"default_stone.png^moreblocks_coal_checker.png^[transformR90",
		"default_stone.png^moreblocks_coal_checker.png^[transformR90"},
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["iron_checker"] = {
		description = S("Iron Checker"),
		tiles = {"default_stone.png^moreblocks_iron_checker.png",
		"default_stone.png^moreblocks_iron_checker.png",
		"default_stone.png^moreblocks_iron_checker.png",
		"default_stone.png^moreblocks_iron_checker.png",
		"default_stone.png^moreblocks_iron_checker.png^[transformR90",
		"default_stone.png^moreblocks_iron_checker.png^[transformR90"},
		groups = {cracky = 3},
		sounds = sound_stone,
	},
	["trap_stone"] = {
		description = S("Trap Stone"),
		walkable = false,
		groups = {cracky = 3},
		sounds = sound_stone,
		no_stairs = true,
	},
        ["trap_desert_stone"] = {
                description = S("Trap Desert Stone"),
                drawtype = "glasslike_framed",
                tiles = {"default_desert_stone.png^moreblocks_trap_box.png"},
                walkable = false,
                groups = {cracky = 3},
                paramtype = "light",
                is_ground_content = false,
                sounds = sound_stone,
                no_stairs = true,
        },
	["trap_glass"] = {
		description = S("Trap Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_trap_glass.png", "default_glass_detail.png"},
		--tiles = {"moreblocks_trap_glass.png"},
		paramtype = "light",
		sunlight_propagates = true,
		walkable = false,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
		no_stairs = true,
	},
        ["trap_obsidian_glass"] = {
                description = S("Trap Obsidian Glass"),
                drawtype = "glasslike_framed_optional",
                tiles = {"default_obsidian_glass.png^moreblocks_trap_box_glass.png", "default_obsidian_glass_detail.png"},
                paramtype = "light",
                sunlight_propagates = true,
                is_ground_content = false,
                walkable = false,
                groups = {cracky = 3, oddly_breakable_by_hand = 3},
                sounds = sound_glass,
                no_stairs = true,
        },
        ["trap_obsidian"] = {
                description = S("Trap Obsidian"),
                drawtype = "glasslike_framed",
                tiles = {"default_obsidian.png^moreblocks_trap_box.png"},
                walkable = false,
                groups = {cracky = 1, level = 2},
                paramtype = "light",
                is_ground_content = false,
                sounds = sound_stone,
                no_stairs = true,
        },
        ["trap_sandstone"] = {
                description = S("Trap Sandstone"),
                drawtype = "glasslike_framed",
                tiles = {"default_sandstone.png^moreblocks_trap_box.png"},
                walkable = false,
                groups = {crumbly = 1, cracky = 3},
                paramtype = "light",
                is_ground_content = false,
                sounds = sound_stone,
                no_stairs = true,
        },
	["all_faces_tree"] = {
		description = S("All-faces Tree"),
		tiles = {"default_tree_top.png"},
		groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
		sounds = sound_wood,
		furnace_burntime = 30,
	},
	["all_faces_jungle_tree"] = {
		description = S("All-faces Jungle Tree"),
		tiles = {"default_jungletree_top.png"},
		groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
		sounds = sound_wood,
		furnace_burntime = 30,
	},
        ["all_faces_pine_tree"] = {
                description = S("All-faces Pine Tree"),
                tiles = {"default_pine_tree_top.png"},
                groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
                sounds = sound_wood,
                furnace_burntime = 26,
        },
        ["all_faces_acacia_tree"] = {
                description = S("All-faces Acacia Tree"),
                tiles = {"default_acacia_tree_top.png"},
                groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
                sounds = sound_wood,
                furnace_burntime = 34,
        },
        ["all_faces_aspen_tree"] = {
                description = S("All-faces Aspen Tree"),
                tiles = {"default_aspen_tree_top.png"},
                groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
                sounds = sound_wood,
                furnace_burntime = 22,
        },
	["glow_glass"] = {
		description = S("Glow Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_glow_glass.png", "moreblocks_glow_glass_detail.png"},
		-- tiles = {"moreblocks_glow_glass.png"},
                one_texture = true,
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 11,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["trap_glow_glass"] = {
		description = S("Trap Glow Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_trap_glass.png", "moreblocks_glow_glass_detail.png"},
		-- tiles = {"moreblocks_trap_glass.png"},
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 11,
		walkable = false,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
		no_stairs = true,
	},
	["super_glow_glass"] = {
		description = S("Super Glow Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"},
		-- tiles = {"moreblocks_super_glow_glass.png"},
		-- tiles = {"default_glass.png^[colorize:#FFFF78"},
                one_texture = true,
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 14,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["dim_glow_glass"] = {
		description = S("Dim Glow Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_dim_glow_glass.png"},
		-- tiles = {"default_glass.png^[colorize:#FFFF78"},
                one_texture = true,                
		use_texture_alpha = true,
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 5,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["low_glow_glass"] = {
		description = S("Low Glow Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_low_glow_glass.png"},
		-- tiles = {"default_glass.png^[colorize:#FFFF78"},
                one_texture = true,                
		use_texture_alpha = true,
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 8,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["trap_super_glow_glass"] = {
		description = S("Trap Super Glow Glass"),
		drawtype = "glasslike_framed_optional",
		tiles = {"moreblocks_trap_super_glow_glass.png", "moreblocks_super_glow_glass_detail.png"},
		-- tiles = {"moreblocks_trap_super_glow_glass.png"},
		paramtype = "light",
		sunlight_propagates = true,
		light_source = 14,
		walkable = false,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
		no_stairs = true,
	},
	["rope"] = {
		description = S("Rope"),
		drawtype = "signlike",
		inventory_image = "moreblocks_rope.png",
		wield_image = "moreblocks_rope.png",
		paramtype = "light",
		sunlight_propagates = true,
		paramtype2 = "wallmounted",
		walkable = false,
		climbable = true,
		selection_box = {type = "wallmounted",},
		groups = {snappy = 3, flammable = 2},
		sounds = sound_leaves,
		no_stairs = true,
	},
	["copperpatina"] = {
		description = S("Copper Patina Block"),
		groups = {cracky = 1, level = 2},
		sounds = sound_metal,
	},
	["blue_tinted_glass"] = {
		description = S("Blue Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_blue1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["cyan_tinted_glass"] = {
		description = S("Cyan Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_cyan1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["green_tinted_glass"] = {
		description = S("Green Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_green1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["grey_tinted_glass"] = {
		description = S("Grey Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_grey1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["red_tinted_glass"] = {
		description = S("Red Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_red1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["magenta_tinted_glass"] = {
		description = S("Magenta Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_magenta1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["white_tinted_glass"] = {
		description = S("White Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_white1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},
	["yellow_tinted_glass"] = {
		description = S("Yellow Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_yellow1.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                -- no_stairs = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["brown_tinted_glass"] = {
		description = S("Brown Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_brown2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_blue_tinted_glass"] = {
		description = S("Dark Blue Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_blue2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_brown_tinted_glass"] = {
		description = S("Dark Brown Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_brown2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_cyan_tinted_glass"] = {
		description = S("Dark Cyan Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_cyan2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_green_tinted_glass"] = {
		description = S("Dark Green Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_green2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_grey_tinted_glass"] = {
		description = S("Dark Grey Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_grey2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_magenta_tinted_glass"] = {
		description = S("Dark Magenta Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_magenta2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_orange_tinted_glass"] = {
		description = S("Dark Orange Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_orange2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_pink_tinted_glass"] = {
		description = S("Dark Pink Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_pink2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_red_tinted_glass"] = {
		description = S("Dark Red Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_red2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_violet_tinted_glass"] = {
		description = S("Dark Violet Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_violet2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["dark_yellow_tinted_glass"] = {
		description = S("Dark Yellow Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_dark_yellow2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["orange_tinted_glass"] = {
		description = S("Orange Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_orange2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["pink_tinted_glass"] = {
		description = S("Pink Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_pink2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},

	["violet_tinted_glass"] = {
		description = S("Violet Tinted Glass"),
		drawtype = "glasslike_framed_optional",
                tiles = {"moreblocks_violet2.png^moreblocks_clean_glass.png"},
                one_texture = true,
                use_texture_alpha = true,
		paramtype = "light",
                no_stairs = true,
		minimal_shapes = true,
		sunlight_propagates = true,
		groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
		sounds = sound_glass,
	},



	["gravel_stonebrick"] = {
           description = S("Gravel on Stonebrick"),
           tiles = {"default_gravel.png",
              "default_stone_brick.png",
              "default_gravel.png^[lowpart:50:default_stone_brick.png",
              "default_gravel.png^[lowpart:50:default_stone_brick.png",
              "default_gravel.png^[lowpart:50:default_stone_brick.png",
              "default_gravel.png^[lowpart:50:default_stone_brick.png"},
           no_stairs = true;
           groups = {cracky = 3},
           sounds = sound_gravel,
	},
	["gravel_slope"] = {
           description = S("Gravel Slope"),
           tiles = { "default_gravel.png" } ,
           no_stairs = true,
           groups = {crumbly = 2, falling_node = 1, not_blocking_trains = 1},
           sounds = sound_gravel,
           drawtype = "mesh", 
           mesh = "moreblocks_slope.obj",
           collision_box = box_slope,
           selection_box = box_slope,
           sunlight_propagates = false,
           light_source = 0,
           paramtype = "light",
           paramtype2 = "facedir",      -- neu
           on_rotate = screwdriver.rotate_simple ,   -- neu
           is_ground_content = false,   --neu
           -- buildable_to = true;
	},

	["gravel_slope_2a"] = {
           description = S("Gravel Slope 2a"),
           tiles = { "default_gravel.png" } ,
           no_stairs = true,
           groups = {crumbly = 2, falling_node = 1, not_blocking_trains = 1},
           sounds = sound_gravel,
           drawtype = "mesh", 
           mesh = "moreblocks_slope_half.obj",
           collision_box = box_slope_half,
           selection_box = box_slope_half,
           sunlight_propagates = false,
           light_source = 0,
           paramtype = "light",
           paramtype2 = "facedir",      -- neu
           on_rotate = screwdriver.rotate_simple ,   -- neu
           is_ground_content = false,   --neu
           -- buildable_to = true;
	},

	["gravel_slope_2b"] = {
           description = S("Gravel Slope 2b"),
           tiles = { "default_gravel.png" } ,
           no_stairs = true,
           groups = {crumbly = 2, falling_node = 1, not_blocking_trains = 1},
           sounds = sound_gravel,
           drawtype = "mesh", 
           mesh = "moreblocks_slope_half_raised.obj",
           collision_box = box_slope_half_raised,
           selection_box = box_slope_half_raised,
           sunlight_propagates = false,
           light_source = 0,
           paramtype = "light",
           paramtype2 = "facedir",      -- neu
           on_rotate = screwdriver.rotate_simple ,   -- neu
           is_ground_content = false,   --neu
           -- buildable_to = true;
	},


	["gravel_slope_3a"] = {
           description = S("Gravel Slope 3a"),
           tiles = { "default_gravel.png" } ,
           no_stairs = true,
           groups = {crumbly = 2, falling_node = 1, not_blocking_trains = 1},
           sounds = sound_gravel,
           drawtype = "mesh", 
           mesh = "moreblocks_slope_third.obj",
           collision_box = box_slope_third,
           selection_box = box_slope_third,
           sunlight_propagates = false,
           light_source = 0,
           paramtype = "light",
           paramtype2 = "facedir",      -- neu
           on_rotate = screwdriver.rotate_simple ,   -- neu
           is_ground_content = false,   --neu
           -- buildable_to = true;
	},

	["gravel_slope_3b"] = {
           description = S("Gravel Slope 3b"),
           tiles = { "default_gravel.png" } ,
           no_stairs = true,
           groups = {crumbly = 2, falling_node = 1, not_blocking_trains = 1},
           sounds = sound_gravel,
           drawtype = "mesh", 
           mesh = "moreblocks_slope_third_raised.obj",
           collision_box = box_slope_third_raised,
           selection_box = box_slope_third_raised,
           sunlight_propagates = false,
           light_source = 0,
           paramtype = "light",
           paramtype2 = "facedir",      -- neu
           on_rotate = screwdriver.rotate_simple ,   -- neu
           is_ground_content = false,   --neu
           -- buildable_to = true;
	},

	["gravel_slope_3c"] = {
           description = S("Gravel Slope 3c"),
           tiles = { "default_gravel.png" } ,
           no_stairs = true,
           groups = {crumbly = 2, falling_node = 1, not_blocking_trains = 1},
           sounds = sound_gravel,
           drawtype = "mesh", 
           mesh = "moreblocks_slope_third_top.obj",
           collision_box = box_slope_third_top,
           selection_box = box_slope_third_top,
           sunlight_propagates = false,
           light_source = 0,
           paramtype = "light",
           paramtype2 = "facedir",      -- neu
           on_rotate = screwdriver.rotate_simple ,   -- neu
           is_ground_content = false,   --neu
           -- buildable_to = true;
	},



}

if minetest.get_modpath("ethereal") then
    nodes["all_faces_mushroom_tree"] =  {
                description = S("All-faces Mushroom Tree"),
                tiles = {"mushroom_trunk_top.png"},
                groups = {tree = 1, choppy = 3, oddly_breakable_by_hand = 1, flammable = 3},
                sounds = sound_wood,
                furnace_burntime = 22,
             }
end


for name, def in pairs(nodes) do
	def.tiles = def.tiles or {"moreblocks_" ..name.. ".png"}
	minetest.register_node("moreblocks:" ..name, def)
	minetest.register_alias(name, "moreblocks:" ..name)
	local groups = {}
	local temp_tiles = def.tiles
	if def.one_texture then
	   temp_tiles = { def.tiles[1]}
	end
	for k, v in pairs(def.groups) do groups[k] = v end
	if not def.no_stairs then
	   stairsplus:register_all("moreblocks", name, "moreblocks:" ..name, {
				      description = def.description,
				      groups = groups,
				      tiles = temp_tiles,
				      sunlight_propagates = def.sunlight_propagates,
				      light_source = def.light_source,
				      sounds = def.sounds,
				      use_texture_alpha = def.use_texture_alpha
				   })
	else
	   if def.train_slopes then
	   end
	   if def.minimal_shapes then
	      register_minimal_shapes("moreblocks", name, "moreblocks:" ..name, {
					 description = def.description,
					 groups = groups,
					 tiles = temp_tiles,
					 sunlight_propagates = def.sunlight_propagates,
					 light_source = def.light_source,
					 sounds = def.sounds,
					 use_texture_alpha = def.use_texture_alpha
				      })
	   end
	end
end


-- Items

minetest.register_craftitem("moreblocks:sweeper", {
	description = S("Sweeper"),
	inventory_image = "moreblocks_sweeper.png",
})

minetest.register_craftitem("moreblocks:nothing", {
	inventory_image = "invisible.png",
	on_use = function() end,
})