Started by
OQBdude123
on
Topic category: Advanced modding
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
Im pretty sure thats not possible yet. :/ sorry man. :(
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!
@#2 Cody, he probably wont give you credit. (no offence) Oh, and the flame thrower didnt work.. i tried. But, nice try :D
@#2.1 i did it in my mod and it worked fine
ok you add a recipe and make that recipe and make it get flamewhen made! wizzkar!
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
@#4 Also, make sure it's on shoot constantly.
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}
@#5 Ok... Try "when gun fired" and type custom code and put that in.
i dont think it works that way
i dont think it works that way
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.
For "spawns particles in the direction you are facing" customize the code below and also place this in your onItemRightClick method,
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.
I JUST REALIZED THIS IS A 4 YEAR OLD POST LOL
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