forked from Minetest/dripstone
Make hardened dripstone drop hardened spikes
parent
f9ff713bb5
commit
f6774858db
38
init.lua
38
init.lua
|
@ -254,7 +254,7 @@ minetest.register_node(watered_dripstone_block,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
local function make_dripstone(name, desc, longdesc, tiles, size)
|
local function make_dripstone(name, desc, longdesc, tiles, drop, size)
|
||||||
minetest.register_node(name,
|
minetest.register_node(name,
|
||||||
{ description = desc
|
{ description = desc
|
||||||
, _doc_items_longdesc = longdesc
|
, _doc_items_longdesc = longdesc
|
||||||
|
@ -265,16 +265,16 @@ local function make_dripstone(name, desc, longdesc, tiles, size)
|
||||||
max_items = math.floor((size + 1) / 2),
|
max_items = math.floor((size + 1) / 2),
|
||||||
items = {
|
items = {
|
||||||
{ rarity = 1
|
{ rarity = 1
|
||||||
, items = { dry_dripstone_spike }
|
, items = { drop }
|
||||||
},
|
},
|
||||||
{ rarity = 2
|
{ rarity = 2
|
||||||
, items = { dry_dripstone_spike }
|
, items = { drop }
|
||||||
},
|
},
|
||||||
{ rarity = 4
|
{ rarity = 4
|
||||||
, items = { dry_dripstone_spike }
|
, items = { drop }
|
||||||
},
|
},
|
||||||
{ rarity = 4
|
{ rarity = 4
|
||||||
, items = { dry_dripstone_spike }
|
, items = { drop }
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,7 @@ make_dripstone(
|
||||||
"Huge dripstone",
|
"Huge dripstone",
|
||||||
"Dripstone in the largest shape it can reach.",
|
"Dripstone in the largest shape it can reach.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
7
|
7
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -305,6 +306,7 @@ make_dripstone(
|
||||||
"Huge hardened dripstone",
|
"Huge hardened dripstone",
|
||||||
"Dripstone in the largest shape it can reach. It is no longer able to grow or absorb liquids.",
|
"Dripstone in the largest shape it can reach. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
7
|
7
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -312,6 +314,7 @@ make_dripstone(
|
||||||
"Huge molten dripstone",
|
"Huge molten dripstone",
|
||||||
"Dripstone in the largest shape it can reach. It has absorbed some lava, but it can no longer grow in thickness.",
|
"Dripstone in the largest shape it can reach. It has absorbed some lava, but it can no longer grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
7
|
7
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -319,6 +322,7 @@ make_dripstone(
|
||||||
"Huge watered dripstone",
|
"Huge watered dripstone",
|
||||||
"Dripstone in the largest shape it can reach. It has absorbed some water, but it can no longer grow in thickness.",
|
"Dripstone in the largest shape it can reach. It has absorbed some water, but it can no longer grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
7
|
7
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -329,6 +333,7 @@ make_dripstone(
|
||||||
"Large dripstone",
|
"Large dripstone",
|
||||||
"A thick layer of dripstone.",
|
"A thick layer of dripstone.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
6
|
6
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -336,6 +341,7 @@ make_dripstone(
|
||||||
"Large hardened dripstone",
|
"Large hardened dripstone",
|
||||||
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
6
|
6
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -343,6 +349,7 @@ make_dripstone(
|
||||||
"Large molten dripstone",
|
"Large molten dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
6
|
6
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -350,6 +357,7 @@ make_dripstone(
|
||||||
"Large watered dripstone",
|
"Large watered dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
6
|
6
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -360,6 +368,7 @@ make_dripstone(
|
||||||
"Great dripstone",
|
"Great dripstone",
|
||||||
"A thick layer of dripstone.",
|
"A thick layer of dripstone.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
5
|
5
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -367,6 +376,7 @@ make_dripstone(
|
||||||
"Great hardened dripstone",
|
"Great hardened dripstone",
|
||||||
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
5
|
5
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -374,6 +384,7 @@ make_dripstone(
|
||||||
"Great molten dripstone",
|
"Great molten dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
5
|
5
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -381,6 +392,7 @@ make_dripstone(
|
||||||
"Great watered dripstone",
|
"Great watered dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
5
|
5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -391,6 +403,7 @@ make_dripstone(
|
||||||
"Medium dripstone",
|
"Medium dripstone",
|
||||||
"A thick layer of dripstone.",
|
"A thick layer of dripstone.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
4
|
4
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -398,6 +411,7 @@ make_dripstone(
|
||||||
"Medium hardened dripstone",
|
"Medium hardened dripstone",
|
||||||
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
4
|
4
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -405,6 +419,7 @@ make_dripstone(
|
||||||
"Medium molten dripstone",
|
"Medium molten dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
4
|
4
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -412,6 +427,7 @@ make_dripstone(
|
||||||
"Medium watered dripstone",
|
"Medium watered dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
4
|
4
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -422,6 +438,7 @@ make_dripstone(
|
||||||
"Small dripstone",
|
"Small dripstone",
|
||||||
"A thick layer of dripstone.",
|
"A thick layer of dripstone.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
3
|
3
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -429,6 +446,7 @@ make_dripstone(
|
||||||
"Small hardened dripstone",
|
"Small hardened dripstone",
|
||||||
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
3
|
3
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -436,6 +454,7 @@ make_dripstone(
|
||||||
"Small molten dripstone",
|
"Small molten dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
3
|
3
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -443,6 +462,7 @@ make_dripstone(
|
||||||
"Small watered dripstone",
|
"Small watered dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
3
|
3
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -453,6 +473,7 @@ make_dripstone(
|
||||||
"Tiny dripstone",
|
"Tiny dripstone",
|
||||||
"A thick layer of dripstone.",
|
"A thick layer of dripstone.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
2
|
2
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -460,6 +481,7 @@ make_dripstone(
|
||||||
"Tiny hardened dripstone",
|
"Tiny hardened dripstone",
|
||||||
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
2
|
2
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -467,6 +489,7 @@ make_dripstone(
|
||||||
"Tiny molten dripstone",
|
"Tiny molten dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
2
|
2
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -474,6 +497,7 @@ make_dripstone(
|
||||||
"Tiny watered dripstone",
|
"Tiny watered dripstone",
|
||||||
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
2
|
2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -484,6 +508,7 @@ make_dripstone(
|
||||||
"Dripstone spike",
|
"Dripstone spike",
|
||||||
"A thick layer of dripstone.",
|
"A thick layer of dripstone.",
|
||||||
dry_dripstone_tiles,
|
dry_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -491,6 +516,7 @@ make_dripstone(
|
||||||
"Hardened dripstone spike",
|
"Hardened dripstone spike",
|
||||||
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
"A thick layer of dripstone. It is no longer able to grow or absorb liquids.",
|
||||||
hardened_dripstone_tiles,
|
hardened_dripstone_tiles,
|
||||||
|
hardened_dripstone_spike,
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -498,6 +524,7 @@ make_dripstone(
|
||||||
"Molten dripstone spike",
|
"Molten dripstone spike",
|
||||||
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some lava, so it is able to grow in thickness.",
|
||||||
molten_dripstone_tiles,
|
molten_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
make_dripstone(
|
make_dripstone(
|
||||||
|
@ -505,6 +532,7 @@ make_dripstone(
|
||||||
"Watered dripstone spike",
|
"Watered dripstone spike",
|
||||||
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
"A thick layer of dripstone. It has absorbed some water, so it is able to grow in thickness.",
|
||||||
watered_dripstone_tiles,
|
watered_dripstone_tiles,
|
||||||
|
dry_dripstone_spike,
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue