Skip to content

Commit

Permalink
Update Minecraft Wiki links to new domain after fork (#3203)
Browse files Browse the repository at this point in the history
* Update Minecraft Wiki links to new domain after fork

* Update minecraftwiki.net links
  • Loading branch information
misode committed Oct 16, 2023
1 parent 7016c19 commit 08208e2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/es/api_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/ru/api_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions lib/plugins/explosion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08208e2

Please sign in to comment.