---
description: How to create furnitures and machines
---

# 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="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb4Tpb2ACgFgYpWmZvW%2F-Lb4VNiQfjcg3_PpsorQ%2Fimmagine.png?alt=media&#x26;token=2cd8ead5-1f90-4231-ba89-a504a6dd316d" 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:\


<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb4Tpb2ACgFgYpWmZvW%2F-Lb4UTZq7SQG0jDMihjv%2Fimmagine.png?alt=media&#x26;token=b004c546-bacb-43f9-8b4c-5b33008ad10e" alt=""></div>

<div align="left"><img src="https://1214668154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lb2yL4HfyyLvT9V2pYq%2F-Lb4Tpb2ACgFgYpWmZvW%2F-Lb4VCNb1LwV3gZmvs_9%2Fimmagine.png?alt=media&#x26;token=adf3bf20-76c0-4c4d-8590-756f2ebe3bca" alt=""></div>

####

####

####

#### has\_gravity

You can specify if the furniture has gravity\
\
\
\


#### 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
