Skip to content

Knawk/mc-MiniPracticeKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniPracticeKit v0.6

MiniPracticeKit (MPK) is a versatile Minecraft speedrunning practice kit that fits in a single command block.

You can use it to practice typical 1.16 Any% RSG splits with the built-in presets, or create your own presets to do any of the following and more:

  • set your inventory (set items, random items, or a mix of both)
  • set your gamemode and difficulty
  • teleport to the Nether/End
  • teleport to terrain near bastions/fortresses
  • teleport directly to the stronghold starter staircase
  • teleport to good blind travel coordinates (and optionally build a portal and/or go through to the Overworld)
  • locate structures (bastion, fortress, buried treasure, shipwreck, monument)
  • run your own commands on-demand (for example, to force the dragon to perch)

Skip to How to install and use MiniPracticeKit for download and usage instructions.

The MPK uses only vanilla Minecraft features: there's no need to install any mods or maintain a separate practice instance. Save it to a creative hotbar in your Ranked and main instances so you always have it on hand! It also works in Minecraft versions 1.15 to 1.20.4 - you can even directly copy your hotbar.nbt file between compatible instances and it'll just work.

Demo videos (click to watch)

Eye spy / Stronghold enter

Blind travel / Nether exit

(Full demo playlist)

How to install and use MiniPracticeKit

Installing MPK for the first time

  1. If your Minecraft instance is open, close it.
  2. Go to your instance's .minecraft folder. If there's a hotbar.nbt file there, make a copy as backup.
  3. Download hotbar.nbt and place it directly in the .minecraft folder.

Then start your Minecraft instance and continue to the Using MPK and presets section.

Using MPK and presets

  1. Create a new world in Creative mode.
  2. Load the slot-1 saved hotbar (with default controls, hold x and press 1). You should see several "preset barrels", and the MPK command block in the last slot.
  3. Drop the preset barrel for the split you want to play, and then place the MPK command block.

If you want to edit the inventory in the presets, make other changes, or create your own preset barrels, then see the How to customize MPK behavior section.

Updating MPK

If you haven't customized any of the presets, you can update the MPK by simply following the instructions in the Installing MPK for the first time section.

If you want to just update the MPK command block without losing your presets, you can do the following:

  1. Open or create a Minecraft world in Creative mode.
  2. Give yourself a command block by running /give @p command_block, and place it.
  3. Go to give-mpk.txt, and copy all of the text to your clipboard.
  4. Paste the text you just copied into the command block, and click "Done".
  5. Activate the command block (for example, with a button) to receive the latest MPK command block (you can hover over the item to see the version number).
  6. Replace the old MPK command block with the new one, and save your new hotbar (with default controls, hold c and press 1).

How to customize MPK behavior

When you activate the MiniPracticeKit, it looks for nearby trigger items to determine what actions to perform. For example, the Chest trigger tells the MPK to put the chest's contents in your inventory. They're designed to be easy to customize in-game so you don't need to download or learn any external tools.

For example, here's how you can customize the inventory of one of the built-in preset barrels:

  1. Place the preset barrel that you want to customize.
  2. Take out the Chest and/or the White Shulker Box from the barrel, and place them in the world.
  3. Add/remove/change any items that you want from the Chest and/or White Shulker Box. (Items in the Chest will be put in your inventory in exactly the same order, so you should put hotbar items there. Items in the White Shulker Box will be put in your inventory in a randomized order, so this is where you'd put items that are disorganized in your inventory during a run.)
  4. Hold CTRL and press pick-block on the Chest and/or White Shulker Box to save the updated items to your hotbar. (pick-block is bound to the middle mouse button by default.) You'll know you did this right if you see +NBT when you hover over the items.
  5. Put the updated items into the preset barrel you placed earlier, use CTRL + pick-block on the barrel to put it to your hotbar, and save your updated hotbar (with default controls, hold c and press 1).

You're done! Next time you load this hotbar and use your updated preset barrel with the MPK, you'll receive the customized items in your inventory.

Any time you want to customize behavior, you'll follow the same general workflow: place the preset barrel (step 1 above), change whatever you'd like (steps 2-4), then save the preset barrel back to your hotbar (step 5). For more details about what behaviors you can customize, continue reading in the Triggers and actions section.

Triggers and actions

The MPK's supported trigger items and the corresponding actions are described below.

Trigger Action Notes
Chest Give the items in the chest to the player. If multiple chests are found, items are given in the order that the chests were dropped. To get a chest with items into your inventory, hold CTRL and press pick-block on a chest with the items you want.
White Shulker Box Gives the items in the shulker box to the player, in a random order. To get a shulker box with items into your inventory, hold CTRL and press pick-block on a shulker box with the items you want.
Brown/Red/Orange/Yellow Shulker Boxes Picks one random shulker box of each color, and gives its items to the player. To get a shulker box with items into your inventory, hold CTRL and press pick-block on a shulker box with the items you want.
Netherrack, End Stone Teleport the player to the corresponding dimension. (Netherrack = Nether, End Stone = End) Incompatible with other teleport actions (and each other).
Obsidian Teleport the player to good first-ring blind coordinates. The number of obsidian items in the stack determine what happens at those coordinates. 1 item = build a portal and go through to the Overworld; 2 items = build a portal only; 3 items = don't build a portal. Incompatible with other teleport actions. Can be slow because it searches for open nether terrain.
End Portal Frame Teleport the player to a stronghold's starter staircase. Incompatible with other teleport actions. Always goes to the same stronghold in each world.
Gilded Blackstone, Blaze Rod Send in chat the coordinates of the related Nether structure(s) in each of the four close Nether quadrants, and put the player in teleport-waiting mode. In this mode, if you click on one of the coordinates in chat and press Enter/Return, then you will be teleported near those coordinates (at most 64 blocks away). (Gilded Blackstone = bastion, Blaze Rod = fortress) Incompatible with other teleport actions. To exit teleport-waiting mode, simply change gamemode.
Grass Block, Iron Sword, Map, Ender Eye Set the player's gamemode to Creative, Survival, Adventure, or Spectator, respectively. (The triggers match the F3+F4 gamemode menu icons.) Incompatible with each other.
Leather/Golden/Iron/Diamond Helmet Set the player's difficulty to Peaceful, Easy, Normal, or Hard, respectively. Incompatible with each other.
Heart of the Sea, Oak Boat, Prismarine /locate the related Overworld structure and show the coordinates in chat. (Heart of the Sea = buried treasure, Oak Boat = shipwreck, Prismarine = monument) Locating buried treasures in 1.19+ can be very slow.
Book and Quill Give the player a potion, that when thrown, runs each of the book's pages as a command. If the book is named (via anvil), the name is copied to the potion so you can tell it apart from others. Each page should contain a command exactly as it would be typed into chat: no extra space before or after, and no newlines. One potion is given per book.
Book and Quill, named "AUTO" Run each of the book's pages as a command. The commands are run after any teleport/gamemode/difficulty actions. Each page should contain a command exactly as it would be typed into chat: no extra space before or after, and no newlines.
Barrel Treat the items in the barrel as trigger items. This allows you combine several trigger items into a single trigger item, like the presets in hotbar.nbt. To get a barrel with items into your inventory, hold CTRL and press pick-block on a barrel with the items you want. Recursion is not supported; barrels inside barrels will not be "unpacked".

About

MCSR practice kit in a command block

Resources

Stars

Watchers

Forks