-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add bs.block:play_block_sound (#310)
- Loading branch information
1 parent
2c2dd05
commit d8c5775
Showing
8 changed files
with
140 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
modules/bs.block/data/bs.block/function/produce/block_sound/play_block_sound.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ------------------------------------------------------------------------------------------------------------ | ||
# Copyright (c) 2025 Gunivers | ||
# | ||
# This file is part of the Bookshelf project (https://github.com/mcbookshelf/Bookshelf). | ||
# | ||
# This source code is subject to the terms of the Mozilla Public License, v. 2.0. | ||
# If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Conditions: | ||
# - You may use this file in compliance with the MPL v2.0 | ||
# - Any modifications must be documented and disclosed under the same license | ||
# | ||
# For more details, refer to the MPL v2.0. | ||
# ------------------------------------------------------------------------------------------------------------ | ||
|
||
function bs.block:produce/block_sound/run with storage bs:in block.play_block_sound |
16 changes: 16 additions & 0 deletions
16
modules/bs.block/data/bs.block/function/produce/block_sound/run.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ------------------------------------------------------------------------------------------------------------ | ||
# Copyright (c) 2025 Gunivers | ||
# | ||
# This file is part of the Bookshelf project (https://github.com/mcbookshelf/Bookshelf). | ||
# | ||
# This source code is subject to the terms of the Mozilla Public License, v. 2.0. | ||
# If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Conditions: | ||
# - You may use this file in compliance with the MPL v2.0 | ||
# - Any modifications must be documented and disclosed under the same license | ||
# | ||
# For more details, refer to the MPL v2.0. | ||
# ------------------------------------------------------------------------------------------------------------ | ||
|
||
$playsound $(sound) $(source) $(targets) $(pos) $(volume) $(pitch) $(min_volume) |
20 changes: 20 additions & 0 deletions
20
modules/bs.block/data/bs.block/tags/function/play_block_sound.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"__bookshelf__": { | ||
"feature": true, | ||
"documentation": "https://docs.mcbookshelf.dev/en/latest/modules/block.html#produce", | ||
"authors": [ | ||
"theogiraudet" | ||
], | ||
"created": { | ||
"date": "2025/01/25", | ||
"minecraft_version": "1.21.4" | ||
}, | ||
"updated": { | ||
"date": "2025/01/25", | ||
"minecraft_version": "1.21.4" | ||
} | ||
}, | ||
"values": [ | ||
"bs.block:produce/block_sound/play_block_sound" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters