How to Make a Projectile in Minecraft (Mod Maker guide)

Learn how to create a custom Projectile in 9Minecraft Mod Maker right in your browser. This simple guide shows beginners how to build an entity that can be shot in any direction.

  1. Open the Studio and your workspace

    Open 9Minecraft Mod Maker directly in your web browser. You do not need to install anything on your computer to start modding.

    Create a new workspace or open an existing project. Make sure your workspace is set to a supported version, which includes NeoForge 26.1.2 or NeoForge 1.21.1.

  2. Add a Projectile element

    In your workspace, click the green plus button to add a new mod element.

    Look under the Mobs & entities group and choose Projectile. Give your new projectile a name to open the editor.

  3. Choose the look and hitbox size

    First, pick the Required item for the projectile. The projectile will look the same as the item texture you select here.

    If you want a custom shape instead, select a Projectile model and pick a Projectile model texture. Using a custom model will override the item texture parameter.

    Next, set the Projectile model bounding box to control the hitbox size in block units. The first option sets the width and depth, and the second option sets the height.

  4. Set sound, speed, and combat stats

    Choose a Projectile launch action sound to control the sound played when the projectile is shot.

    Adjust the Default projectile power to control the speed of your projectile. Then set the Default projectile hit damage, where a higher number deals stronger damage to the entity hit.

    Finally, set the Default projectile hit knockback. A higher number pushes the hit entity further away.

  5. Configure flight and landing rules

    Check Does projectile spawn particles in-flight if you want particles to be emitted in midair. You can also check Does projectile ignite fire on hit to light a fire when it hits a block, though this does not catch mobs on fire.

    Enable Remain on the ground after landing if you want to prevent the projectile from being discarded after landing on a block, which is great for trident-like projectiles that can be picked up.

    You can also check Disable gravity so the projectile moves in a straight line without falling, though setting a very high projectile power is usually a better option for realistic flight.

  6. Add custom procedures (Optional)

    If you want special events to happen, you can attach procedures to your projectile. Use When flying tick to run a procedure each tick while the projectile is flying.

    Use When hits block to execute a procedure at the x, y, and z coordinates of the block hit.

    You can also assign procedures to When hits entity for when it hits a living entity like a cow, creeper, or player, or use When hits player specifically for players.

  7. Test with Build & run and export

    Save your Projectile element once you are happy with all the settings.

    Click Build & run in the studio to test your projectile in action. When everything works the way you want, export your finished mod to share or play.

Tips

Try it in the Studio All projectile fields explained →