23 lines
556 B
Markdown
23 lines
556 B
Markdown
# MercanRey3.js — slowInside() (satır 86)
|
||
|
||
[← MercanRey3.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function slowInside(entity)
|
||
{
|
||
applyPotion(entity, ["slowness", "slow"], 30, 3);
|
||
applyPotion(entity, ["blindness"], 30, 0);
|
||
applyPotion(entity, ["mining_fatigue", "dig_slowdown"], 30, 2);
|
||
applyPotion(entity, ["weakness"], 30, 1);
|
||
|
||
try
|
||
{
|
||
var motion = entity.getMotion();
|
||
|
||
entity.setMotion(motion.x * 0.2, motion.y * 0.6, motion.z * 0.2);
|
||
}
|
||
catch (e)
|
||
{}
|
||
}
|
||
```
|