From 57401988983f7cb34a893452ccaa9fbd4c16df21 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 5 Sep 2023 23:47:56 +0100 Subject: [PATCH 1/7] Fix armor_groups --- _en/map/objects.md | 13 +++++++------ _it/map/objects.md | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/_en/map/objects.md b/_en/map/objects.md index d02cd9c..4bf737d 100644 --- a/_en/map/objects.md +++ b/_en/map/objects.md @@ -268,14 +268,15 @@ these groups can take any name and do not need to be registered. However, it's common to use the same group names as with node digging. How vulnerable an object is to particular types of damage depends on its -`armor_groups` [object property](#object-properties). Despite its misleading -name, `armor_groups` specify the percentage damage taken from particular damage -groups, not the resistance. If a damage group is not listed in an object's armor -groups, that object is completely invulnerable to it. +`armor_groups`. Despite its misleading name, `armor_groups` specify the +percentage damage taken from particular damage groups, not the resistance. If a +damage group is not listed in an object's armor groups, that object is +completely invulnerable to it. ```lua -target:set_properties({ - armor_groups = { fleshy = 90, crumbly = 50 }, +target:set_armor_groups({ + fleshy = 90, + crumbly = 50, }) ``` diff --git a/_it/map/objects.md b/_it/map/objects.md index 3f6f5c0..51e94f7 100644 --- a/_it/map/objects.md +++ b/_it/map/objects.md @@ -238,8 +238,9 @@ Al contrario di quello che potrebbe far intendere il nome, `armor_groups` specif Se un Gruppo Danno non è elencato nei Gruppi Armatura di un oggetto, quest'ultimo ne sarà completamente immune. ```lua -obiettivo:set_properties({ - armor_groups = { fleshy = 90, crumbly = 50 }, +obiettivo:set_armor_groups({ + fleshy = 90, + crumbly = 50, }) ``` From a38d0b7ad9f766fee12e27d68aa24f17fc02537c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 22 Sep 2023 22:59:50 +0000 Subject: [PATCH 2/7] Update lua_api.html --- lua_api.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua_api.html b/lua_api.html index f4ed7bb..cab916f 100644 --- a/lua_api.html +++ b/lua_api.html @@ -1,3 +1,3 @@ --- -redirect_to: https://minetest.gitlab.io/minetest/ +redirect_to: https://api.minetest.net/ --- From 18b92ca38891c9d57d1b23a3879155e43410988b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 19 Oct 2023 19:38:59 +0100 Subject: [PATCH 3/7] Clarify tool definition Fixes #122 --- _en/items/nodes_items_crafting.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_en/items/nodes_items_crafting.md b/_en/items/nodes_items_crafting.md index 452fc53..5437134 100644 --- a/_en/items/nodes_items_crafting.md +++ b/_en/items/nodes_items_crafting.md @@ -37,9 +37,10 @@ positions are usually air nodes. A craftitem can't be placed and is only found in inventories or as a dropped item in the world. -A tool has the ability to wear and typically has non-default digging -capabilities. In the future, it's likely that craftitems and tools will merge -into one type of item, as the distinction between them is rather artificial. +A tool is like a craftitem but has the ability to wear. As you use the tool, the +wear bar goes down until the tool breaks. Tools can also never be stacked. In +the future, it's likely that craftitems and tools will merge into one type of +item, as the distinction between them is rather artificial. ## Registering Items From 21e47a80ec3442642145f6ba4291f427be16d406 Mon Sep 17 00:00:00 2001 From: Misnad Khasim Date: Thu, 30 Nov 2023 17:09:11 +0000 Subject: [PATCH 4/7] Node Drawtypes: Fix a small typo in example code --- _en/items/node_drawtypes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_en/items/node_drawtypes.md b/_en/items/node_drawtypes.md index 24fb6ae..bf58d61 100644 --- a/_en/items/node_drawtypes.md +++ b/_en/items/node_drawtypes.md @@ -147,7 +147,7 @@ minetest.register_node("myair:air", { walkable = false, -- Would make the player collide with the air node pointable = false, -- You can't select the node diggable = false, -- You can't dig the node - buildable_to = true, -- Nodes can be replace this node. + buildable_to = true, -- Nodes can replace this node. -- (you can place a node and remove the air node -- that used to be there) From 2cb0a93e6df14dc20b86a0e484bb5d2b58aa64f7 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 4 Jan 2024 00:22:21 +0000 Subject: [PATCH 5/7] Chat: Fix */. explanation --- _en/players/chat.md | 4 ++-- _it/players/chat.md | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/_en/players/chat.md b/_en/players/chat.md index 21f8175..6829f51 100644 --- a/_en/players/chat.md +++ b/_en/players/chat.md @@ -137,7 +137,7 @@ from text using rules. They're best suited for when there are arguments that can contain spaces or more control is needed on how parameters are captured. ```lua -local to, msg = param:match("^([%a%d_-]+) (*+)$") +local to, msg = param:match("^([%a%d_-]+) (.+)$") ``` The above code implements `/msg `. Let's go through left to right: @@ -149,7 +149,7 @@ The above code implements `/msg `. Let's go through left to right: * `%a` means accept any letter and `%d` means accept any digit. * `[%a%d_-]` means accept any letter or digit or `_` or `-`. * `+` means match the thing before one or more times. -* `*` means match any character in this context. +* `.` means match any character in this context. * `$` means match the end of the string. Put simply, the pattern matches the name (a word with only letters/numbers/-/_), diff --git a/_it/players/chat.md b/_it/players/chat.md index f099932..8b46b0b 100755 --- a/_it/players/chat.md +++ b/_it/players/chat.md @@ -29,12 +29,12 @@ cb_cmdsprivs: Le mod possono interagire con la chat del giocatore, tra l'inviare messaggi, intercettarli e registrare dei comandi. - [Inviare messaggi](#inviare-messaggi) - - [A tutti i giocatori](#a-tutti-i-giocatori) - - [A giocatori specifici](#a-giocatori-specifici) + - [A tutti i giocatori](#a-tutti-i-giocatori) + - [A giocatori specifici](#a-giocatori-specifici) - [Comandi](#comandi) - - [Accettare più argomenti](#accettare-più-argomenti) - - [Usare string.split](#usare-stringsplit) - - [Usare i pattern Lua](#usare-i-pattern-lua) + - [Accettare più argomenti](#accettare-più-argomenti) + - [Usare string.split](#usare-stringsplit) + - [Usare i pattern Lua](#usare-i-pattern-lua) - [Intercettare i messaggi](#intercettare-i-messaggi) ## Inviare messaggi @@ -128,7 +128,7 @@ end Sono perfetti in caso di argomenti che contengono spazi, o comunque quando è richiesto un controllo più meticoloso dei parametri catturati. ```lua -local a, msg = string.match(param, "^([%a%d_-]+) (*+)$") +local a, msg = string.match(param, "^([%a%d_-]+) (.+)$") ``` Il codice sovrastante implementa `/msg `. Vediamo cos'è successo partendo da sinistra: @@ -139,7 +139,7 @@ Il codice sovrastante implementa `/msg `. Vediamo cos'è successo * `%a` significa che accetta ogni lettera e `%d` ogni cifra. * `[%a%d_-]` significa che accetta ogni lettera, cifra, `_` e `-`. * `+` dice di combaciare ciò che lo precede una o più volte. -* `*` dice di combaciare qualsiasi tipo di carattere. +* `.` dice di combaciare qualsiasi tipo di carattere. * `$` dice di combaciare la fine della stringa. Detto semplicemente, il pattern cerca un nome (una parola fatta di lettere, numeri, trattini o trattini bassi), poi uno spazio e poi il messaggio (uno o più caratteri, qualsiasi essi siano). From ecdefc67ac65034a18a079e7abe2b27089bd8a6b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 10 Jan 2024 22:31:47 +0000 Subject: [PATCH 6/7] Remove feedback form --- _layouts/default.html | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 710517c..41792a4 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -63,41 +63,6 @@ layout: base
  • {% if next %}{{ next.title }} >{% endif %}
  • - {% if language == "en" %} - - {% endif %} -