tutorial:projectiles
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:projectiles [2022/02/09 20:42] – setVelocity haykam | tutorial:projectiles [2022/02/10 14:56] – [Creating a Projectile Item] tianjun | ||
---|---|---|---|
Line 205: | Line 205: | ||
snowballEntity.setItem(itemStack); | snowballEntity.setItem(itemStack); | ||
snowballEntity.setVelocity(user, | snowballEntity.setVelocity(user, | ||
+ | /* | ||
+ | snowballEntity.setProperties(user, | ||
+ | In 1.17,we will use setProperties instead of setVelocity. | ||
+ | */ | ||
world.spawnEntity(snowballEntity); | world.spawnEntity(snowballEntity); | ||
} | } |
tutorial/projectiles.txt · Last modified: 2024/03/08 01:56 by netuserget