26 lines
819 B
Markdown
26 lines
819 B
Markdown
# IScriptWorld.testForBlock
|
|
|
|
[← IScriptWorld](index.md) · [← Master](../../wiki.md)
|
|
|
|
Parça 16/16 · [önceki](testForBlock-15.md)
|
|
|
|
player - The player that only should see the morph, or null for everyone.
|
|
|
|
shootBBGunProjectile
|
|
|
|
IScriptEntity shootBBGunProjectile(IScriptEntity shooter,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
double yaw,
|
|
double pitch,
|
|
java.lang.String gunPropsNbtString)
|
|
|
|
Shoots a gun projectile entity.
|
|
|
|
var projectile = c.getWorld().shootBBGunProjectile(c.getSubject(), 547, 160, 497, 0, -90, '{Gun:{TickCommand:"particle heart ~ ~1 ~ 0.2 0.2 0.2 1",StoredAmmo:0,Ticking:1,Damage:1.0f,Projectile:{Meta:0b,Block:"minecraft:stone",Name:"block"},Gravity:0.0f}}')
|
|
c.scheduleScript(20, function (c){
|
|
projectile.executeCommand("summon tnt ~ ~ ~")
|
|
projectile.remove()
|
|
});
|