Modding Help Custom element

Discussion in 'Starbound Modding' started by lerdarim, May 19, 2020.

  1. lerdarim

    lerdarim Void-Bound Voyager

    Was adding elements changed lately? I'm trying to add my own element, added it in elementalTypes.config.patch , added particles damagenumbers, added an icon in interface, yet game doesn't even know about it. Is there some other place to register it?

    According to https://community.playstarbound.com/threads/adding-custom-elements.138920/ , it should be all i need, yet i get " (StarException) Unknown elemental type with name 'myown' " exception.

    The patch looks like that, i've rechecked the syntax three times, everything is correct, FU uses the same code for its elements.
    Code:
    [
      {
        "op": "add",
        "path": "/myown",
        "value" : {"resistanceStat" : "myownResistance"}
      },
      {
        "op": "add",
        "path": "/myown/damageNumberParticles",
        "value" :{
          "hit" : "myowndamagenumber",
          "stronghit" : "myowndamagenumberstrong",
          "weakhit" : "myowndamagenumberweak",
          "shieldhit" : "myowndamagenumber",
          "kill" : "myowndamagenumber"
        }
      }
    ]
    
     
  2. projectmayhem

    projectmayhem Spaceman Spiff

    Did you also make a damage file? myown.damage in the inside the damage folder?
     
  3. lerdarim

    lerdarim Void-Bound Voyager

    Yes, of course. It's basically a copy of some vanilla damage kind, with "elementalType" set to "myown".
     

Share This Page