Enchanter
Enchanter configuration, economy and how to sell not only enchantments but other items - it's all explained here.

Available economy types

You can use any of these economy types when it comes to enchanter. Simply, changing between price configuration (explained further below Charge players for clicking items you can learn where to change prices)
    exp
    money
    level
    souls (works with items that are held when opening inventory)
    diamonds
    gold (gold ingots)
    emeralds

Configure Basic Items

To set up custom items in the enchanter that have no functionality is very simple and uses basic item formatting from all AE items:
1
'3':
2
item:
3
type: ANVIL
4
id: 0
5
force-glow: false
6
name: '&aOpen Tinkerer'
7
lore:
8
- '&7Open Tinkerer'
Copied!

Run commands with items

The item will have no functionality, but in the previous case, you might want to add item some functionality. We can do this by adding new settings to run a command:
1
'3':
2
item:
3
type: ANVIL
4
id: 0
5
force-glow: false
6
name: '&aOpen Tinkerer'
7
lore:
8
- '&7Open Tinkerer'
9
player-command:
10
- 'tinkerer'
Copied!

Charge players for clicking item

player-command will make the player run specified commands when clicked. You can as well use console-command to run commands from the servers console when the player clicks - this is especially useful when selling products in enchanter:
1
'2':
2
item:
3
type: PAPER
4
id: 0
5
force-glow: false
6
price: money:400
7
name: '&f&lWhitescroll &7(Click to buy)'
8
lore:
9
- '&fPrevents an item from being destroyed'
10
- '&fdue to a failed Enchantment Book.'
11
- '&ePlace scroll on items to apply.'
12
- ''
13
- '&b&lCOSTS &f$400'
14
console-command:
15
- 'ae giveitem %player% whitescroll 1'
Copied!

Sell custom enchantments

To simply sell custom enchantment books define the group to which it should target:
1
'4':
2
item:
3
type: STAINED_GLASS_PANE
4
id: 3
5
force-glow: false
6
enchant-group: ELITE
7
price: exp:2500
8
name: '&b&lElite Enchantment &7(Right Click)'
9
lore:
10
- '&7Examine to recieve a random'
11
- '&belite &7enchantment book.'
12
- ''
13
- '&b&lCOST &f2500 EXP'
Copied!
Last modified 3mo ago