KITS API

Published 1st Oct 2022 by ADMIN

KITS API It is a pack that will allow you to store kits in your realm, world or server. Being able to remove them, claim them or simply view their content in a custom entity

HOW TO SETUP

In order to use this addon you will have to have the "staff" tag make sure of this or you will not be able to open the user interface that allows you to do everything.

MODULES

-Create kit

This module will allow you to create a kit, you must set its name and description, if you do not set the name it will throw an error, if you do not set the description it will be a default, After creating a name and a description, you must click on the button and the kit will be saved. Remember that you must have everything you want the kit to have in your inventory.

KITS API Discription Picture

 

-Remove kit

This module will allow you to remove a kit from the database, to delete it you have to select it in the dropdown the kit you want to remove (all the current kits on the server will appear in the dropdown)  Yand followed by this write "CONFIRM" in capital letters and without the quotes and the kit will be eliminated, if you write anything else nothing will happen, it will only return you to the interface 

KITS API Discription Picture

 

-View kit

This module will allow you to see the content of the kit in a custom entity, this entity has 36 slots and everything you have saved in the kit will be seen in it, how you can see in the following image you must select the kit you want to see 

KITS API Discription Picture

After selecting it and clicking the button, it will take you to the following interface:

KITS API Discription Picture

if you give return it will take you to choose again the kit you want to see, otherwise if you give Confirm it will spawn the custom entity in the position of your head, that means that if you give click or on mobile you keep the screen pressed or you get the button that says "open" will open the entity's inventory and everything that the kit contains will be there. 

THIS MODULE IS NOT RECOMMENDED, SINCE THE ENTITY WILL NOT DISAPPEAR AUTOMATICALLY, YOU HAVE TO DO IT MANUALLY WITH THE COMMAND /kill @e[type=thirty_six_slots_container]

(THIS WILL DROP THE ITEMS)

-Reclaim kit

This module will allow you to claim the kit, it is exactly the same as "Kit view" but in this case it will give you the items in your inventory, first select the kit you want to claim from the dropdown and it will take you to the interface where you confirm whether to claim it or not.

KITS API Discription Picture
KITS API Discription Picture

In case you return it, it will return you to choose the kit you want to claim and if you give it confirm, it will add all the items to your inventory. 

Example vídeo:

https://youtube.com/embed//m-fyQd5KvjE

Links:

Comments: 1

Very Good Post
May 23rd 2022
View 0 Replys

Leave a reply

Login to Comment