From 08208e2f110af2c6de41fac9a389597aac916412 Mon Sep 17 00:00:00 2001 From: Misode Date: Mon, 16 Oct 2023 04:21:53 +0200 Subject: [PATCH] Update Minecraft Wiki links to new domain after fork (#3203) * Update Minecraft Wiki links to new domain after fork * Update minecraftwiki.net links --- docs/api.md | 2 +- docs/es/api_es.md | 2 +- docs/ru/api_ru.md | 2 +- docs/zh/api.md | 2 +- lib/plugins/explosion.js | 6 +++--- lib/plugins/inventory.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/api.md b/docs/api.md index 8ac62b179..3aeb10d3c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1396,7 +1396,7 @@ Fires when a note block goes off somewhere. * `pitch`: The pitch of the note (between 0-24 inclusive where 0 is the lowest and 24 is the highest). More information about how the pitch values correspond to notes in real life are available on the - [official Minecraft wiki](http://www.minecraftwiki.net/wiki/Note_Block). + [official Minecraft wiki](http://minecraft.wiki/w/Note_Block). #### "pistonMove" (block, isPulling, direction) diff --git a/docs/es/api_es.md b/docs/es/api_es.md index 0e03e932b..bf72704c1 100644 --- a/docs/es/api_es.md +++ b/docs/es/api_es.md @@ -1289,7 +1289,7 @@ Se emite cuando un bloque de notas se dispara en algún sitio * `instrument`: - `id`: id con números enteros - `name`: uno de estos [`harp`, `doubleBass`, `snareDrum`, `sticks`, `bassDrum`]. (`harpa`, `dobleBajo`, `tambor`, `palos`, `tamborBajo`) - * `pitch`: El tono de la nota (entre 0 y 24 ambos incluídos donde 0 es el más bajo y 24 es el más alto). Se puede leer más (sobre como los valores de los tonos corresponden a las notas en la vida real) aquí: [official Minecraft wiki](http://www.minecraftwiki.net/wiki/Note_Block). + * `pitch`: El tono de la nota (entre 0 y 24 ambos incluídos donde 0 es el más bajo y 24 es el más alto). Se puede leer más (sobre como los valores de los tonos corresponden a las notas en la vida real) aquí: [official Minecraft wiki](http://minecraft.wiki/w/Note_Block). #### "pistonMove" (block, isPulling, direction) diff --git a/docs/ru/api_ru.md b/docs/ru/api_ru.md index 691b80008..82b42d57a 100644 --- a/docs/ru/api_ru.md +++ b/docs/ru/api_ru.md @@ -1420,7 +1420,7 @@ UUID существа, который определяется боссом. * `instrument`: Объект - `id` : ID в виде `integer`. - `name` : Один из видов звука. - * `pitch` - Высота ноты (от 0 до 24 включительно, где 0 - это самая низкая, а 24 - самая высокая). Больше информации об этом можно найти на [оффициальной Minecraft википедии](http://www.minecraftwiki.net/wiki/Note_Block). + * `pitch` - Высота ноты (от 0 до 24 включительно, где 0 - это самая низкая, а 24 - самая высокая). Больше информации об этом можно найти на [оффициальной Minecraft википедии](http://minecraft.wiki/w/Note_Block). #### "pistonMove" (block, isPulling, direction) diff --git a/docs/zh/api.md b/docs/zh/api.md index 6007e545e..61ecc4950 100644 --- a/docs/zh/api.md +++ b/docs/zh/api.md @@ -1308,7 +1308,7 @@ comparison. * `pitch`: The pitch of the note (between 0-24 inclusive where 0 is the lowest and 24 is the highest). More information about how the pitch values correspond to notes in real life are available on the - [official Minecraft wiki](http://www.minecraftwiki.net/wiki/Note_Block). + [official Minecraft wiki](http://minecraft.wiki/w/Note_Block). #### "pistonMove" (block, isPulling, direction) diff --git a/lib/plugins/explosion.js b/lib/plugins/explosion.js index 59f8b4e8f..15e870604 100644 --- a/lib/plugins/explosion.js +++ b/lib/plugins/explosion.js @@ -2,7 +2,7 @@ const { Vec3 } = require('vec3') module.exports = inject -// https://minecraft.fandom.com/wiki/Explosion +// https://minecraft.wiki/w/Explosion function calcExposure (playerPos, explosionPos, world) { const dx = 1 / (0.6 * 2 + 1) const dy = 1 / (1.8 * 2 + 1) @@ -29,14 +29,14 @@ function calcExposure (playerPos, explosionPos, world) { return exposed / sampled } -// https://minecraft.fandom.com/wiki/Armor#Damage_protection +// https://minecraft.wiki/w/Armor#Damage_protection function getDamageAfterAbsorb (damages, armorValue, toughness) { const var3 = 2 + toughness / 4 const var4 = Math.min(Math.max(armorValue - damages / var3, armorValue * 0.2), 20) return damages * (1 - var4 / 25) } -// https://minecraft.fandom.com/wiki/Attribute#Operations +// https://minecraft.wiki/w/Attribute#Operations function getAttributeValue (prop) { let X = prop.value for (const mod of prop.modifiers) { diff --git a/lib/plugins/inventory.js b/lib/plugins/inventory.js index 13142057f..b532b95c2 100644 --- a/lib/plugins/inventory.js +++ b/lib/plugins/inventory.js @@ -10,7 +10,7 @@ module.exports = inject const DIG_CLICK_TIMEOUT = 500 // The number of milliseconds to wait for the server to respond with consume completion. // This number is larger than the eat time of 1.61 seconds to account for latency and low tps. -// The eat time comes from https://minecraft.fandom.com/wiki/Food#Usage +// The eat time comes from https://minecraft.wiki/w/Food#Usage const CONSUME_TIMEOUT = 2500 // milliseconds to wait for the server to respond to a window click transaction const WINDOW_TIMEOUT = 5000