-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring Race Items
In this section, you will learn how to define race items. This covers race items which are given when you change a race or reclaim your items. These items by default will not be cleared when you change races and can be dropped like any normal item. However, using Race Abilities, you are able to make it to where abilities can be ran from these items only if you have the race selected that they belong to.
For this tutorial, we will be picking up from the Configuring Race Permissions page just for consistency. Adding items is quite easy, you just need to define the item key and then the item modifiers below. Refer to Item Syntax for how to define an item.
race:
name: Werewolf
max-level: 30
require-unlock: true
gui:
slot: 29
icon:
type: player_head
owner: Werewolf
display-name: "&cWerewolf &7| &aUnlocked"
lore:
- '&7At night, a dark curse falls upon'
- '&7this race turning it into a vicious'
- '&7werewolf!'
icon-selected:
type: player_head
owner: Werewolf
display-name: "&cWerewolf &7| &eSelected"
lore:
- '&7At night, a dark curse falls upon'
- '&7this race turning it into a vicious'
- '&7werewolf!'
enchants:
- unbreaking 1
item-flags:
- hide_enchants
icon-locked:
type: skeleton_skull
display-name: "&c??? &7| &cLocked"
lore:
- '&7Defeat the Feral Lycan to'
- '&7unlock this race.'
levels:
1: # The first level
xp: 200 # How much experience you need to level up
skillpoints: 1 # How many skillpoints you get for leveling up
2:
xp: 250
skillpoints: 1
3:
xp: 275 # You don't need to define skillpoints either, but you MUST define how much xp it takes for you to level up.
4:
xp: 300
skillpoints: 1
5:
xp: 350
skillpoints: 2
# You can define as many levels as you want below
attributes:
generic-max-health: 25
generic-armor: 5
generic-attack-speed: 10
max-mana: 250 # MagicSpells mana
permissions:
- essentials.sethome.multiple.werewolf
- essentials.nick
- essentials.tpa
- ^essentials.tpahere # Add ^ before the permission to remove it
- ^essentials.vanish
items:
vampireknives:
material: stone_sword
display-name: "&4V&campire &4K&cnives"
lore:
- "&cRight-click to throw!"
vampirefang: # You can define as many items as you want
material: ghast_tear
display-name: "&5V&dampire &4F&cang"
enchantments:
- sharpness 5
item-flags:
- HIDE_ENCHANTS
Unlike other features, race items can only be defined once. As of now a feature does not exist where you can define more items depending on levels or skillpoints, however the ability to add that feature in the future does exist. If you would like to see this addition, please let us know on our Discord.