You can no longer give a beacon potion effects outside of the normal beacon effects using commands
Steps to Reproduce
• Build a Beacon Pyramid
• Set the Beacon to any effect
• Stand on top of the beacon
• run /data merge block ~ ~-1 ~ {primary_effect:"minecraft:darkness"}
• Notice the beacon lose its active primary effect entirely, instead of gaining darkness
Attachments
Comments 3
Apparently this is a spigot feature - messed with it for fun on quite a few servers and took it for granted that it was in the base game
Probably should've thoroughly tested more for which version this last worked in - but assumed it was that snapshot because of the changes to beacons made in it
I seem to be unable to reproduce your expected behavior in a version prior to 23w31a, such as 1.20.1. In fact, it shouldn't even be possible per MC-91854 resolution. Please attach a video where you can see this working with F3 debug screen enabled.