How to make a flamethrower?

Started by OQBdude123 on

Topic category: Advanced modding

Last seen on 19:01, 3. Nov 2019
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a flamethrower?
Fri, 04/24/2020 - 11:52 (edited)

Hellooooooo. I am trying to make a flamethrower but I don't know how to do it. I know I want it to "throw" fire (FallingSand version of Fire) and spawn flame particles spreading out in a "stream" wherever and whenever I rotate or turn. How do I do that?

Edited by OQBdude123 on Fri, 04/24/2020 - 11:52
Last seen on 08:33, 15. Jul 2021
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im pretty sure thats not
Mon, 10/26/2015 - 22:51

Im pretty sure thats not possible yet. :/ sorry man. :(

Last seen on 09:13, 24. Nov 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok i have an idea but it
Wed, 10/28/2015 - 20:29

ok i have an idea but it might ot work completly so make an mcr file befor tryig ok?

anywho ill tell you step by step.

1.) click "make a new mod"

2.) click "gun"

3.) find a video on how to add enchantmetsand add flame 1 enchant

4.) add how much damage you want it to do and all that stuff

5.) to make it place fire go to "when bullet hits block"

6.) click "add block"

7.) click the fire

8.) finish with textures and crafting and TADA flame thrower.

also if your making it into a mod please give me some credit, thx!

Last seen on 08:33, 15. Jul 2021
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:ok i have an idea but it
Thu, 10/29/2015 - 00:36

@#2 Cody, he probably wont give you credit. (no offence) Oh, and the flame thrower didnt work.. i tried. But, nice try :D

Last seen on 09:13, 24. Nov 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:ok i have an idea but it
Sun, 11/15/2015 - 21:16

@#2.1 i did it in my mod and it worked fine

Last seen on 13:30, 12. Nov 2016
Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok you add a recipe and make
Mon, 11/16/2015 - 17:44

ok you add a recipe and make that recipe and make it get flamewhen made!                                                                                                             wizzkar!

Last seen on 14:42, 8. Mar 2022
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make it so the bullets have
Tue, 11/17/2015 - 01:36

Make it so the bullets have fire on. Then make the bow power very low and make it so that when the bullet hits the block it places fire. :D

Last seen on 14:42, 8. Mar 2022
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Make it so the bullets have
Tue, 11/17/2015 - 01:36

@#4 Also, make sure it's on shoot constantly.

Last seen on 19:01, 3. Nov 2019
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nope i meant something like
Thu, 02/11/2016 - 21:05

nope i meant something like this except not in commands

/summon FallingSand ~ ~1 ~ {Motion:[player facing x,0.5,player facing z],Block:fire,Data:0,Time:1,DropItem:0}

Last seen on 14:42, 8. Mar 2022
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:nope i meant something like
Mon, 02/29/2016 - 19:59

@#5 Ok... Try "when gun fired" and type custom code and put that in.

Last seen on 19:01, 3. Nov 2019
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont think it works that
Tue, 03/01/2016 - 22:46

i dont think it works that way

Last seen on 19:01, 3. Nov 2019
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont think it works that
Tue, 03/01/2016 - 22:48

i dont think it works that way

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First, I am using 1.15.2 and…
Sun, 05/31/2020 - 04:22

First, I am using 1.15.2 and can't get this command "/summon FallingSand ~ ~1 ~ {Motion:[player facing x,0.5,player facing z],Block:fire,Data:0,Time:1,DropItem:0}" to work so I don't have a visual of what you want. Secondly, if you want this, "'throw' fire (FallingSand version of Fire) and spawn flame particles spreading out in a "stream" wherever and whenever I rotate or turn. How do I do that?". If so, then why not create an item that shoots a burning invisible projectile and spawns particles in the direction you are facing??? That is what you want right?

For "create an item that shoots a burning invisible projectile" add the code below to your onItemRightClick method in your item. I am using a kunai but you can create whatever Projectile you want (in MCreator I think the projectiles are along the lines of CustomArrowEntity.YOUR_PROJECTILE). Note that the "0.0F"==pitchOffset, "1.75F"==velocity, and "1.0F"==inaccurcy.

        if (!worldIn.isRemote) {
            KunaiEntity kunaientity = new KunaiEntity(worldIn, playerIn);
            kunaientity.setItem(itemstack);
            kunaientity.shoot(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, 0.0F, 1.75F, 1.0F);
            worldIn.addEntity(kunaientity);
        }

For "spawns particles in the direction you are facing" customize the code below and also place this in your onItemRightClick method,

        worldIn.addParticle(ParticleTypes.FLAME, playerIn.getPosX(), playerIn.getPosY(), playerIn.getPosZ(), WhateverXSpeedYouWant, WhateverYSpeedYouWant, WhateverZSpeedYouWant);

I really don't know what you want but this should give you a start. This code is optimized 1.15.2 by the way, but may still work.

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I JUST REALIZED THIS IS A 4…
Sun, 05/31/2020 - 04:24

I JUST REALIZED THIS IS A 4 YEAR OLD POST LOL

Last seen on 17:12, 8. Jul 2020
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you are updated to 2020.3…
Sun, 05/31/2020 - 06:39

if you are updated to 2020.3 you will find this topic very easy as there is now a procedure that shoots custom projectiles and you can just add particles in front of the players position.

I believe this topic should be closed now