tutorial:projectiles
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:projectiles [2020/11/16 22:05] – fixing my idiotic mistakes spxctreofficial | tutorial:projectiles [2021/06/18 14:08] – Update to 1.17 part 2 redgrapefruit | ||
---|---|---|---|
Line 256: | Line 256: | ||
@Override | @Override | ||
public void onInitializeClient() { | public void onInitializeClient() { | ||
- | EntityRendererRegistry.INSTANCE.register(ProjectileTutorialMod.PackedSnowballEntityType, | + | EntityRendererRegistry.INSTANCE.register(ProjectileTutorialMod.PackedSnowballEntityType, |
- | new FlyingItemEntityRenderer(dispatcher, | + | new FlyingItemEntityRenderer(context)); |
[. . .] | [. . .] | ||
} | } | ||
Line 400: | Line 400: | ||
@Override | @Override | ||
public void onInitializeClient() { | public void onInitializeClient() { | ||
- | EntityRendererRegistry.INSTANCE.register(ProjectileTutorialMod.PackedSnowballEntityType, | + | EntityRendererRegistry.INSTANCE.register(ProjectileTutorialMod.PackedSnowballEntityType, |
- | new FlyingItemEntityRenderer(dispatcher, | + | new FlyingItemEntityRenderer(context)); |
receiveEntityPacket(); | receiveEntityPacket(); | ||
} | } | ||
Line 409: | Line 409: | ||
Now, your projectile should be working in-game! Just make sure your textures are in the right place, and your item and projectile should be working. | Now, your projectile should be working in-game! Just make sure your textures are in the right place, and your item and projectile should be working. | ||
+ | |||
+ | If you would like to try out this projectile, download [[https:// | ||
[INSERT USABLE PICTURE HERE] | [INSERT USABLE PICTURE HERE] |
tutorial/projectiles.txt · Last modified: 2024/03/08 01:56 by netuserget