diff options
Diffstat (limited to 'games/devtest/mods/dignodes')
-rw-r--r-- | games/devtest/mods/dignodes/init.lua | 37 | ||||
-rw-r--r-- | games/devtest/mods/dignodes/mod.conf | 2 | ||||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_choppy.png | bin | 0 -> 187 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_cracky.png | bin | 0 -> 193 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_crumbly.png | bin | 0 -> 172 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_dig_immediate.png | bin | 0 -> 170 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_none.png | bin | 0 -> 201 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_rating1.png | bin | 0 -> 94 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_rating2.png | bin | 0 -> 92 bytes | |||
-rw-r--r-- | games/devtest/mods/dignodes/textures/dignodes_rating3.png | bin | 0 -> 93 bytes |
10 files changed, 39 insertions, 0 deletions
diff --git a/games/devtest/mods/dignodes/init.lua b/games/devtest/mods/dignodes/init.lua new file mode 100644 index 000000000..833150873 --- /dev/null +++ b/games/devtest/mods/dignodes/init.lua @@ -0,0 +1,37 @@ +local groups = { + "cracky", "dig_immediate" +} + +-- Register dig nodes with 1 digging group, a rating between 1-3 and a level between 0-2 +for g=1, #groups do + local gr = groups[g] + for r=1, 3 do + for l=0, 2 do + if not (gr=="dig_immediate" and (l>0 or r==1)) then + local d + if l > 0 then + d = string.format("Dig Test Node: %s=%d, level=%d", gr, r, l) + else + d = string.format("Dig Test Node: %s=%d", gr, r) + end + local tile = "dignodes_"..gr..".png^dignodes_rating"..r..".png" + if l==1 then + tile = tile .. "^[colorize:#FFFF00:127" + elseif l==2 then + tile = tile .. "^[colorize:#FF0000:127" + end + minetest.register_node("dignodes:"..gr.."_"..r.."_"..l, { + description = d, + tiles = { tile }, + groups = { [gr] = r, level = l }, + }) + end + end + end +end + +-- Node without any digging groups +minetest.register_node("dignodes:none", { + description = "Dig Test Node: groupless", + tiles = {"dignodes_none.png"}, +}) diff --git a/games/devtest/mods/dignodes/mod.conf b/games/devtest/mods/dignodes/mod.conf new file mode 100644 index 000000000..52a80d66e --- /dev/null +++ b/games/devtest/mods/dignodes/mod.conf @@ -0,0 +1,2 @@ +name = dignodes +description = Nodes with different digging groups diff --git a/games/devtest/mods/dignodes/textures/dignodes_choppy.png b/games/devtest/mods/dignodes/textures/dignodes_choppy.png Binary files differnew file mode 100644 index 000000000..a73fc2424 --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_choppy.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_cracky.png b/games/devtest/mods/dignodes/textures/dignodes_cracky.png Binary files differnew file mode 100644 index 000000000..eb84e3079 --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_cracky.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_crumbly.png b/games/devtest/mods/dignodes/textures/dignodes_crumbly.png Binary files differnew file mode 100644 index 000000000..23f2f7c71 --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_crumbly.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_dig_immediate.png b/games/devtest/mods/dignodes/textures/dignodes_dig_immediate.png Binary files differnew file mode 100644 index 000000000..a532ad90b --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_dig_immediate.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_none.png b/games/devtest/mods/dignodes/textures/dignodes_none.png Binary files differnew file mode 100644 index 000000000..60f13650b --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_none.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_rating1.png b/games/devtest/mods/dignodes/textures/dignodes_rating1.png Binary files differnew file mode 100644 index 000000000..d2fee3a23 --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_rating1.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_rating2.png b/games/devtest/mods/dignodes/textures/dignodes_rating2.png Binary files differnew file mode 100644 index 000000000..15329b93f --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_rating2.png diff --git a/games/devtest/mods/dignodes/textures/dignodes_rating3.png b/games/devtest/mods/dignodes/textures/dignodes_rating3.png Binary files differnew file mode 100644 index 000000000..37216bfd1 --- /dev/null +++ b/games/devtest/mods/dignodes/textures/dignodes_rating3.png |