Links

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

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

Example of useful furniture with trade menu

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