aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinetest dedicated server <Debian-minetest@andrewyu.org>2024-06-28 09:48:54 +0000
committerMinetest dedicated server <Debian-minetest@andrewyu.org>2024-06-28 09:48:54 +0000
commit749508a400deb6fc2cda0048e57efa45e34c1524 (patch)
treebb2dae2f78b3383aa28d7d8af64221fc076fbedc
downloadrxmin-749508a400deb6fc2cda0048e57efa45e34c1524.tar.gz
rxmin-749508a400deb6fc2cda0048e57efa45e34c1524.zip
Initial commit
-rw-r--r--LICENSE.md14
-rw-r--r--README.md3
-rw-r--r--init.lua72
-rw-r--r--locale/maptools.es.tr38
-rw-r--r--locale/maptools.fr.tr46
-rw-r--r--locale/maptools.it.tr46
-rw-r--r--locale/maptools.template.tr46
-rw-r--r--mod.conf3
-rw-r--r--textures/rxmin_adminpick.pngbin0 -> 279 bytes
-rw-r--r--textures/rxmin_adminpick_with_drops.pngbin0 -> 276 bytes
10 files changed, 268 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..ff6c887
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,14 @@
+# zlib license
+
+Copyright © 2012-2020 Hugo Locurcio and contributors
+Copyright © 2024 Runxi Yu
+
+**This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.**
+
+Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
+
+2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
+
+3. This notice may not be removed or altered from any source distribution.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..20203da
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# rxmin
+
+rxmin is a fork of [maptools](https://github.com/minetest-mods/maptools) that only really contains the pickaxe.
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..df4b8c1
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,72 @@
+--[[
+Copyright © 2012-2020 Hugo Locurcio and contributors.
+Copyright © 2024 Runxi Yu
+Licensed under the zlib license. See LICENSE.md for more information.
+--]]
+
+rxmin = {}
+
+local modpath = minetest.get_modpath("rxmin")
+
+local S = minetest.get_translator("rxmin")
+
+rxmin.drop_msg = function(itemstack, player)
+ local name = player:get_player_name()
+ minetest.chat_send_player(name, S("[rxmin] tools/nodes do not drop!"))
+end
+
+local pick_admin_toolcaps = {
+ full_punch_interval = 0.1,
+ max_drop_level = 3,
+ groupcaps = {
+ unbreakable = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ fleshy = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ choppy = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ bendy = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ cracky = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ crumbly = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ snappy = {times = {[1] = 0, [2] = 0, [3] = 0}, uses = 0, maxlevel = 5},
+ },
+ damage_groups = {fleshy = 1000},
+}
+
+minetest.register_tool("rxmin:pick_admin", {
+ description = S("Admin Pickaxe"),
+ range = 20,
+ inventory_image = "rxmin_adminpick.png",
+ groups = {not_in_creative_inventory = 0},
+ tool_capabilities = pick_admin_toolcaps,
+ on_drop = rxmin.drop_msg,
+})
+
+minetest.register_tool("rxmin:pick_admin_with_drops", {
+ description = S("Admin Pickaxe with Drops"),
+ range = 20,
+ inventory_image = "rxmin_adminpick_with_drops.png",
+ groups = {not_in_creative_inventory = 0},
+ tool_capabilities = pick_admin_toolcaps,
+ on_drop = rxmin.drop_msg,
+})
+
+minetest.register_on_punchnode(function(pos, node, puncher)
+ if puncher:get_wielded_item():get_name() == "rxmin:pick_admin"
+ and minetest.get_node(pos).name ~= "air" then
+ minetest.log(
+ "action",
+ puncher:get_player_name() ..
+ " digs " ..
+ minetest.get_node(pos).name ..
+ " at " ..
+ minetest.pos_to_string(pos) ..
+ " using an Admin Pickaxe."
+ )
+ -- The node is removed directly, which means it even works
+ -- on non-empty containers and group-less nodes
+ minetest.remove_node(pos)
+ -- Run node update actions like falling nodes
+ minetest.check_for_falling(pos)
+ end
+end)
+
+minetest.register_alias("adminpick", "rxmin:pick_admin")
+minetest.register_alias("adminpickdrops", "rxmin:pick_admin_with_drops")
diff --git a/locale/maptools.es.tr b/locale/maptools.es.tr
new file mode 100644
index 0000000..030f146
--- /dev/null
+++ b/locale/maptools.es.tr
@@ -0,0 +1,38 @@
+# textdomain: maptools
+[maptools] loaded.=[maptools] cargado.
+
+Cloud=Nube
+Infinite Fuel=Combustible Infinito
+Admin Pickaxe=Pico de Administrador
+Copper Coin=Moneda de Cobre
+Silver Coin=Moneda de Plata
+Gold Coin=Moneda de Oro
+Super Apple=Super Manzana
+Fake Ladder=Escalera Falsa
+Smoke Block=Bloque de Humo
+Damaging Block: %s=Bloque Dañino: %s
+Kill Block=Bloque Mortal
+Build Prevention=Bloqueador de Construcción
+Interact Prevention=Bloqueador de Interacción
+Climb Block=Bloque Escalable
+Light Block=Bloqueador de Luz
+Light Bulb=Lamparilla
+Player Clip=Bloqueo de Jugador
+Full Clip=Bloqueo Total
+
+Unbreakable Stone=Piedra Irrompible
+Unbreakable Sand=Arena Irrompible
+Unbreakable Desert Stone=Piedra Desértica Irrompible
+Unbreakable Desert Sand=Arena Desértica Irrompible
+Unbreakable Gravel=Gravilla Irrompible
+Unbreakable Dirt=Tierra Irrompible
+Unbreakable Dirt with Grass=Hierba Irrompible
+Unbreakable Full Grass=Bloque de Hierba Irrompible
+Unbreakable Brick=Ladrillos Irrompibles
+Unbreakable Wooden Planks=Planchas de Madera Irrompibles
+Unbreakable Tree=Tronco de Árbol Irrompible
+Unbreakable Glass=Cristal Irrompible
+Unbreakable Sandstone=Arenisca Irrompible
+Unbreakable Leaves=Foliaje Irrompible
+Unbreakable Cobblestone=Guijarros Irrompibles
+Unbreakable Mossy Cobblestone=Guijarros Enmohecidos Irrompibles
diff --git a/locale/maptools.fr.tr b/locale/maptools.fr.tr
new file mode 100644
index 0000000..818b5f5
--- /dev/null
+++ b/locale/maptools.fr.tr
@@ -0,0 +1,46 @@
+# textdomain: maptools
+[maptools] loaded.=[maptools] a été chargé.
+
+Cloud=Nuage
+Infinite Fuel=Carburant infini
+Admin Pickaxe=Pioche d'administrateur
+Admin Pickaxe With Drops=Pioche d'administrateur qui donne des objets
+Copper Coin=Pièce de cuivre
+Silver Coin=Pièce d'argent
+Gold Coin=Pièce d'or
+Super Apple=Super pomme
+Fake Ladder=Fausse échelle
+Smoke Block=Bloc de fumée
+Damaging Block: %s=Bloc de dégâts : %s
+Kill Block=Bloc qui tue
+Build Prevention=Prévention de construction
+Interact Prevention=Prévention d'interaction
+Climb Block=Bloc à grimper
+Light Block=Bloqueur de lumière
+Light Bulb=Bloc lumineux
+Player Clip=Bloque-joueurs
+Player Clip Bottom Face=Face inférieure de bloque-joueurs
+Player Clip Top Face=Face supérieure de bloque-joueurs
+Full Clip=Bloque-tout
+Full Clip Face=Face de bloque-tout
+Permanent Fire=Feu permanent
+Fake Fire=Faux feu
+Igniter=Incendieur
+Pusher: %s=Pousseur : %s
+
+Unbreakable Stone=Pierre incassable
+Unbreakable Sand=Sable incassable
+Unbreakable Desert Stone=Pierre de désert incassable
+Unbreakable Desert Sand=Sable de désert incassable
+Unbreakable Gravel=Gravier incassable
+Unbreakable Dirt=Terre incassable
+Unbreakable Dirt with Grass=Herbe incassable
+Unbreakable Full Grass=Bloc d'herbe incassable
+Unbreakable Brick=Briques incassables
+Unbreakable Wooden Planks=Planches de bois incassables
+Unbreakable Tree=Tronc d'arbre incassable
+Unbreakable Glass=Verre incassable
+Unbreakable Sandstone=Grès incassable
+Unbreakable Leaves=Feuillage incassable
+Unbreakable Cobblestone=Pierre taillée incassable
+Unbreakable Mossy Cobblestone=Pierre taillée mousseusse incassable
diff --git a/locale/maptools.it.tr b/locale/maptools.it.tr
new file mode 100644
index 0000000..b8fbd0e
--- /dev/null
+++ b/locale/maptools.it.tr
@@ -0,0 +1,46 @@
+# textdomain: maptools
+[maptools] loaded.=[maptools] caricato.
+
+Cloud=Nuvola
+Infinite Fuel=Combustibile infinito
+Admin Pickaxe=Piccone della amministrazione
+Admin Pickaxe With Drops=Piccone della amministrazione che lascia cadere a terra
+Copper Coin=Moneta di rame
+Silver Coin=Moneta di argento
+Gold Coin=Moneta di oro
+Super Apple=Super mela
+Fake Ladder=Finta scala a pioli
+Smoke Block=Blocco di fumo
+Damaging Block: %s=Blocco che danneggia : %s
+Kill Block=Blocco che uccide
+Build Prevention=Impedimento alla costruzione
+Interact Prevention=Impedimento alla interazione
+Climb Block=Blocco su cui ci si può arrampicare
+Light Block=Blocco di luce
+Light Bulb=Lampadina
+Player Clip=Blocca giocatori
+Player Clip Bottom Face=Blocca giocatori - faccia inferiore
+Player Clip Top Face=Glocca giocatori - faccia superiore
+Full Clip=Blocca tutti
+Full Clip Face=Faccia del blocca tutti
+Permanent Fire=Fuoco eterno
+Fake Fire=Fuoco finto
+Igniter=Accendino
+Pusher: %s=Che ha spinto : %s
+
+Unbreakable Stone=Pietra infrangibile
+Unbreakable Sand=Sabbia infrangibile
+Unbreakable Desert Stone=Pietra del deserto infrangibile
+Unbreakable Desert Sand=Sabbia del deserto infrangibile
+Unbreakable Gravel=Ghiaia infrangibile
+Unbreakable Dirt=Terra infrangibile
+Unbreakable Dirt with Grass=Erba infrangibile
+Unbreakable Full Grass=Blocco d'erba infrangibile
+Unbreakable Brick=Mattoni infrangibile
+Unbreakable Wooden Planks=Assi in legno infrangibili
+Unbreakable Tree=Albero infrangibile
+Unbreakable Glass=Vetro infrangibile
+Unbreakable Sandstone=Arenaria infrangibile
+Unbreakable Leaves=Foglie infrangibili
+Unbreakable Cobblestone=Ciottolo infrangibile
+Unbreakable Mossy Cobblestone=Ciottolo muschioso infrangibile
diff --git a/locale/maptools.template.tr b/locale/maptools.template.tr
new file mode 100644
index 0000000..7280ca4
--- /dev/null
+++ b/locale/maptools.template.tr
@@ -0,0 +1,46 @@
+# textdomain: maptools
+[maptools] loaded.=
+
+Cloud=Nuage
+Infinite Fuel=
+Admin Pickaxe=
+Admin Pickaxe With Drops=
+Copper Coin=
+Silver Coin=
+Gold Coin=
+Super Apple=
+Fake Ladder=
+Smoke Block=
+Damaging Block: %s=
+Kill Block=
+Build Prevention=
+Interact Prevention=
+Climb Block=
+Light Block=
+Light Bulb=
+Player Clip=
+Player Clip Bottom Face=
+Player Clip Top Face=
+Full Clip=
+Full Clip Face=
+Permanent Fire=
+Fake Fire=
+Igniter=
+Pusher: %s=
+
+Unbreakable Stone=
+Unbreakable Sand=
+Unbreakable Desert Stone=
+Unbreakable Desert Sand=
+Unbreakable Gravel=
+Unbreakable Dirt=
+Unbreakable Dirt with Grass=
+Unbreakable Full Grass=
+Unbreakable Brick=
+Unbreakable Wooden Planks=
+Unbreakable Tree=
+Unbreakable Glass=
+Unbreakable Sandstone=
+Unbreakable Leaves=
+Unbreakable Cobblestone=
+Unbreakable Mossy Cobblestone=
diff --git a/mod.conf b/mod.conf
new file mode 100644
index 0000000..240e2fc
--- /dev/null
+++ b/mod.conf
@@ -0,0 +1,3 @@
+name = rxmin
+description = Minimal fork of maptools tools
+min_minetest_version = 5.0.0
diff --git a/textures/rxmin_adminpick.png b/textures/rxmin_adminpick.png
new file mode 100644
index 0000000..3ec72a4
--- /dev/null
+++ b/textures/rxmin_adminpick.png
Binary files differ
diff --git a/textures/rxmin_adminpick_with_drops.png b/textures/rxmin_adminpick_with_drops.png
new file mode 100644
index 0000000..ed706ce
--- /dev/null
+++ b/textures/rxmin_adminpick_with_drops.png
Binary files differ