Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MiNET fireworks example - all configs
var fireworks = new ItemFireworks() {Count = 64};
fireworks.ExtraData = ItemFireworks.ToNbt(new ItemFireworks.FireworksData()
{
Explosions = new List<ItemFireworks.FireworksExplosion>()
{
new ItemFireworks.FireworksExplosion()
{
FireworkColor = new[] {(byte) 0},
FireworkFade = new[] {(byte) 1},
FireworkFlicker = true,
FireworkTrail = false,
FireworkType = 0,
},
new ItemFireworks.FireworksExplosion()
{
FireworkColor = new[] {(byte) 1},
FireworkFade = new[] {(byte) 2},
FireworkFlicker = true,
FireworkTrail = false,
FireworkType = 1,
},
new ItemFireworks.FireworksExplosion()
{
FireworkColor = new[] {(byte) 2},
FireworkFade = new[] {(byte) 3},
FireworkFlicker = true,
FireworkTrail = false,
FireworkType = 2,
},
new ItemFireworks.FireworksExplosion()
{
FireworkColor = new[] {(byte) 3},
FireworkFade = new[] {(byte) 4},
FireworkFlicker = true,
FireworkTrail = false,
FireworkType = 3,
},
new ItemFireworks.FireworksExplosion()
{
FireworkColor = new[] {(byte) 4},
FireworkFade = new[] {(byte) 5},
FireworkFlicker = true,
FireworkTrail = false,
FireworkType = 4,
}
},
Flight = 1
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.