Skip to content

Commit ed71ce5

Browse files
Add StopNoteblock() function details to README
Updated README to include the `StopNoteblock()` function and its usage example.
1 parent 3d9ad9e commit ed71ce5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ if err != nil {
3737
}
3838
```
3939

40-
Currently, there is no `StopNoteblock()` function. I wasn't able to test it due to a Minecraft DNS issue (from 2025-10-29 to 2025-10-30) that prevented me from joining a server. I will add this function once the issue is resolved.
40+
To stop a song, you can use the `StopNoteblock()` function. You can also use the lower-level `stopSong(eh *world.EntityHandle)` function if needed.
41+
42+
```go
43+
success := StopNoteblock(p.H())
44+
if success {
45+
// The song was successfully stopped
46+
} else {
47+
// No song was playing
48+
}
49+
```
4150

4251
## Known Issues and Limitations
4352

0 commit comments

Comments
 (0)