> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/su-library-functions/su.goods/su.goods.addpileex.md).

# SU.Goods.AddPileEx

## SU.Goods.AddPileEx(x, y, goodType, amount)

Fügt **beliebig viele** Waren des angegebenen Waren-Typs um die Koordinaten hinzu, und erstellt automatisch entsprechend viele Warenstapel.

#### Parameter

* `x, y`: Koordinaten
* `goodType`: [Goods](/s4-lua-api-de/api-enums/goods.md)
* `amount`: Anzahl an hinzuzufügenden Waren

#### Beispiel

```lua
SU.Goods.AddPileEx(151, 22, Goods.SWORD, 80)    -- adds 80 swords
```
