Modding:Block and Item Interactions: Difference between revisions
From Vintage Story Wiki
No edit summary |
No edit summary |
||
Line 66: | Line 66: | ||
public static SimpleParticleProperties particles = new SimpleParticleProperties( | public static SimpleParticleProperties particles = new SimpleParticleProperties( | ||
1, 1, | 1, 1, | ||
ColorUtil. | ColorUtil.ColorFromRgba(220, 220, 220, 50), | ||
new Vec3d(), | new Vec3d(), | ||
new Vec3d(), | new Vec3d(), | ||
Line 99: | Line 99: | ||
particles.MinVelocity = speedVec; | particles.MinVelocity = speedVec; | ||
Random rand = new Random(); | Random rand = new Random(); | ||
particles.Color = ColorUtil. | particles.Color = ColorUtil.ColorFromRgba(rand.Next(0, 255), rand.Next(0, 255), rand.Next(0, 255), 255); | ||
particles.MinPos = pos.AddCopy(-0.05, -0.05, -0.05); | particles.MinPos = pos.AddCopy(-0.05, -0.05, -0.05); | ||
particles.AddPos.Set(0.1, 0.1, 0.1); | particles.AddPos.Set(0.1, 0.1, 0.1); | ||
Line 131: | Line 131: | ||
particles.MinVelocity = speedVec; | particles.MinVelocity = speedVec; | ||
Random rand = new Random(); | Random rand = new Random(); | ||
particles.Color = ColorUtil. | particles.Color = ColorUtil.ColorFromRgba(rand.Next(0, 255), rand.Next(0, 255), rand.Next(0, 255), 255); | ||
particles.MinPos = pos.AddCopy(-0.05, -0.05, -0.05); | particles.MinPos = pos.AddCopy(-0.05, -0.05, -0.05); | ||
particles.AddPos.Set(0.1, 0.1, 0.1); | particles.AddPos.Set(0.1, 0.1, 0.1); |