I know you could change the element, but when I bring it in game, it shows the ice element but still does fire damage!
Code: /spawnitem flamethrower 1 '{"elementalType":"ice"}' Or whatever the ice element is named. [edit]It has come to my attention the element is FROST. So there ya go.[/edit] [edit2]Yeah I guess it is ice. Beats me - all I know is that's the proper syntax. [/edit2]
You are incorrect the elemental type code for ice would be "elementalType" : "ice" Otherwise you simply get either the orignal with no element icon(when spawning with your code) or a genericitem. TO make a frost thrower you would need to make a brand new abilitytype just for it do do ice and even then you would need to make a new projectile and that sort. To get a better idea look at all the code that the flame thrower uses. I have other things i am working on or else i would make it for you.
Yeah, I tried the /spawnitem flamethrower 1 '{"elementalType":"ice"}' but it just gives me a flamethrower that does the same kind of damage, but with an ice logo on the description, that's it.
Probably the flamethrower doesn't support Ice element damage and you will need to patch it and add the proper sprites for it to spit ice instead of fire. I had to do that with the Violium Sword only supporting physical damage, for example.
Go to the Starbound assets folder, look for [Starbound -> damage -> ice.damage] Open ice.damage with Notepad or Notepad++, and look at the damage type. The flamethrower you are using has it's own projectile, lets say, fire.projectile, and in this .projectile file it tells the game what damage type to use. Changing the elemental type of the flamethrower doesn't edit the projectile
if that doesn't work, is it possible to change the flamethrower projectile so it shoots something cold?
The projectile itself is the item telling the flamethrower what to shoot. You have to edit the projectile and patch it in a modpak
If you still need some help, you can copy and paste this into Starcheat. Right click a blank space then go to edit JSON. On the top part just right something random like asdf. On the bottom part paste in this: { "count": 1, "name": "flamethrower", "parameters": { "altAbility": {}, "altAbilityType": "fuelairtrail", "animation": "/items/active/weapons/ranged/gun.animation", "animationCustom": { "sounds": { "fireEnd": [ "/sfx/gun/flamethrower_stop.ogg" ], "fireLoop": [ "/sfx/gun/flamethrower_loop.ogg" ], "fireStart": [ "/sfx/gun/flamethrower_start.ogg" ] } }, "animationParts": { "barrel": "", "butt": "", "middle": "/items/active/weapons/ranged/flamethrower/flamethrower.png", "muzzleFlash": "" }, "baseOffset": [ 0.75, 0 ], "builder": "/items/buildscripts/buildunrandweapon.lua", "category": "^#00ccff;A Random Person Made This 0.0, kinda.", "description": "Love the smell of napalm, any time of day.", "elementalType": "fire", "inventoryIcon": "flamethrower.png", "itemName": "flamethrower", "itemTags": [ "weapon", "ranged" ], "level": 2, "maxStack": 1, "muzzleOffset": [ 2.5, 0.4 ], "price": 1500, "primaryAbility": { "baseDps": 10, "projectileParameters" : { "speed" : 30, "power" : 10 }, "energyUsage": 30, "projectileType": "largeicecloud" }, "primaryAbilityType": "flamethrower", "rarity": "Legendary", "scripts": [ "/items/active/weapons/ranged/gun.lua" ], "shortdescription": "Flamethrower", "tooltipKind": "gun", "twoHanded": true } } It should be a flame thrower that shoots clouds of ice. Feel free to change the base DPS or the power if you want.