How to Make a Ranged Item

Section

This tutorial will guide you through the whole process of making a new ranged item in MCreator.

Before you start

You will need to make a texture for both the ranged item and projectile either by an editing program such as Gimp or Paint.net, or you can simply use the embedded editor. If you need help making it, go to Making a new Texture.

Creation and naming

  • First, go to the workspace.
  • Next click on Create new element.
  • Type the name of your block. Names must not be repeated! The end-user will not see this name, so name it something that you can identify. One way you can prevent your block name from being repeated is to put the mod type before your mod name, Example: BlockSteel or ItemEnderStick.
  • Click next.

Ranged Item Properties

Ranged Item

  • Ranged item texture: Click the box to select the texture you imported earlier.
  • Ranged item 3D model: You can use Blockbench to create JSON models using the block/item workspace. OBJ files are also supported.
  • Special information about the item: This is the lore text for the item, similar to how potions display extra information about the item under the ranged item display name.
  • Creative inventory tab: This is the creative tab you can find this ranged item in creative mode.
  • Item animation: This displays the animation when the item is used. Possible animations:
    • eat
    • block
    • bow
    • crossbow
    • drink
    • none
    • spear
  • Max stack size: This is how many of your ranged items can fit in a stack.
  • Damage vs mob/animal: You can activate melee damage for your ranged item with this parameter, and set a value of the damage.
  • Item for ammo: This is the item to use as ammo for the ranged item. Leave empty to disable ammo requirement.
  • Shoot constant when active: If checked, the ranged item will constantly shoot when the player right-clicks it.
  • Item usage count: Set's the durability of the ranged item. Set 0 if stack size is larger than 1.
  • Ranged action sound: Set's the sound to play when the ranged-item shoots.
  • Enable item glow effect: Check this box if you want the item to shine like enchantment books or potions.

Projectile

  • Projectile power: Sets the power of the projectile. Projectile power affects damage and knockback.
  • Projectile damage: Sets the base damage of the projectile.
  • Projectile knockback: Sets the base knockback of the projectile. 
  • Has projectile particles: Check this box if you want the projectile to have particles.
  • Item representing texture of projectile: Click the box to select the projectile texture you imported earlier.
  • Projectile 3D model: You can use Blockbench to create JAVA model for the projectile
  • Projectile model texture: This texture is the texture of the projectile model if a custom model is used.

Triggers

On this page, you can find multiple triggers triggered with different actions and execute a procedure to do more actions. These triggers are either ranged item events or projectile events

Video tutorial

If you prefer to watch the video, you can find the wiki page above summarized in a video:



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.