# Furnitures and machines

### furnitures.yml

You can decide to create a simple furniture, with no real use that is just a decorative item or to add some cool functionality to your furnitures.\
An example is the vending machine, you can create a "trading machine" to allow players to trade junk and get cool items.

#### Example of decorative furniture

```yaml
table:
  enabled: true
  permission: table
  model_id: 4
  name: '&fTable'
  lore:
    - "&7Decorative item"
  craft_recipe:
    enabled: true
    pattern:
      - XXX
      - WWW
      - WXW
    ingredients:
      W: SPRUCE_PLANKS
```

<div align="left"><img src="/files/-Lb4VNiQfjcg3_PpsorQ" alt=""></div>

#### Example of useful furniture with trade menu

```yaml
vending_machine:
  enabled: true
  permission: vending_machine
  model_id: 16
  name: '&fVending Machine'
  lore:
    - "&7Use it to get cool items"
  specific_properties:
    trade_machine:
      name: 'Vending Machine' #title in the trade menu
      trade_list:
        hamburger: #first trade recipe
          ingredients:
            slot1: #item to be inserted in the first slot
              item: COBBLESTONE #vanilla minecraft or custom item name
              amount: 64 #amount needed
          result:
            item: hamburger #result item for first recipe
            amount: 1
        hotdog: #another trade recipe
          ingredients:
            slot1:
              item: COBBLESTONE #vanilla minecraft or custom item name
              amount: 64
            slot2: #item to be inserted in the second slot
              item: GRANITE #vanilla minecraft or custom item name
              amount: 8
          result:
            item: hotdog #result item for second recipe
            amount: 1
```

{% hint style="info" %}
**trade\_machine** tag can also be used in blocks
{% endhint %}

## Specific properties

#### trade\_machine

You can notice there is a special specific property named "**trade\_machine**", if you specify it in your config when player rightclicks the furniture a trade menu will be opened with different products:<br>

<div align="left"><img src="/files/-Lb4UTZq7SQG0jDMihjv" alt=""></div>

<div align="left"><img src="/files/-Lb4VCNb1LwV3gZmvs_9" alt=""></div>

####

####

####

#### has\_gravity

You can specify if the furniture has gravity\
\
\ <br>

#### fixed\_rotation

Set if the furniture must rotate based on player head or not when placed

#### small\_hitbox

Set if you want to use small hitbox (small armorstand) or not


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lonedev.gitbook.io/itemsadder/specific-items/furnitures-and-machines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
