Skip to content

Instantly share code, notes, and snippets.

@Zeitheron
Last active October 20, 2019 11:46
Show Gist options
  • Save Zeitheron/d3da4b5f8891c90106c0dc6535357259 to your computer and use it in GitHub Desktop.
Save Zeitheron/d3da4b5f8891c90106c0dc6535357259 to your computer and use it in GitHub Desktop.
Glowing entities! This example file lights up blazes and magma slimes with their respective colors.
{
"minecraft:magma_cube": [
{
"color": {
"red": "rng(0.6) + 0.4",
"green": "rng(0.1) + 0.3",
"blue": "0",
"alpha": "1"
},
"radius": "4 + 3 * flicker(5000)"
}
],
"minecraft:blaze": [
{
"color": {
"red": "rng(0.2) + 0.8",
"green": "rng(0.3) + 0.6",
"blue": "0",
"alpha": "1"
},
"radius": "6 + 4 * flicker(2000)"
}
]
}
@Zeitheron
Copy link
Author

Please take in consideration the fact that this is very CPU intensive algorithm and thus it's a "little bit" laggy. Use with care.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment