{
  "$id": "https://offlands.net/schemas/v1/entity",
  "sprite": "offlands/sprite/entity/placeholder",
  "bounding_box": {
    "left": -8,
    "top": -16,
    "width": 16,
    "height": 16
  },
  "collision": {
    "type": "solid",
    "footprint": {
      "left": -8,
      "top": -6,
      "width": 16,
      "height": 6
    }
  },
  "interaction": {
    "hint": "offlands/string/forge",
    "on_interact": [
      {
        "type": "take",
        "items": [
          {
            "item": "offlands/item/copper_ore",
            "count": 2
          },
          {
            "item": "offlands/item/coal",
            "count": 1
          }
        ],
        "on_take": [
          {
            "type": "give",
            "item": "offlands/item/iron_sword"
          }
        ],
        "on_fail": [
          {
            "type": "notify",
            "channel": "system",
            "string": "offlands/string/anvil_needs_ore",
            "placeholders": [
              {
                "type": "item",
                "item": "offlands/item/iron_sword"
              },
              {
                "type": "item",
                "item": "offlands/item/copper_ore"
              },
              "2",
              {
                "type": "item",
                "item": "offlands/item/coal"
              },
              "1"
            ]
          }
        ]
      }
    ]
  },
  "name": {
    "en": "Anvil",
    "fr": "Enclume"
  }
}
