Pieces Options 2.0

Updated 2 years ago

Piece Options:

Most of these components can be deleted if you don't need them

  • name: Database name, must be unique per hammer (Required)
  • piecehammer: hammer that the piece is located in - Default Hammer (Required)
  • m_name: in game name
  • sizeMultiplier: Probably the coolest feature, make a whole world of giant pieces or very small pieces. Float any number range .05 to 100000
  • m_description: in game:
  • customIcon: You can set a custom icon for this piece, use a PNG or Jpeg 64 x 64 px. Icon needs to be in the Icon folder ( doesn't server sync)
  • clonePrefabName: name of the piece you would like to clone (Required if clone)
  • material:
  • damagedMaterial: material change of damaged (50% piece)
  • craftingStation: What craftingstation needs to be near you to build the piece. Default: $piece_workbench
  • piecehammerCategory: You can change this, but things will be wonky if you add or remove any mods (maybe in future will fix)
  • minStationLevel: Min crafting station for construction, you could require a lvl 4 forge for example for Portals
  • amount: Probably best if you don't change this
  • disabled: disable this piece for everyone, (Can't build new ones)
  • adminonly: enable this piece only for admins, automically disables for everyone else,
  • comfort:
    • confort: amount
    • ComfortGroup: like a category
    • comfortObject:
  • groundPiece: idk
  • ground: idk
  • waterPiece: idk
  • noInWater: cannot be place in water
  • notOnFloor: not inside on wood floor
  • onlyinTeleportArea: not sure how big a teleport area is, I think those rock formations are teleport zone, could be fun for an advanced Portal
  • allowedInDungeons: use wisely
  • canBeRemoved: Infinity Hammer go burrr
  • wearNTearData:
    • health: 0 or very high health makes stuff invincible due to rounding
    • noRoofWear- no weather wear for roof stuff
    • noSupportWear- idk
    • supports:
    • triggerPrivateArea- can't attack this thing inside bubble
  • craftingStationData:
    • CraftingStationName: too risky to touch, removed
    • cStationCustomIcon: You can set a custom icon for this piece, use a PNG or Jpeg 64 x 64 px. Icon needs to be in the Icon folder ( doesn't server sync)
    • discoveryRange: range that you discovery the piece for the first time
    • buildRange: how far build radius goes
    • craftRequiresRoof:
    • craftRequiresFire: cooking stations,
    • showBasicRecipes: idk
    • useDistance: how far away you can be while interacting
    • useAnimation:
  • cSExtensionData: pieces that upgrade craftstations levels
    • MainCraftingStationName: Should be craftingstation name
    • maxStationDistance:
    • continousConnection: animation of dots
    • stack: idk
  • smelterData:
    • smelterName:
    • addOreTooltip:
    • emptyOreTooltip:
    • fuelItem: You can change the fuel used to power your furance or whatever
    • maxOre: capacity of ore
    • maxFuel: capacity of fuel
    • fuelPerProduct: how much fuel per product
    • secPerProduct: seconds it takes
    • spawnStack: Spawn stack on completion
    • requiresRoof:
    • addOreAnimationLength:
    • smelterConversion: You can edit/delete or add conversions here, which in my opionion is realllly cool
  • build: requirements to build: Item:amount:amountPerLevel:refundable,

Put this somewhere cloneMaterial: You can change the material(colorish) of any (1.2.4) object. Images on nexus https://www.nexusmods.com/valheim/mods/1825 of the various changes you can make.

  • Use wackydb_material to view a list of materials. Probably up to a 1/3 don't work or make the object invisible. "material1,material2" (full,half health)(no spaces)
  • Otherwise "material1", one material results in material being pasted for both full health and half-health. "same_mat" or "no_wear" sets pieces to have no wear material.
  • Should work for any piece at full health, some pieces change textures and models at 3/4 and 1/2 health, this won't stop them from changing. Maybe in future.