Furnitures and machines
How to create 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

1
table:
2
enabled: true
3
permission: table
4
model_id: 4
5
name: '&fTable'
6
lore:
7
- "&7Decorative item"
8
craft_recipe:
9
enabled: true
10
pattern:
11
- XXX
12
- WWW
13
- WXW
14
ingredients:
15
W: SPRUCE_PLANKS
Copied!

Example of useful furniture with trade menu

1
vending_machine:
2
enabled: true
3
permission: vending_machine
4
model_id: 16
5
name: '&fVending Machine'
6
lore:
7
- "&7Use it to get cool items"
8
specific_properties:
9
trade_machine:
10
name: 'Vending Machine' #title in the trade menu
11
trade_list:
12
hamburger: #first trade recipe
13
ingredients:
14
slot1: #item to be inserted in the first slot
15
item: COBBLESTONE #vanilla minecraft or custom item name
16
amount: 64 #amount needed
17
result:
18
item: hamburger #result item for first recipe
19
amount: 1
20
hotdog: #another trade recipe
21
ingredients:
22
slot1:
23
item: COBBLESTONE #vanilla minecraft or custom item name
24
amount: 64
25
slot2: #item to be inserted in the second slot
26
item: GRANITE #vanilla minecraft or custom item name
27
amount: 8
28
result:
29
item: hotdog #result item for second recipe
30
amount: 1
Copied!
trade_machine tag can also be used in blocks

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:

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