37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
# Darklord.js — spawnBloodBlockFx() (satır 1654)
|
||
|
||
[← Darklord.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function spawnBloodBlockFx(world, x, y, z, restoring)
|
||
{
|
||
var cx = x + 0.5;
|
||
var cy = y + 1.05;
|
||
var cz = z + 0.5;
|
||
|
||
if (restoring)
|
||
{
|
||
spawnDbParticle(world, "smoke", cx, cy, cz, 3, 0.18, 0.06, 0.18, 0.006);
|
||
spawnRedDust(world, cx, cy, cz, 0.45, 0.0, 0.0, 0.8);
|
||
}
|
||
else
|
||
{
|
||
spawnDbParticle(world, "largesmoke", cx, cy + 0.02, cz, 2, 0.16, 0.03, 0.16, 0.014);
|
||
spawnDbParticle(world, "smoke", cx, cy, cz, 4, 0.24, 0.08, 0.24, 0.012);
|
||
spawnRedDust(world, cx, cy + 0.02, cz, 0.18, 0.0, 0.0, 1.15);
|
||
|
||
for (var i = 0; i < 3; i++)
|
||
{
|
||
var ox = (Math.random() - 0.5) * 0.74;
|
||
var oz = (Math.random() - 0.5) * 0.74;
|
||
spawnRedDust(world, cx + ox, cy + 0.03, cz + oz, 0.11, 0.0, 0.0, 0.72 + Math.random() * 0.35);
|
||
}
|
||
}
|
||
|
||
if (((x * 31 + y * 13 + z * 17) & 7) === 0)
|
||
{
|
||
play(world, restoring ? "minecraft:block.lava.extinguish" : "minecraft:block.slime.place", cx, cy, cz, restoring ? 0.28 : 0.34, restoring ? 0.65 : 0.36);
|
||
}
|
||
}
|
||
```
|