Topic category: Help with modding (Java Edition)
I am working on the MCreator 2024.2 version and on the generator version 1.20.1 and I am creating a flamethrower there since so far this is the first version of the mod I want to make sure that if the player has it in his inventory he does not need cartridges, I created a projectile tied it to the flamethrower everything works as it should, it shoots there is a recharge, it sets mobs on fire, a particle appears but when I switch to survival mode, it does not shoot, and since I thought that by choosing air in the creation of the projectile, the flamethrower would not need projectiles to shoot, I did so, but even when I use the command to give myself air in survival mode, the flamethrower does not shoot
you have to manually create a procedure that shoots the projectile when the player clicks with the item
Never, NEVER do weird things such as using air as the item for a projectile... it does not count as the item you need to shoot it since ranged items don't exist anymore in MCreator. It will, however, probably define the texture of the projectile.
Putting air in there just overcomplicates the whole matter. Just make a normal item for the flamethrower, and then make a procedure to shoot the projectile you created when right clicking. In procedure blocks, there's an whole section dedicated to projectile procedures. Take a look, it's very easy.