How to make a flamethrower?

Started by OQBdude123 on Mon, 10/26/2015 - 18:22

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 06:57, 30. Apr 2020
Joined Mar 2014
User points:

User statistics:

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

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

Last seen on 07:58, 22. May 2020
Joined Mar 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 06:57, 30. Apr 2020
Joined Mar 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 07:58, 22. May 2020
Joined Mar 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 00:44, 26. Feb 2020
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 00:44, 26. Feb 2020
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 00:44, 26. Feb 2020
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

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

i dont think it works that way

Last seen on 04:21, 1. Jun 2020
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.