Skip to content

Commit be6d81d

Browse files
committed
Add h4 to table of contents
[Downloads/TASmod] Update headings and add toc
1 parent 9894421 commit be6d81d

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

content/downloads/playback/tasmod.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "The main playback mod, currently only for version 1.12.2"
66
weight: 02020100
77
next: false
88
prev: false
9+
toc: true
910
---
1011

1112
{{<rawhtml>}}
@@ -16,17 +17,17 @@ A [Tool-Assisted Speedrun](https://tasvideos.org/WelcomeToTASVideos) mod for Min
1617
Adds tools such as input playback, slowdown and savestates for creating TASes,
1718
which aim to beat the game as fast as possible.
1819

19-
# Installation
20+
## Installation
2021
This mod uses the modloader [LegacyFabric](https://legacyfabric.net/), a fork of [Fabric](https://fabricmc.net/) for versions below 1.14.4.
2122
**Does NOT need LegacyFabric-API**
22-
# Features
23-
## Playback
23+
## Features
24+
### Playback
2425
This mod can record and play back
2526
- The entire keyboard, minus TASmod keybinds (see below).
2627
- Gui-Screens like crafting, the pause menu and the main menu! (Except the keybinding screen)
2728
- Any screen size and window size (No warranties here...)
2829

29-
### Commands
30+
#### Commands
3031
`/record` - Start a recording. This will record inputs to RAM. Closing the game will empty these inputs.
3132
`/play` - Start to play back the stored inputs.
3233
`/save <filename>` - Save stored inputs to a file.
@@ -40,26 +41,26 @@ This mod can record and play back
4041

4142
`/filecommand <filecommandname>` - Enables/Disables certain FileCommands in the TASfile, which are special lines in the TASfile that will trigger actions, when the playback reaches over that point.
4243
`/folder <tasfiles|savestates>` - Opens the folder for tasfiles or savestates in the file explorer
43-
### Keybinds
44+
#### Keybinds
4445
<kbd>F10</kbd> - Stops either a playback or a recording.
4546

46-
## Savestate
47-
### Commands
47+
### Savestate
48+
#### Commands
4849
`/savestate` - Prints a full guide to the savestate command in chat.
49-
### Keybinds
50+
#### Keybinds
5051
<kbd>J</kbd> - Make a new savestate.
5152
<kbd>K</kbd> - Load the most recent savestate.
5253

53-
## Tickratechanger (Slowdown)
54-
### Commands
54+
### Tickratechanger (Slowdown)
55+
#### Commands
5556
`/tickrate <ticks/second>` - Changes the game speed. Default is 20, anthing below will slow the game down, anything above will speed it up.
56-
### Keybinds
57+
#### Keybinds
5758
<kbd>.</kbd> - Increases the tickrate in steps
5859
<kbd>,</kbd> - Decreases the tickrate in steps
5960
<kbd>F8</kbd> - Enter "Tickrate 0". The game is paused but you can still look around.
6061
<kbd>F9</kbd> - While in tickrate 0, advance the tick by 1. By holding keyboardkeys, you can make inputs while tickadvancing.
6162

62-
## Multiplayer support
63+
### Multiplayer support
6364
**Important:** This is **NOT** a clientside mod, a server side installation is required a.k.a This doesn't work on Hypixel, 2b2t etc. These servers will **NEVER** be supported.
6465

6566
Record TASes with friends! Needs operator permissions to run tasmod related commands.
@@ -69,10 +70,10 @@ Record TASes with friends! Needs operator permissions to run tasmod related comm
6970
/fullrecord, /fullplay and /restartandplay are not guaranteed to work in multiplayer at this time.
7071
{{</note>}}
7172

72-
## HUD
73+
### HUD
7374
When ingame, hitting <kbd>F6</kbd> will show you options for customising your HUD, with monitoring options and more. Even more options are available when KillTheRNG is installed.
7475

75-
# Credits
76+
## Credits
7677
Author of the original prototype: [tr7zw](https://github.com/tr7zw/MC-TASmod)
7778
Main Mod Author: Scribble
7879

hugo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ title = 'Home'
1919
noClasses = false
2020
tabWidth = 4
2121
[markup.goldmark]
22-
renderer.unsafe = true
22+
renderer.unsafe = true
23+
[markup.tableOfContents]
24+
endLevel = 4

static/js/toc-highlighter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const observer = new IntersectionObserver(entries => {
22
entries.forEach(entry => {
33
const id = entry.target.getAttribute('id');
4-
const element = document.querySelector(`nav li a[href="#${id}"]`)
4+
const element = document.querySelector(`#TableOfContents a[href="#${id}"]`)
55
if (!element){
66
return
77
}
@@ -14,6 +14,6 @@ const observer = new IntersectionObserver(entries => {
1414
});
1515

1616
// Track all sections that have an `id` applied
17-
document.querySelectorAll('h2[id], h3[id]').forEach((section) => {
17+
document.querySelectorAll('h2[id], h3[id], h4[id]').forEach((section) => {
1818
observer.observe(section);
1919
});

0 commit comments

Comments
 (0)