From 108a475e05411eb2fa699c92fbb65f97af8b0512 Mon Sep 17 00:00:00 2001 From: Dinoir Benet Date: Sun, 24 Sep 2023 19:38:27 +0100 Subject: [PATCH] Update wiki links https://minecraft.wiki/w/Minecraft_Wiki:Moving_from_Fandom --- bcresources.md | 18 +++++++++--------- debugging.md | 8 ++++---- optimising.md | 2 +- questions/amountitems.md | 4 ++-- questions/angermob.md | 2 +- questions/blockdelay.md | 2 +- questions/commandcontext.md | 4 ++-- questions/compasstoplayer.md | 4 ++-- questions/detectitem.md | 2 +- questions/giveitembedrock.md | 2 +- questions/itemclick.md | 6 +++--- questions/modifyinventory.md | 2 +- questions/movetoscore.md | 2 +- questions/playerkills.md | 4 ++-- questions/raycast.md | 2 +- questions/storeinventory.md | 2 +- resources.md | 30 +++++++++++++++--------------- 17 files changed, 48 insertions(+), 48 deletions(-) diff --git a/bcresources.md b/bcresources.md index 288631c5..1aea6ea6 100644 --- a/bcresources.md +++ b/bcresources.md @@ -16,7 +16,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or [NBT Editor](http://www.mcctoolchest.com/Download) (MCC Tool Chest) ### Resources -[Level format](https://minecraft.gamepedia.com/Bedrock_Edition_level_format) (Wiki) +[Level format](https://minecraft.wiki/Bedrock_Edition_level_format) (Wiki) ## World editing @@ -37,17 +37,17 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Creating a resource pack guide](http://minecraft.gamepedia.com/Tutorials/Creating_resource_pack_add-ons) (Wiki) -[Changing entity models guide](http://minecraft.gamepedia.com/Tutorials/Changing_Minecraft_entity_models) (Wiki) -[Sounds list](https://minecraft.gamepedia.com/Sounds.json/Bedrock_Edition_values) (Wiki) +[Creating a resource pack guide](http://minecraft.wiki/Tutorials/Creating_resource_pack_add-ons) (Wiki) +[Changing entity models guide](http://minecraft.wiki/Tutorials/Changing_Minecraft_entity_models) (Wiki) +[Sounds list](https://minecraft.wiki/Sounds.json/Bedrock_Edition_values) (Wiki) # Behavior packs ### References -[Creating a behavior pack guide](http://minecraft.gamepedia.com/Tutorials/Creating_behavior_packs) (Wiki) -[Entity components for latest release](http://minecraft.gamepedia.com/Pocket_Edition_entity_components) (Wiki) -[Entity components for latest beta](https://minecraft.gamepedia.com/Bedrock_Beta_Add-On_Documentation) (Wiki) +[Creating a behavior pack guide](http://minecraft.wiki/Tutorials/Creating_behavior_packs) (Wiki) +[Entity components for latest release](http://minecraft.wiki/Pocket_Edition_entity_components) (Wiki) +[Entity components for latest beta](https://minecraft.wiki/Bedrock_Beta_Add-On_Documentation) (Wiki) [Loot table guide](http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-maps/mcpe-map-help-requests/2838965-custom-loot-tables-for-pe-win10) (Skylinerw) [UI format documentation](https://github.com/bleonard252/mc-uijson/wiki) (bleonard252) @@ -55,5 +55,5 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Commands list](http://minecraft.gamepedia.com/Commands) (Wiki) -[Data values](https://minecraft.gamepedia.com/Bedrock_Edition_data_values) (Wiki) \ No newline at end of file +[Commands list](http://minecraft.wiki/Commands) (Wiki) +[Data values](https://minecraft.wiki/Bedrock_Edition_data_values) (Wiki) \ No newline at end of file diff --git a/debugging.md b/debugging.md index 2e7371bc..cb90c228 100644 --- a/debugging.md +++ b/debugging.md @@ -41,7 +41,7 @@ This page details information on common problems you might have with a command, * Try using `/say` to check whether its the selector or the rest of your command that's not working * In 1.12 and below, you cannot include more than one argument of the same type in a selector. `@e[tag=x,tag=y,tag=z]` will act the same as just `@e[tag=z]`, ignoring the previous arguments * Dropped item entities can have scoreboard tags, items in an inventory cannot. An item picked up then dropped will no longer have scoreboard tags applied to it -* [Selector arguments](http://minecraft.gamepedia.com/Commands#Target_selector_arguments) usually specify a maximum value, and adding `m` (or `_min` for scores) will specify a minimum value. E.G: +* [Selector arguments](http://minecraft.wiki/Commands#Target_selector_arguments) usually specify a maximum value, and adding `m` (or `_min` for scores) will specify a minimum value. E.G: * `l=9` will select anyone level 9 and **below**, `lm=9` will select anyone with level 9 and **above** * `score_x=5` will select anyone with score x of 5 and **below**, `score_x_min=5` will select anyone with score x of 5 and **above** * Specify both min and max to test for an exact value: `l=5,lm=5` @@ -52,15 +52,15 @@ This page details information on common problems you might have with a command, ## NBT -* Check the spelling, location, and capitalization of tags. References: [entity/world data](http://minecraft.gamepedia.com/Chunk_format), [player/item data](http://minecraft.gamepedia.com/Player.dat_format) +* Check the spelling, location, and capitalization of tags. References: [entity/world data](http://minecraft.wiki/Chunk_format), [player/item data](http://minecraft.wiki/Player.dat_format) * Try [pca's tag checker](https://pca006132.neocities.org/pcc/nbtcheck.html) * When testing data: * You must specify the tag's type. E.G: `/testfor @e {Marker:1b}` instead of just `/testfor @e {Marker:1}` * You must put the namespace before IDs. E.G: `/testfor @e {Item:{id:"minecraft:stone"}}` instead of just `/testfor @e {Item:{id:"stone"}}` * In a list, the same element can be matched multiple times. E.G: `{Motion:[0.0,1.7,2.5]}` matches `/testfor @e {Motion:[0.0,0.0,0.0]}`, as all `0.0`'s find the first `0.0` -* Item data from `/replaceitem` or `/give` is put in [the item's `tag` tag](http://minecraft.gamepedia.com/Player.dat_format#Item_structure), not directly in the item's root compound tag +* Item data from `/replaceitem` or `/give` is put in [the item's `tag` tag](http://minecraft.wiki/Player.dat_format#Item_structure), not directly in the item's root compound tag * Minecraft generally won't "fix" data inside an item's `tag` tag; if you give an item with `{ench:[{id:10,lvl:1}]}`, `id` and `lvl` will stay (and need to be tested) as integers, even though they're normally shorts -* A dropped item entity stores its item data [in an `Item` compound tag](http://minecraft.gamepedia.com/Chunk_format#Items_and_XPOrbs), not directly in the entity's root compound tag +* A dropped item entity stores its item data [in an `Item` compound tag](http://minecraft.wiki/Chunk_format#Items_and_XPOrbs), not directly in the entity's root compound tag * If you need to include quotes in a string, you'll need to "escape" them by putting \ in front of them. E.G: `{Command:"/say My name is \"\"!"}` * If you need to escape a second level, you need to escape both the quotes and the previous backslash E.G: `{Command:"/setblock ~ ~ ~ wall_sign 0 replace {Text1:\"{\\\"text\\\":\\\"hello!\\\"}\"}"}` * [Generators are handy](https://mcstacker.bimbimma.com) diff --git a/optimising.md b/optimising.md index 44602cdc..ef37a424 100644 --- a/optimising.md +++ b/optimising.md @@ -124,7 +124,7 @@ Using armor stands as markers? Strongly consider switching to area effect clouds These won't show up to spectators, which is a bonus if you don't want spectators to see your markers. If you want to see them for debugging purposes, turn on hitboxes (`F3 + B`). Armor stands should only be used where necessary, such as displaying an item or using `Motion`. -[Marker entities](https://minecraft.fandom.com/wiki/Marker) on the other hand are impossible to see, as they aren't even sent to the client, so you'd need to resort to other options to debug them. This however means that they have a competitive advantage when it comes to performance and should be used as a marker over the other options wherever possible. +[Marker entities](https://minecraft.wiki/wiki/Marker) on the other hand are impossible to see, as they aren't even sent to the client, so you'd need to resort to other options to debug them. This however means that they have a competitive advantage when it comes to performance and should be used as a marker over the other options wherever possible. Additionally they can store any kind of NBT data in their `data` NBT component (though storing abritrary data is probably better stored in the `storage` anyways). Remember from the previous section that selectors work by getting a list of all loaded entities, then narrowing that down. This means that extra entities increase the workload of every selector in your commands. In some cases, you could be able to use static coordinates rather than executing off of a marker entity. diff --git a/questions/amountitems.md b/questions/amountitems.md index 6499a442..cefcae71 100644 --- a/questions/amountitems.md +++ b/questions/amountitems.md @@ -2,7 +2,7 @@ ## Java -Using the [`clear`](https://minecraft.gamepedia.com/Commands/clear) command with a `[]` of 0 will return the amount of items a player has, without actually clearing any of them. +Using the [`clear`](https://minecraft.wiki/Commands/clear) command with a `[]` of 0 will return the amount of items a player has, without actually clearing any of them. That means we can use `execute store` to save that number somewhere and then execute depending on that: execute store result score @s diamonds run clear @s diamond 0 @@ -13,6 +13,6 @@ That means we can use `execute store` to save that number somewhere and then exe ## Bedrock -In the **1.18.20 beta** they added the [`hasitem`](https://minecraft.fandom.com/wiki/Target_selectors#Selecting_targets_by_items) target selector, which allows you to check for specific amounts (as [ranges](/wiki/questions/range)) of items in entities inventories. Below is an example, check the link above for more information. +In the **1.18.20 beta** they added the [`hasitem`](https://minecraft.wiki/wiki/Target_selectors#Selecting_targets_by_items) target selector, which allows you to check for specific amounts (as [ranges](/wiki/questions/range)) of items in entities inventories. Below is an example, check the link above for more information. execute @a[hasitem={item:apple,quantity=5..}] ~~~ run say I have 5 or more apples in my inventory \ No newline at end of file diff --git a/questions/angermob.md b/questions/angermob.md index 5ee43c46..d425fa6b 100644 --- a/questions/angermob.md +++ b/questions/angermob.md @@ -22,7 +22,7 @@ For example you can use a snowball, as this projectile does not deal damage to n _Info: In bedrock a lot of entities have a very defined set of other entities they can attack, as defined in their behavior pack. So if the below method doesn't work to anger them, make sure they're actually able to attack the target entity and change the behavior files accordingly!_ -Thanks to the introduction of the [`/damage` command](https://minecraft.fandom.com/wiki/Commands/damage) in 1.18.10 we can use this command to inflict fake damage from one entity onto another with relative ease: +Thanks to the introduction of the [`/damage` command](https://minecraft.wiki/wiki/Commands/damage) in 1.18.10 we can use this command to inflict fake damage from one entity onto another with relative ease: /damage entity_attack entity diff --git a/questions/blockdelay.md b/questions/blockdelay.md index 873f17ba..6bae8bed 100644 --- a/questions/blockdelay.md +++ b/questions/blockdelay.md @@ -58,4 +58,4 @@ This has several limitations: 2. Scheduling the same function before it is successfully ran will by default overwrite the previous schedule: if you schedule a function to happen in 5 seconds, then schedule the same function again before the 5 seconds are up, the new schedule will be the one that happens. **Since 1.15 you can now add the `append` argument as the last argument in the command, which circumvents this problem**. 3. It requires functions and thus datapacks to work. -See also: https://minecraft.gamepedia.com/Commands/schedule \ No newline at end of file +See also: https://minecraft.wiki/Commands/schedule \ No newline at end of file diff --git a/questions/commandcontext.md b/questions/commandcontext.md index f30c3d95..55b0bdb6 100644 --- a/questions/commandcontext.md +++ b/questions/commandcontext.md @@ -11,7 +11,7 @@ This context is first set when the command is run and consists of multiple parts All of which can be modified individually with the 1.13+ Java as well as 1.19.1+ Bedrock execute command. -See [the fandom wiki on the execute command](https://minecraft.fandom.com/wiki/Commands/execute) for which subcommands modify which context. +See [the Minecraft wiki on the execute command](https://minecraft.wiki/wiki/Commands/execute) for which subcommands modify which context. ## Defaults @@ -27,6 +27,6 @@ Functions _keep the context_ that they're run in. So a function run in chat will have the same defaults as any other command run from a player in chat. The same is true for a function command run from a commandblock, it will have the same context as any command run from a commandblock would. -A command run from either the `#minecraft:load` or `#minecraft:tick` [function tags](https://minecraft.fandom.com/wiki/Tag#Function_tags) will run positioned at world spawn (at the lowest end of the block, unlike the commandblock), rotated `0 0` and without an executing entity. +A command run from either the `#minecraft:load` or `#minecraft:tick` [function tags](https://minecraft.wiki/wiki/Tag#Function_tags) will run positioned at world spawn (at the lowest end of the block, unlike the commandblock), rotated `0 0` and without an executing entity. This allows a lot of [optimization](/optimising) since you can use a selector once, running the function as that entity and then refer to that entity as `@s` for the rest of the function. It also allows for [entityless raycasting](/wiki/questions/raycast#wiki_without_an_entity) as the position and rotation is preserved between function calls. \ No newline at end of file diff --git a/questions/compasstoplayer.md b/questions/compasstoplayer.md index b2a6b21d..8d0c7e56 100644 --- a/questions/compasstoplayer.md +++ b/questions/compasstoplayer.md @@ -35,8 +35,8 @@ update_compass.mcfunction ## 1.17+ (Java only) -In 1.17 we got [item modifiers](https://minecraft.fandom.com/wiki/Item_modifier), which allow us to modify an item live while it's in the players inventory, no need to drop it on the floor anymore (if you know which slot it is in). +In 1.17 we got [item modifiers](https://minecraft.wiki/wiki/Item_modifier), which allow us to modify an item live while it's in the players inventory, no need to drop it on the floor anymore (if you know which slot it is in). -In this case you follow the process of the 1.16 section above, but instead of storing it into an item entity you for example store it into the [command storage](https://minecraft.fandom.com/wiki/Commands/data#Storage) and then use the `copy_nbt` function in the item modifier to copy that data to the item. +In this case you follow the process of the 1.16 section above, but instead of storing it into an item entity you for example store it into the [command storage](https://minecraft.wiki/wiki/Commands/data#Storage) and then use the `copy_nbt` function in the item modifier to copy that data to the item. _Related: [Modify an item inside the players inventory](/wiki/questions/modifyinventory)_ \ No newline at end of file diff --git a/questions/detectitem.md b/questions/detectitem.md index c8af01b7..2958a4b6 100644 --- a/questions/detectitem.md +++ b/questions/detectitem.md @@ -51,7 +51,7 @@ _Only detecting the item in a players inventory is currently possible with comma #### since 1.18.20 -In the 1.18.20 beta they added the [`hasitem`](https://minecraft.fandom.com/wiki/Target_selectors#Selecting_targets_by_items) target selector, which allows you to check for specific amounts (as [ranges](/wiki/questions/range)) of specific items in specific amounts in entities inventories. Below are some examples, check the link above for more information. +In the 1.18.20 beta they added the [`hasitem`](https://minecraft.wiki/wiki/Target_selectors#Selecting_targets_by_items) target selector, which allows you to check for specific amounts (as [ranges](/wiki/questions/range)) of specific items in specific amounts in entities inventories. Below are some examples, check the link above for more information. A player with 5 or more apples in their inventory diff --git a/questions/giveitembedrock.md b/questions/giveitembedrock.md index 7eb9f35c..cca54f2b 100644 --- a/questions/giveitembedrock.md +++ b/questions/giveitembedrock.md @@ -36,6 +36,6 @@ It has the disadvantage that it can take a tick or two for the structure to be l **_Probably the best method currently available_** -Same as the structure block method, but instead of loading it with a structureblock, you load it using the [/structure](https://minecraft.gamepedia.com/Commands/structure) command. It has the advantage over the block method that you don't need to worry about the whole redstone block setting and the issues that come with that, you can just load the structure directly at the player in question and be done with it. +Same as the structure block method, but instead of loading it with a structureblock, you load it using the [/structure](https://minecraft.wiki/Commands/structure) command. It has the advantage over the block method that you don't need to worry about the whole redstone block setting and the issues that come with that, you can just load the structure directly at the player in question and be done with it. Make sure to save the structure with a structure void block inside, or the air might override whatever block the player is currently standing on. \ No newline at end of file diff --git a/questions/itemclick.md b/questions/itemclick.md index 89c26081..4f14af95 100644 --- a/questions/itemclick.md +++ b/questions/itemclick.md @@ -4,7 +4,7 @@ For item clicks we have to differentiate between leftclick and rightclick detect ## Left-click -This one is as easily explained as it is flawed: You can only detect left clicks, if you put something in front of the player to hit. Teleport some form of entity or mob that can take damage and has a hitbox directly in the players face or even over their head, so they have no other chance but to hit that entity. You can then "detect" the clicks either using an advancement with the `player_hurt_entity` trigger ([see here](https://minecraft.gamepedia.com/Advancements/JSON_format#minecraft:player_hurt_entity)) or with a scoreboard objective of type `minecraft.custom:minecraft.damage_dealt` ([see here](https://minecraft.gamepedia.com/Scoreboard#Criteria)). This method however has many obvious flaws: +This one is as easily explained as it is flawed: You can only detect left clicks, if you put something in front of the player to hit. Teleport some form of entity or mob that can take damage and has a hitbox directly in the players face or even over their head, so they have no other chance but to hit that entity. You can then "detect" the clicks either using an advancement with the `player_hurt_entity` trigger ([see here](https://minecraft.wiki/Advancements/JSON_format#minecraft:player_hurt_entity)) or with a scoreboard objective of type `minecraft.custom:minecraft.damage_dealt` ([see here](https://minecraft.wiki/Scoreboard#Criteria)). This method however has many obvious flaws: - you're blocking the player from hitting anything else but the entity in their face - you're also blocking the player from building and breaking blocks @@ -20,7 +20,7 @@ For rightclick detection we have [a lot of different ways](https://i.imgur.com/8 _Note: This works the same with the warped fungus on a stick._ -Mapmakers have for many years now exploited what is technically [a bug](https://bugs.mojang.com/browse/MC-112991): Carrots on sticks have the property that when you click with one in your main hand or nothing clickable in your main hand with the CoaS in your offhand, it increases a player's "used carrot_on_a_stick" score (`minecraft.used:minecraft.carrot_on_a_stick` see [here](https://minecraft.gamepedia.com/Scoreboard#Criteria)). Testing if a player is holding a carrot on a stick with a specific tag like `{shoot_fireball:1b}` and also has `[scores={used_CoaS=1..}]` will test if a player clicks with a custom carrot on a stick. (related: [detect what item a player is holding](/wiki/questions/detectitem)) +Mapmakers have for many years now exploited what is technically [a bug](https://bugs.mojang.com/browse/MC-112991): Carrots on sticks have the property that when you click with one in your main hand or nothing clickable in your main hand with the CoaS in your offhand, it increases a player's "used carrot_on_a_stick" score (`minecraft.used:minecraft.carrot_on_a_stick` see [here](https://minecraft.wiki/Scoreboard#Criteria)). Testing if a player is holding a carrot on a stick with a specific tag like `{shoot_fireball:1b}` and also has `[scores={used_CoaS=1..}]` will test if a player clicks with a custom carrot on a stick. (related: [detect what item a player is holding](/wiki/questions/detectitem)) This is the generally preferred method of doing this if it fits your situation, as its pros outweigh the cons. @@ -58,7 +58,7 @@ The models/item/carrot_on_a_stick.json file within the resource pack might end u ### Villager method -Spawn an invisible, NoAI, Silent dummy villager in front of the player and test if the player's "talked to villager" score increases (`minecraft.custom:minecraft.talked_to_villager`, see [here](https://minecraft.gamepedia.com/Scoreboard#Criteria)). +Spawn an invisible, NoAI, Silent dummy villager in front of the player and test if the player's "talked to villager" score increases (`minecraft.custom:minecraft.talked_to_villager`, see [here](https://minecraft.wiki/Scoreboard#Criteria)). Pros: - Works for any item. diff --git a/questions/modifyinventory.md b/questions/modifyinventory.md index e9dbf00b..2832de2d 100644 --- a/questions/modifyinventory.md +++ b/questions/modifyinventory.md @@ -6,7 +6,7 @@ _Java only, as NBT data is inaccessible in bedrock this article is irrelevant fo In snapshot [20w46a](https://www.minecraft.net/article/minecraft-snapshot-20w46a) the `/replaceitem` command was replaced by the `item` command, which, while keeping the replacing functionality from the now obsolete command, also allows for modifiers to be applied to (replaced) items and items to be copied from other sources. This is currently only in the snapshots and subject to change. However if it stays around for the full release, it would drastically improve on the previous methods of doing this. -Further information: https://minecraft.gamepedia.com/Commands/item +Further information: https://minecraft.wiki/Commands/item ## 1.16 and below diff --git a/questions/movetoscore.md b/questions/movetoscore.md index 8e63f6c6..b196f590 100644 --- a/questions/movetoscore.md +++ b/questions/movetoscore.md @@ -38,7 +38,7 @@ this does use a lot of commands but using a function it's fairly easy to do and ### 2: End Gateways -You can use end gateways to teleport the players to an exact location, see [this for more info.](https://minecraft.gamepedia.com/End_Gateway_(block\)#Data_values). +You can use end gateways to teleport the players to an exact location, see [this for more info.](https://minecraft.wiki/End_Gateway_(block\)#Data_values). Basically you can set its block NBT Data to `ExactTeleport:1b,ExitPortal:{X:1,Y:2,X:3}` using `data merge block` or `execute store` and then teleport the player into said portal. Thanks to `execute store` you can set the Exit Portal NBT dynamically: diff --git a/questions/playerkills.md b/questions/playerkills.md index d1f64fe7..3d3e6b70 100644 --- a/questions/playerkills.md +++ b/questions/playerkills.md @@ -4,9 +4,9 @@ _Related: [Detect Player Deaths](/wiki/questions/playerdeaths)_ ## Java -In Java this is easy, as there is a whole lot of [scoreboard objectives criteria](https://minecraft.gamepedia.com/Scoreboard#Criteria) for every entity you can kill in the game, using the format `minecraft.killed:minecraft.`, where `` is a valid type of entity. +In Java this is easy, as there is a whole lot of [scoreboard objectives criteria](https://minecraft.wiki/Scoreboard#Criteria) for every entity you can kill in the game, using the format `minecraft.killed:minecraft.`, where `` is a valid type of entity. -Alternatively you can use a [custom advancement using the `player_killed_entity` advancement trigger](https://minecraft.fandom.com/wiki/Advancement/JSON_format#minecraft:player_killed_entity) if you're using a datapack. +Alternatively you can use a [custom advancement using the `player_killed_entity` advancement trigger](https://minecraft.wiki/wiki/Advancement/JSON_format#minecraft:player_killed_entity) if you're using a datapack. ## Bedrock diff --git a/questions/raycast.md b/questions/raycast.md index d070cd1f..aac3478b 100644 --- a/questions/raycast.md +++ b/questions/raycast.md @@ -6,7 +6,7 @@ If you're trying to check whether an entity / player is looking at a specific en Raycasting (or more accurately in this context: ray marching) in minecraft commands describes a process of moving forward in small increments (basically "drawing" a line) until a certain condition is met. It has many possible usecases, most often it is used to check what a player/entity is looking at by following the looking direction. -A raycast is possible due to the introduction of [local coordinates](https://minecraft.fandom.com/wiki/Coordinates#Local_coordinates) (`^ ^ ^`) which allows a commands origin to be moved relative to the entities local coordinates instead of absolute or world based relative coordinates. +A raycast is possible due to the introduction of [local coordinates](https://minecraft.wiki/wiki/Coordinates#Local_coordinates) (`^ ^ ^`) which allows a commands origin to be moved relative to the entities local coordinates instead of absolute or world based relative coordinates. In all of the below examples we'll use a step-size of 0.1 blocks at a time. This is a reasonable compromise between error margin and performance hit, but depending on the usecase a smaller or larger step size is absolutely thinkable. diff --git a/questions/storeinventory.md b/questions/storeinventory.md index 08ae4c94..cce5e756 100644 --- a/questions/storeinventory.md +++ b/questions/storeinventory.md @@ -287,7 +287,7 @@ There are various problems that we need to work around by using the above method If it wasn't for this, we could just store the inventory in some NBT storage and copy it back to the player at a later date. But sadly Minecraft isn't built to be able to directly manipulate the player entity so we have to do a workaround in the first place. **Slot numbers are important** -When merging items into a chest (or other container) `Items` array, the game checks the data for some validity points, like whether it's even a proper item, whether it has a count, etc. One of the things the game checks is the `Slot` number. If this number is outside of a specific range (starting at 0, counting up however many slots a container has, so chest: 0-26, dispenser: 0-8, hopper: 0-4), this item will be discarded as well. This means, since a [player inventory](https://gamepedia.cursecdn.com/minecraft_gamepedia/b/b2/Items_slot_number.png) has the slots 0 - 35 (inventory), plus 100 - 103 (armor) and -106 (offhand), we need to do some editing beforehand to modify / remove the `Slot` data so the items aren't discarded by the game. +When merging items into a chest (or other container) `Items` array, the game checks the data for some validity points, like whether it's even a proper item, whether it has a count, etc. One of the things the game checks is the `Slot` number. If this number is outside of a specific range (starting at 0, counting up however many slots a container has, so chest: 0-26, dispenser: 0-8, hopper: 0-4), this item will be discarded as well. This means, since a [player inventory](https://minecraft.wiki/images/Items_slot_number.png) has the slots 0 - 35 (inventory), plus 100 - 103 (armor) and -106 (offhand), we need to do some editing beforehand to modify / remove the `Slot` data so the items aren't discarded by the game. **One by one** Another trend you can see in the above solutions is that we're doing one item after another, instead of doing multiple at once. Especially with the yellow shulker box method, this might seem strange because on first thought one might think that it should be possible to just dump an entire array into the Items of the chest / box, and just letting it discard whatever doesn't fit anymore. If the items have slot numbers, that works as intended, but if the slot numbers are removed, instead of adding a new item, the slot 0 will be overwritten with each and every item, thus leading to only one item remaining. diff --git a/resources.md b/resources.md index ca07fab3..8599e84f 100644 --- a/resources.md +++ b/resources.md @@ -19,9 +19,9 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Chunk format](http://minecraft.gamepedia.com/Chunk_format) (Wiki) -[Player.dat format](http://minecraft.gamepedia.com/Player.dat_format) (Wiki) -[Structure file format](http://minecraft.gamepedia.com/Structure_block_file_format) (Wiki) +[Chunk format](http://minecraft.wiki/Chunk_format) (Wiki) +[Player.dat format](http://minecraft.wiki/Player.dat_format) (Wiki) +[Structure file format](http://minecraft.wiki/Structure_block_file_format) (Wiki) ## Commands @@ -40,8 +40,8 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Commands list](http://minecraft.gamepedia.com/Commands) (Wiki) -[Statistics list](http://minecraft.gamepedia.com/Statistics) (Wiki) +[Commands list](http://minecraft.wiki/Commands) (Wiki) +[Statistics list](http://minecraft.wiki/Statistics) (Wiki) [Full syntax tree (as JSON, useful for tools)](https://gist.github.com/Dinnerbone/7370a2846953eee2d8fc64514fb76de8) (Dinnerbone) ## Loot tables (& predicates) @@ -58,7 +58,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Guide](http://minecraft.gamepedia.com/Loot_table) (Wiki) +[Guide](http://minecraft.wiki/Loot_table) (Wiki) [Guide](https://github.com/skylinerw/guides/blob/master/java/loot%20tables.md) (Skylinerw) [New 1.14 features guide](https://gist.github.com/misode/66456e57372ce62cd9b65d1052521069) (Misode) @@ -74,7 +74,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Info](http://minecraft.gamepedia.com/Function) (Wiki) +[Info](http://minecraft.wiki/Function) (Wiki) ## Advancements @@ -90,7 +90,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References [Guide](https://github.com/skylinerw/guides/blob/master/java/advancements.md) (Skylinerw) -[Format](http://minecraft.gamepedia.com/Advancements#JSON_Format) (Wiki) +[Format](http://minecraft.wiki/Advancements#JSON_Format) (Wiki) [Biome list](https://pastebin.com/MK61Xuzf) (Skylinerw) [Order of trigger activations in a tick](http://i.imgur.com/pz5mU0G.png) (Skylinerw) @@ -125,7 +125,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References [Guide](https://github.com/skylinerw/guides/blob/master/java/text%20component.md) (Skylinerw) -[§ codes](http://minecraft.gamepedia.com/Formatting_codes) (Wiki) +[§ codes](http://minecraft.wiki/Formatting_codes) (Wiki) [§ codes](http://minecraft.tools/en/color-code.php) (Minecraft Tools) ## Give @@ -156,7 +156,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Chunk format](http://minecraft.gamepedia.com/Chunk_format) (Wiki) +[Chunk format](http://minecraft.wiki/Chunk_format) (Wiki) ## World editing @@ -175,7 +175,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Data values](http://minecraft.gamepedia.com/Data_values) (Wiki) +[Data values](http://minecraft.wiki/Data_values) (Wiki) [Building guides](https://www.reddit.com/r/Minecraft/comments/6eua5z/a_reminder_of_some_excellent_build_guidesbuilders/) (Adrian Brightmoore) [Biome colour-map](http://i.imgur.com/05QGuPX.png) (Word_Wizzard) @@ -188,7 +188,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Custom world type format](https://minecraft.gamepedia.com/Custom) +[Custom world type format](https://minecraft.wiki/Custom) [Noise settings examples](https://gist.github.com/misode/b83bfe4964e6bf53b2dd31b22ee94157) (Misode) [Vanilla worldgen reference files](https://t.co/cm3pJcAHcy) (Mojang) @@ -209,8 +209,8 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or ### References -[Model format](http://minecraft.gamepedia.com/Model) (Wiki) -[Sounds list](https://minecraft.gamepedia.com/Sounds.json/Java_Edition_values) (Wik) +[Model format](http://minecraft.wiki/Model) (Wiki) +[Sounds list](https://minecraft.wiki/Sounds.json/Java_Edition_values) (Wik) [Font json format](https://discordapp.com/channels/154777837382008833/154777837382008833/468913675017912320) (AmberW) [Shader `post` json format](https://discordapp.com/channels/154777837382008833/154777837382008833/490651571261014036) (Mrpingouin) [Shader `program` special variables](https://discordapp.com/channels/154777837382008833/306175724942000128/491380153960628231) (Mrpingouin) @@ -257,7 +257,7 @@ Submit a pull request or create a GitHub issue if you've found a useful tool or [Image to map](https://mc-map.djfun.de/) (MC Map Item Tool) [Image to map](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1261738-linux-windows-imagetomap-in-game-text-and-images) (ImageToMap) [Image to map](https://github.com/tryashtar/image-map/raw/master/Image%20Map/bin/Debug/Image%20Map.exe) (tryashtar) -[NBT reference](http://minecraft.gamepedia.com/Player.dat_format#Maps) (Wiki) +[NBT reference](http://minecraft.wiki/Player.dat_format#Maps) (Wiki) ### Animation