Rainbows & Beams Datapack

Download the Datapack on Planet Minecraft

Rainbows & Beams Datapack 1.16+ v.4


Short Wiki:
-Rainbows can spawn after rain, chance is increased if you have the effect luck or you are in the flower forest. There are two kind of day rainbows: Regular and Strange.
There is also the Lunar Rainbow, a rainbow without light that seems white-green, it can spawn during the night after the rain.
-Day Rainbows disappear with the thunder, during the night or in general after some minutes(with the treasure/rainbow rock too).
-Regular Rainbows have also a treasure: you can take only one thing from that, but the rainbow will disappear fast(don't try to destroy the chest).
-Strange Rainbows have a Rainbow Rock(seems obsidian): when you mine it you have a small chance to get one of the 7 Rainbow Beam Blocks.
-Rainbow Beam Blocks create rainbows that give the player effects(it depends on the item in the item frame on the block); but you need to charge the block with emeralds.

Wiki

Rainbows general features
Day Rainbows

Day Rainbows can spawn after the rain. You can get a Strange Rainbow with a chance of 1/6 of rainbows.
Rainbows can't spawn in deserts
Rainbows can spawn only in the overworld
Rainbows disappear if it's raining, thundering or night, and it will remove all the things it created if you didn't take them.

Regular Rainbow

The regular rainbow is the classic Regular Rainbow, nothing strange. At the base of that there will be always a treasure: you can take only one thing from that then the rainbow and the treasure will disappear.

Strange Rainbow

The strange rainbow is very normal... no, that's not true: something strange happened at the beams of this rainbow, and now they have a strange shape.
Anyway, at the base of this rainbow you can find the Rainbow Rock(very hard and obsidianly), mining that you have chance(48/100) to find 1 of the 7 Beam Blocks.

Lunar Rainbow

Lunar Rainbow can spawn after rain during the night. It disappear soon or when the sub come. You can't find anything at the base of it. It is useless but his ray let you go from one side of the rainbow to the other.

Rainbow Beam Blocks

7 Types

There are seven types of that, one for each color of the rainbow.
More the block color is close to red, more the maximum beam distance will be.

Maximum Distance depending on the Beam Block color
Purple - 120
Blue - 130
Aqua - 140
Green - 150
Yellow - 165
Orange - 170
Red - 180

Charging

You have to charge the block, or it will not work.
To charge it, just put an emerald on that. For each emerald absorbed it will be active for 6 real life hours(64 Emeralds = 16 Days Playing).
When it is working(so it has to be charged) it will create green particles
If you mine the block you will not get back the emeralds.

6 Effects

You can use the these blocks to give the player 6 different effect, these effects will be given by a beam wich will start from the block and go to the nearest player in the available range, giving him, if it success to go to him(the beam can't pass through blocks) the effect you choose. The effect depends on the item wich is in the item frame above the beam block.

What items for what effects?
Remember to place the item frame with the item inside on the block or it will not work.
Enchanted Golden Apple = Saturation
Sugar = Speed
Phantom Membrane = Slow Falling
Ender Eye = Glowing
Diamond = Resistance
Heart of the Sea = Conduit Power