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
settings 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.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
.
You can add as many recipes as you want, by adding another recipe id (like the 1
in the example) with three rows each.
AIR
orempty
for an empty slot in the crafting gridthe id of another custom item (e.g.
defaultheart
)block or item tags by putting a
#
in front of the tag (e.g.#logs
or#wool
)
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
Last updated