[Mod] Basic Rainbow [0.1][rainbow]
Github: https://github.com/dgm3333/rainbow
Download: https://github.com/dgm3333/rainbow/archive/master.zip
This is a very simple mod, which provides a block which when punched generates a rainbow in the direction the player is facing. The rainbow will last approx 60secs
Lots of enhancements are possible, so feel free to comment or push any enhancements to github.
Options:
Could be a cool effect to occur at the end of a rainburst (from the weather mods)
Put nyancat head and tail on the ends of the rainbow.
A pot of gold at the end (or the top), if you were fast and ran up it you could collect the prize.
Make it 8 blocks high and use coloured wool to mark the separate colors of the rainbow.
Make it 8 blocks wide and have a fun road.
Make it disappear again when the block is punched a 2nd time.
...
It won't place rainbow in an area that hasn't been generated/travelled to. This could be fixed by rapidly teleporting the player along the path of the rainbow.
If you want it shorter or longer, then edit local targetWidth = 200 to the number of blocks.
If you don't want it to disappear, then comment out the minetest.register_abm({ function.
If you want it to go faster or slower then change the chance = 60, to (approx) the number of seconds you want it to take. BTW due to the way minetest only processes blocks close to players, you will probably have to be close for the gradual disappearance to occur.


Licence: WTFPL v2
Github: https://github.com/dgm3333/rainbow
Download: https://github.com/dgm3333/rainbow/archive/master.zip
Download: https://github.com/dgm3333/rainbow/archive/master.zip
This is a very simple mod, which provides a block which when punched generates a rainbow in the direction the player is facing. The rainbow will last approx 60secs
Lots of enhancements are possible, so feel free to comment or push any enhancements to github.
Options:
Could be a cool effect to occur at the end of a rainburst (from the weather mods)
Put nyancat head and tail on the ends of the rainbow.
A pot of gold at the end (or the top), if you were fast and ran up it you could collect the prize.
Make it 8 blocks high and use coloured wool to mark the separate colors of the rainbow.
Make it 8 blocks wide and have a fun road.
Make it disappear again when the block is punched a 2nd time.
...
It won't place rainbow in an area that hasn't been generated/travelled to. This could be fixed by rapidly teleporting the player along the path of the rainbow.
If you want it shorter or longer, then edit local targetWidth = 200 to the number of blocks.
If you don't want it to disappear, then comment out the minetest.register_abm({ function.
If you want it to go faster or slower then change the chance = 60, to (approx) the number of seconds you want it to take. BTW due to the way minetest only processes blocks close to players, you will probably have to be close for the gradual disappearance to occur.


Licence: WTFPL v2
Github: https://github.com/dgm3333/rainbow
Download: https://github.com/dgm3333/rainbow/archive/master.zip