💎Custom Items
LifeStealZ introduces a custom heart and revive item, but you can add as many custom items as you wish!
If you want to delete the custom item with the ID defaultheart
, you will have to change the heartItem
in the config.yml
file to another item ID.
You can find all the custom items in the items.yml
file. Here you can add as many items as you want. Each item follows this pattern:
General item properties:
Replace
itemId
with an id for your item (only letters recommended), that will be used for permissions and commands.name
refers to the name of the item (Formatting rules apply here)lore
is a list lines, that will be displayed as the item description. You can use" "
for an empty line and the general formatting rules. You can add as many lines as you want.material
refers to the type of the item (e.g. Nether Star, Stick, Diamond Pickaxe). You can use any material from this list.enchanted
: Set this totrue
if you item should have an enchant glint.
Custom Textures
If you want to apply a custom texture from a TexturePack, you can set the customModelData
property to whatever you need.
Crafting
If you want your item to be craftable in a crafting table, you can set craftable
to true
. rowOne
, rowTwo
and rowThree
represent the first three rows in the crafting table. Each row has a list of three Materials, that represent the three items in that crafting table row.
You can also use the ID of another custom LifeStealZ item as a material in the Crafting recipe!
Custom Item Behavior
requirePermission
: If this is set to true, players will need to have thelifestealz.item.itemid
permission, whereitemid
is the ID of your item.customItemType
can be eithernone
,heart
orrevive
.none
: This item will have no special functionality and can be used in other LifeStealZ crafting recipes for example.heart
: This item will grant the user one or multiple hearts (see further config options in this category)revive
: This will make the item act as revive item. Players can use this item to revive eliminated players.
customHeartValue
: Here you can set how many hearts a user should get when using this item (only works whencustomItemType
is set toheart
)minHearts
: Here you can set the minimum amount of hearts a user needs to already have to be able to use this item.maxHearts
: Here you can set the maximum amount of hearts a user can have to be able to use this item. Setting it to -1 will disable this.
Custom Sound
If you want your to customize the sound your heart item makes when consuming it, you can refer to the sound
section. You can use any sound from this list as well as setting the volume and pitch. If you want, you can also disable the sound completely.
Last updated