aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/basetools
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-05-26 00:17:52 +0200
committerGitHub <noreply@github.com>2020-05-26 00:17:52 +0200
commit083b285f4319c470f307f0b52f03a2fb68facd38 (patch)
treebdd02540ad58756a38606f03a995ab837a176709 /games/devtest/mods/basetools
parentb546e8938d41aa9e3101fb9d4d5b02924ed73b60 (diff)
downloadminetest-083b285f4319c470f307f0b52f03a2fb68facd38.tar.gz
minetest-083b285f4319c470f307f0b52f03a2fb68facd38.tar.bz2
minetest-083b285f4319c470f307f0b52f03a2fb68facd38.zip
Rename “Minimal development test” to “Development Test” (#9928)
Diffstat (limited to 'games/devtest/mods/basetools')
-rw-r--r--games/devtest/mods/basetools/init.lua295
-rw-r--r--games/devtest/mods/basetools/mod.conf2
-rw-r--r--games/devtest/mods/basetools/textures/basetools_dirtpick.pngbin0 -> 307 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_firesword.pngbin0 -> 190 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_icesword.pngbin0 -> 190 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_mesepick.pngbin0 -> 155 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelaxe.pngbin0 -> 131 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steeldagger.pngbin0 -> 154 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelpick.pngbin0 -> 159 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelpick_l1.pngbin0 -> 190 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelpick_l2.pngbin0 -> 177 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelshears.pngbin0 -> 208 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelshovel.pngbin0 -> 140 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_steelsword.pngbin0 -> 163 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_stoneaxe.pngbin0 -> 130 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_stonepick.pngbin0 -> 155 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_stoneshears.pngbin0 -> 224 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_stoneshovel.pngbin0 -> 134 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_stonesword.pngbin0 -> 159 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_woodaxe.pngbin0 -> 121 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_woodpick.pngbin0 -> 149 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_woodshears.pngbin0 -> 212 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_woodshovel.pngbin0 -> 133 bytes
-rw-r--r--games/devtest/mods/basetools/textures/basetools_woodsword.pngbin0 -> 139 bytes
24 files changed, 297 insertions, 0 deletions
diff --git a/games/devtest/mods/basetools/init.lua b/games/devtest/mods/basetools/init.lua
new file mode 100644
index 000000000..d9d9afb07
--- /dev/null
+++ b/games/devtest/mods/basetools/init.lua
@@ -0,0 +1,295 @@
+--
+-- Tool definitions
+--
+
+--[[ TOOLS SUMMARY:
+
+Tool types:
+
+* Hand: basic tool/weapon (just for convenience, not optimized for testing)
+* Pickaxe: dig cracky
+* Axe: dig choppy
+* Shovel: dig crumbly
+* Shears: dig snappy
+* Sword: deal damage
+* Dagger: deal damage, but faster
+
+Tool materials:
+
+* Dirt: dig nodes of rating 3, one use only
+* Wood: dig nodes of rating 3
+* Stone: dig nodes of rating 3 or 2
+* Steel: dig nodes of rating 3, 2 or 1
+* Mese: dig "everything" instantly
+]]
+
+-- The hand
+minetest.register_item(":", {
+ type = "none",
+ wield_image = "wieldhand.png",
+ wield_scale = {x=1,y=1,z=2.5},
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ max_drop_level = 0,
+ groupcaps = {
+ crumbly = {times={[3]=1.50}, uses=0, maxlevel=0},
+ snappy = {times={[3]=1.50}, uses=0, maxlevel=0},
+ oddly_breakable_by_hand = {times={[1]=7.00,[2]=4.00,[3]=2.00}, uses=0, maxlevel=0},
+ },
+ damage_groups = {fleshy=1},
+ }
+})
+
+-- Mese Pickaxe: special tool that digs "everything" instantly
+minetest.register_tool("basetools:pick_mese", {
+ description = "Mese Pickaxe",
+ inventory_image = "basetools_mesepick.png",
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ max_drop_level=3,
+ groupcaps={
+ cracky={times={[1]=0.0, [2]=0.0, [3]=0.0}, maxlevel=255},
+ crumbly={times={[1]=0.0, [2]=0.0, [3]=0.0}, maxlevel=255},
+ snappy={times={[1]=0.0, [2]=0.0, [3]=0.0}, maxlevel=255},
+ choppy={times={[1]=0.0, [2]=0.0, [3]=0.0}, maxlevel=255},
+ dig_immediate={times={[1]=0.0, [2]=0.0, [3]=0.0}, maxlevel=255},
+ },
+ },
+})
+
+
+--
+-- Pickaxes: Dig cracky
+--
+
+-- This should break after only 1 use
+minetest.register_tool("basetools:pick_dirt", {
+ description = "Dirt Pickaxe",
+ inventory_image = "basetools_dirtpick.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ cracky={times={[3]=2.00}, uses=1, maxlevel=0}
+ },
+ },
+})
+
+minetest.register_tool("basetools:pick_wood", {
+ description = "Wooden Pickaxe",
+ inventory_image = "basetools_woodpick.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ cracky={times={[3]=2.00}, uses=30, maxlevel=0}
+ },
+ },
+})
+minetest.register_tool("basetools:pick_stone", {
+ description = "Stone Pickaxe",
+ inventory_image = "basetools_stonepick.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ cracky={times={[2]=1.20, [3]=0.80}, uses=60, maxlevel=0}
+ },
+ },
+})
+minetest.register_tool("basetools:pick_steel", {
+ description = "Steel Pickaxe",
+ inventory_image = "basetools_steelpick.png",
+ tool_capabilities = {
+ max_drop_level=1,
+ groupcaps={
+ cracky={times={[1]=4.00, [2]=1.60, [3]=1.00}, uses=90, maxlevel=0}
+ },
+ },
+})
+minetest.register_tool("basetools:pick_steel_l1", {
+ description = "Steel Pickaxe Level 1",
+ inventory_image = "basetools_steelpick_l1.png",
+ tool_capabilities = {
+ max_drop_level=1,
+ groupcaps={
+ cracky={times={[1]=4.00, [2]=1.60, [3]=1.00}, uses=90, maxlevel=1}
+ },
+ },
+})
+minetest.register_tool("basetools:pick_steel_l2", {
+ description = "Steel Pickaxe Level 2",
+ inventory_image = "basetools_steelpick_l2.png",
+ tool_capabilities = {
+ max_drop_level=1,
+ groupcaps={
+ cracky={times={[1]=4.00, [2]=1.60, [3]=1.00}, uses=90, maxlevel=2}
+ },
+ },
+})
+
+--
+-- Shovels (dig crumbly)
+--
+
+minetest.register_tool("basetools:shovel_wood", {
+ description = "Wooden Shovel",
+ inventory_image = "basetools_woodshovel.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ crumbly={times={[3]=0.50}, uses=30, maxlevel=0}
+ },
+ },
+})
+minetest.register_tool("basetools:shovel_stone", {
+ description = "Stone Shovel",
+ inventory_image = "basetools_stoneshovel.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ crumbly={times={[2]=0.50, [3]=0.30}, uses=60, maxlevel=0}
+ },
+ },
+})
+minetest.register_tool("basetools:shovel_steel", {
+ description = "Steel Shovel",
+ inventory_image = "basetools_steelshovel.png",
+ tool_capabilities = {
+ max_drop_level=1,
+ groupcaps={
+ crumbly={times={[1]=1.00, [2]=0.70, [3]=0.60}, uses=90, maxlevel=0}
+ },
+ },
+})
+
+--
+-- Axes (dig choppy)
+--
+
+minetest.register_tool("basetools:axe_wood", {
+ description = "Wooden Axe",
+ inventory_image = "basetools_woodaxe.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ choppy={times={[3]=0.80}, uses=30, maxlevel=0},
+ },
+ },
+})
+minetest.register_tool("basetools:axe_stone", {
+ description = "Stone Axe",
+ inventory_image = "basetools_stoneaxe.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ choppy={times={[2]=1.00, [3]=0.60}, uses=60, maxlevel=0},
+ },
+ },
+})
+minetest.register_tool("basetools:axe_steel", {
+ description = "Steel Axe",
+ inventory_image = "basetools_steelaxe.png",
+ tool_capabilities = {
+ max_drop_level=1,
+ groupcaps={
+ choppy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=90, maxlevel=0},
+ },
+ },
+})
+
+--
+-- Shears (dig snappy)
+--
+
+minetest.register_tool("basetools:shears_wood", {
+ description = "Wooden Shears",
+ inventory_image = "basetools_woodshears.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ snappy={times={[3]=1.00}, uses=30, maxlevel=0},
+ },
+ },
+})
+minetest.register_tool("basetools:shears_stone", {
+ description = "Stone Shears",
+ inventory_image = "basetools_stoneshears.png",
+ tool_capabilities = {
+ max_drop_level=0,
+ groupcaps={
+ snappy={times={[2]=1.00, [3]=0.50}, uses=60, maxlevel=0},
+ },
+ },
+})
+minetest.register_tool("basetools:shears_steel", {
+ description = "Steel Shears",
+ inventory_image = "basetools_steelshears.png",
+ tool_capabilities = {
+ max_drop_level=1,
+ groupcaps={
+ snappy={times={[1]=1.00, [2]=0.50, [3]=0.25}, uses=90, maxlevel=0},
+ },
+ },
+})
+
+--
+-- Swords (deal damage)
+--
+
+minetest.register_tool("basetools:sword_wood", {
+ description = "Wooden Sword",
+ inventory_image = "basetools_woodsword.png",
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ damage_groups = {fleshy=2},
+ }
+})
+minetest.register_tool("basetools:sword_stone", {
+ description = "Stone Sword",
+ inventory_image = "basetools_stonesword.png",
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ max_drop_level=0,
+ damage_groups = {fleshy=4},
+ }
+})
+minetest.register_tool("basetools:sword_steel", {
+ description = "Steel Sword",
+ inventory_image = "basetools_steelsword.png",
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ max_drop_level=1,
+ damage_groups = {fleshy=6},
+ }
+})
+
+-- Fire/Ice sword: Deal damage to non-fleshy damage groups
+minetest.register_tool("basetools:sword_fire", {
+ description = "Fire Sword",
+ inventory_image = "basetools_firesword.png",
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ max_drop_level=0,
+ damage_groups = {icy=6},
+ }
+})
+minetest.register_tool("basetools:sword_ice", {
+ description = "Ice Sword",
+ inventory_image = "basetools_icesword.png",
+ tool_capabilities = {
+ full_punch_interval = 1.0,
+ max_drop_level=0,
+ damage_groups = {firy=6},
+ }
+})
+
+--
+-- Dagger: Low damage, fast punch interval
+--
+minetest.register_tool("basetools:dagger_steel", {
+ description = "Steel Dagger",
+ inventory_image = "basetools_steeldagger.png",
+ tool_capabilities = {
+ full_punch_interval = 0.5,
+ max_drop_level=0,
+ damage_groups = {fleshy=2},
+ }
+})
diff --git a/games/devtest/mods/basetools/mod.conf b/games/devtest/mods/basetools/mod.conf
new file mode 100644
index 000000000..f0d9f657d
--- /dev/null
+++ b/games/devtest/mods/basetools/mod.conf
@@ -0,0 +1,2 @@
+name = basetools
+description = Contains basic digging tools
diff --git a/games/devtest/mods/basetools/textures/basetools_dirtpick.png b/games/devtest/mods/basetools/textures/basetools_dirtpick.png
new file mode 100644
index 000000000..20a021d72
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_dirtpick.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_firesword.png b/games/devtest/mods/basetools/textures/basetools_firesword.png
new file mode 100644
index 000000000..ee2809ab7
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_firesword.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_icesword.png b/games/devtest/mods/basetools/textures/basetools_icesword.png
new file mode 100644
index 000000000..35ba8214b
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_icesword.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_mesepick.png b/games/devtest/mods/basetools/textures/basetools_mesepick.png
new file mode 100644
index 000000000..2b5e12cdb
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_mesepick.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelaxe.png b/games/devtest/mods/basetools/textures/basetools_steelaxe.png
new file mode 100644
index 000000000..aac594d84
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelaxe.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steeldagger.png b/games/devtest/mods/basetools/textures/basetools_steeldagger.png
new file mode 100644
index 000000000..4c9173094
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steeldagger.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelpick.png b/games/devtest/mods/basetools/textures/basetools_steelpick.png
new file mode 100644
index 000000000..bc02aac3e
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelpick.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelpick_l1.png b/games/devtest/mods/basetools/textures/basetools_steelpick_l1.png
new file mode 100644
index 000000000..dc03f3f65
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelpick_l1.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelpick_l2.png b/games/devtest/mods/basetools/textures/basetools_steelpick_l2.png
new file mode 100644
index 000000000..011df4584
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelpick_l2.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelshears.png b/games/devtest/mods/basetools/textures/basetools_steelshears.png
new file mode 100644
index 000000000..04c86c370
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelshears.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelshovel.png b/games/devtest/mods/basetools/textures/basetools_steelshovel.png
new file mode 100644
index 000000000..8cab60784
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelshovel.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_steelsword.png b/games/devtest/mods/basetools/textures/basetools_steelsword.png
new file mode 100644
index 000000000..9909365c3
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_steelsword.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_stoneaxe.png b/games/devtest/mods/basetools/textures/basetools_stoneaxe.png
new file mode 100644
index 000000000..a374c547d
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_stoneaxe.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_stonepick.png b/games/devtest/mods/basetools/textures/basetools_stonepick.png
new file mode 100644
index 000000000..d9156ee3a
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_stonepick.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_stoneshears.png b/games/devtest/mods/basetools/textures/basetools_stoneshears.png
new file mode 100644
index 000000000..0b4bd3b74
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_stoneshears.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_stoneshovel.png b/games/devtest/mods/basetools/textures/basetools_stoneshovel.png
new file mode 100644
index 000000000..3c1bb48cb
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_stoneshovel.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_stonesword.png b/games/devtest/mods/basetools/textures/basetools_stonesword.png
new file mode 100644
index 000000000..6f3e94cda
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_stonesword.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_woodaxe.png b/games/devtest/mods/basetools/textures/basetools_woodaxe.png
new file mode 100644
index 000000000..4015e910f
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_woodaxe.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_woodpick.png b/games/devtest/mods/basetools/textures/basetools_woodpick.png
new file mode 100644
index 000000000..15c61f408
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_woodpick.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_woodshears.png b/games/devtest/mods/basetools/textures/basetools_woodshears.png
new file mode 100644
index 000000000..4ff92fd7c
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_woodshears.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_woodshovel.png b/games/devtest/mods/basetools/textures/basetools_woodshovel.png
new file mode 100644
index 000000000..6cc52f8a1
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_woodshovel.png
Binary files differ
diff --git a/games/devtest/mods/basetools/textures/basetools_woodsword.png b/games/devtest/mods/basetools/textures/basetools_woodsword.png
new file mode 100644
index 000000000..364016ed6
--- /dev/null
+++ b/games/devtest/mods/basetools/textures/basetools_woodsword.png
Binary files differ