Adding Custom UIs!

How to add a Custom UI

This tutorial is about creating the config, we wont teach you how to create textures or add UIs into itemsadder

1) Under "plugins/VendingMachines/CustomUIs" create a new file and name it however you want.

2) Copy the default config (the following config) and edit it as you want.

# The identifier must be unique, and you must not change it.
# Its used by the VendingMachines to know what UI to use.
Identifier: Default UI
 
# This is the title that will be shown to players in the inventory (you can use colors with &)
CustomIAUI: Vending Machine!
 
 
# IS_2 and IS_3 can be used always but there is a simpler config for IA users.
 
# IS_2 is the left arrow itemstack, this is the default config which uses the item paper
# with a custom model data of 10000. Thats the default left arrow in the rp.
# You can use this methon always, but if you have IA, I recommend using that method.
IS_2:
==: org.bukkit.inventory.ItemStack
v: 3465
type: PAPER
meta:
==: ItemMeta
meta-type: UNSPECIFIC
display-name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"green","text":"Back"}],"text":""}'
custom-model-data: 10000
 
# Same as IS_2 but for right arrow.
IS_3:
==: org.bukkit.inventory.ItemStack
v: 3465
type: PAPER
meta:
==: ItemMeta
meta-type: UNSPECIFIC
display-name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"green","text":"Next"}],"text":""}'
custom-model-data: 10001
 
 
# IA_Material_2 and IA_Material_3 can be used only when IA is installed.
 
# those are the IA materials that should be used for arrow. Example
# Material_2: _iainternal:icon_left_blue
# Material_3: _iainternal:icon_right_blue
 
# You can also use Oraxen items EX:
# Material_2: vm_icon_left
# Material_3: vm_icon_right
 
 
# If you want to use the IA method remove IS_2 and IS_3 and uncomment the IA_Material_2 and IA_Material_3
 
 
 
# This is the config used to know where to put the items in the VM and where to put the arrows.
# 0 = empty.
# 1 = vendin machine item
# 2 = left arrow
# 3 = right arrow
Slots:
- - 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- - 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- - 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- - 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- - 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- - 2
- 0
- 1
- 1
- 1
- 1
- 1
- 0
- 3
That config will look like something like this:
 
attachment.jpg
 
The UI "IA UI 1.yml" looks like this:
 
attachment.jpg