1 local S
= minetest
.get_translator("mtg_plus")
3 if minetest
.get_modpath("doc_items") then
4 deco
= doc
.sub
.items
.temp
.deco
7 -- Special: Variant of dirt without the grass/plant spread
8 minetest
.register_node("mtg_plus:graveldirt", {
9 description
= S("Gravel Dirt"),
10 _doc_items_longdesc
= S("Gravel dirt is a type of dirt consisting of equal parts of gravel and dirt. It combines some of the properties of gravel and dirt."),
11 tiles
= {"mtg_plus_graveldirt.png"},
12 is_ground_content
= true,
13 groups
= { crumbly
= 2, level
= 1, soil
= 1, },
14 sounds
= default
.node_sound_dirt_defaults(),
17 { items
= { "default:gravel" } },
18 { items
= { "default:dirt" } },
23 minetest
.register_craft({
25 output
= "mtg_plus:graveldirt",
26 recipe
= { "default:gravel", "default:dirt" },
29 -- Special: Extremely hard block
30 minetest
.register_node("mtg_plus:harddiamondblock",{
31 description
= S("Aggregated Diamond Block"),
32 _doc_items_longdesc
= S("This block is even harder than diamond; diamond pickaxes can't break it. TNT is able to destroy this block."),
33 tiles
= { "mtg_plus_hard_diamond_block.png" },
34 is_ground_content
= false,
35 groups
= { cracky
= 1, level
= 4 },
36 sounds
= default
.node_sound_stone_defaults(),
39 minetest
.register_craft({
40 output
= "mtg_plus:harddiamondblock 1",
42 recipe
= { "default:diamondblock", "default:diamondblock" }
45 -- Special: Wood that doesn't burn
46 minetest
.register_node("mtg_plus:goldwood", {
47 description
= S("Goldwood"),
48 _doc_items_longdesc
= S("Goldwood is a precious artificial kind of wood made by enriching wood with gold. Goldwood is fireproof and notable for its bright yellowy appearance."),
49 tiles
= {"mtg_plus_goldwood.png"},
50 is_ground_content
= false,
51 -- Intentionally not part of the 'wood' group, so it can be used for crafting wood items or as fuel
52 groups
= {choppy
= 2},
53 sounds
= default
.node_sound_wood_defaults(),
56 minetest
.register_craft({
57 output
= "mtg_plus:goldwood",
59 recipe
= { "group:wood", "default:gold_ingot" },