Skip to content

Instantly share code, notes, and snippets.

@Twisted-Code
Created April 3, 2020 01:31
Show Gist options
  • Save Twisted-Code/93718ab772eff9de1c96c24df6143a3b to your computer and use it in GitHub Desktop.
Save Twisted-Code/93718ab772eff9de1c96c24df6143a3b to your computer and use it in GitHub Desktop.
a handy little gun for repairing mechs in Starbound. Repost https://www.reddit.com/r/starbound/comments/6eqru0/got_tired_of_my_mech_running_out_of_energy_so_i/ and all credit goes to the OP of that thread
/spawnitem commonmachinepistol 1 '{"level":6, "shortdescription":"Mech Repair Tool", "rarity":"essential", "twoHanded":true, "animationCustom":{"animatedParts":{"parts":{"middle":{"properties":{"image":"/items/active/weapons/ranged/machinepistol/middle/9.png?replace;808080=D3D3D3;606060=B2B2B2;404040=6E6E6E;e35f5d=58DEEE;b22042=2BC2D5;871132=098696", "offset":[0.8,1.1], "centered":false}}, "butt":{"properties":{"image":"/items/active/weapons/ranged/assaultrifle/butt/11.png?replace;808080=D3D3D3;606060=B2B2B2;404040=6E6E6E;e35f5d=58DEEE;b22042=2BC2D5;871132=098696", "offset":[-0.5,1.3], "centered":false}}, "barrel":{"properties":{"firePosition":[0,1.375], "image":"/items/active/weapons/ranged/assaultrifle/barrel/2.png?replace;808080=D3D3D3;606060=B2B2B2;404040=6E6E6E;e35f5d=58DEEE;b22042=2BC2D5;871132=098696", "offset":[1.2,1.1], "centered":false}}, "muzzleFlash":{"partStates":{"firing":{"fire":{"properties":{"image":"", "offset":[1.85,-0.09]}}}}}}}, "particleEmitters":{"muzzleFlash":{"offsetRegion":[0,1.25,0,1.25], "particles":[{"particle":"defaultorange"}, {"particle":"defaultorange"}, {"particle":"defaultred"}]}, "altMuzzleFlash":{"offsetRegion":[0,1.25,0,1.25], "particles":[{"particle":"defaultred"}]}}, "sounds":{"fire":["/sfx/objects/crystaltrap_off.ogg"], "altFire":["/sfx/objects/crystaltrap_on.ogg"]}}, "inventoryIcon":[{"image":"/items/active/weapons/ranged/machinepistol/middle/9.png?replace;808080=D3D3D3;606060=B2B2B2;404040=6E6E6E;e35f5d=58DEEE;b22042=2BC2D5;871132=098696", "position":[0.0,0.0]}, {"image":"/items/active/weapons/ranged/assaultrifle/barrel/2.png?replace;808080=D3D3D3;606060=B2B2B2;404040=6E6E6E;e35f5d=58DEEE;b22042=2BC2D5;871132=098696", "position":[8.0,0.0]}, {"image":"/items/active/weapons/ranged/assaultrifle/butt/11.png?replace;808080=D3D3D3;606060=B2B2B2;404040=6E6E6E;e35f5d=58DEEE;b22042=2BC2D5;871132=098696", "position":[-5.5,1.0]}], "muzzleOffset":[0.8,0.5], "baseOffset":[0,0], "primaryAbility":{"stances":{"idle":{"armRotation":0, "weaponRotation":0, "twoHanded":true, "allowRotate":true, "allowFlip":true, "weaponOffset":[-1,-2]}, "fire":{"duration":0, "armRotation":3, "weaponRotation":-6, "twoHanded":true, "allowRotate":false, "allowFlip":false, "weaponOffset":[-1,-2]}, "cooldown":{"duration":0.11, "armRotation":3, "weaponRotation":-6, "twoHanded":true, "allowRotate":false, "allowFlip":false, "weaponOffset":[-1,-2]}}, "baseDps":0.1, "energyUsage":60, "fireTime":0.6, "inaccuracy":0.02, "fireType":"auto", "projectileType":"electricbarrier", "projectileParameters":{"periodicActions":[{"time":0.01, "repeat":true, "action":"projectile", "type":"mechenergypickup", "config":{"speed":0, "bounces":0, "processing":"?0", "inaccuracy":0.0, "persistentAudio":"", "knockback":1, "timeToLive":0.01, "power":0.0}}], "bounces":0, "speed":20, "timeToLive":0.1, "power":2.5, "knockback":1, "actionOnReap":[]}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment