I have tried several different ways to use /setblock to place a note block with a specific pitch and have it play when it is placed. If anyone can help, I would greatly appreciate it.
figured it out note blocks use block update detection to play notes so you have to make a setblock clock to constantly cause block updates around the note blocks. we can now turn giant noteblock sturctures into command block sturctures that trigger changes to note block tracks that are all in the same room
Fair, you might want to actually just try doing a fill air before you setblock with the note. That should fix your issue. This is similar to levers. If a lever is left on and a setblock is placed there the output will stay on unless you;
1. Block update it.
2. Delete the lever briefly then place a new one. Doong this with all chain commands work too.
I have tried several different ways to use /setblock to place a note block with a specific pitch and have it play when it is placed. If anyone can help, I would greatly appreciate it.
I know it's not ideal but you could try cloning it.
**Edit** Unless you are laying Java and have NBT tags but if not you might have to just try the clone.
figured it out note blocks use block update detection to play notes so you have to make a setblock clock to constantly cause block updates around the note blocks. we can now turn giant noteblock sturctures into command block sturctures that trigger changes to note block tracks that are all in the same room
Fair, you might want to actually just try doing a fill air before you setblock with the note. That should fix your issue. This is similar to levers. If a lever is left on and a setblock is placed there the output will stay on unless you;
1. Block update it.
2. Delete the lever briefly then place a new one. Doong this with all chain commands work too.
Setblock air--->setblock noteblock