-
-
Notifications
You must be signed in to change notification settings - Fork 66
Crossbow Cartridges - Fix torch place fail playing placement sound #1231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Crossbow Cartridges - Fix torch place fail playing placement sound #1231
Conversation
...ow_cartridges/data/gm4_crossbow_cartridges/function/projectile/copper_torch/check.mcfunction
Outdated
Show resolved
Hide resolved
…into crossbow-cartridges-torch-sound-fix
|
Also added copper torch to Anyway these changes are now tested in game and work as intended |
| # place block sound | ||
| playsound minecraft:block.wood.place block @a[distance=..15] | ||
| execute unless score $torch_placed gm4_cb_misc matches 1 run loot spawn ~ ~ ~ loot minecraft:blocks/copper_torch | ||
| execute unless score $torch_placed gm4_cb_misc matches 1 run playsound minecraft:entity.item.pickup block @a[distance=..15] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the score checks are correct here. They need to be opposite conditions. If the torch was placed, you play the sound, otherwise you spawn the loot table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sound is for the item dropping so they should both happen at the same time. The sound for placing the torch is run from the place function, it was moved there and this item drop sound was added.
Closes #1187