What are behaviours?
Behaviours are an already coded set of actions the item will do and which are not vanilla. These behaviours are already included in the plugin and will allow you to add some already coded functionality to your item.
You can get suggestions how how to use the behaviours using the official editor:
# This behaviour allows you to open a trade GUI with the following items
# For example black_fishing_rod and red_fishing_rod
title: "Your title"
permission: "mypermission.trade.example" # <--- this is optional
gui_texture: ###THIS IS OPTIONAL, use it only to retexture the GUI
# ....... it's the same as block_trade_machine
# When you rightclick with that item it will be placed on the ground with an
# armorstand. The armorstand will have the item as helmet and will be invisible.
entity: armor_stand # you can also use item_frame (works better on 1.16+)
opposite_direction: false #makes the model rotate 180 when placed
# If you add this behaviour and "furniture" behaviour you will be able to sit
# on the furniture at the defined height.
opposite_direction: true #default is true
# Sit on every BARRIER block of the furniture (for multi-seats chairs)
# Allows you to use this item as a gun. You can decide which projectile must
# be hold on left hand in order to shot.
# Allows you to use the current item as hat (same vanilla helmet behaviour)
# Allows you to make the item stay in player inventory on death
# Allows you to use the current item as a vanilla music disc.
# Remember that you will have to create a custom sound to be able
# to play something.
description: "Cdk - Sunday"
# Allows you to use the current item as a ridable vehicle
Last modified 6mo ago