1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Walk-Through

Discussion in 'Development' started by Remarkabless, Dec 30, 2017.

  1. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
    Hey, I can say I have enough amount of experience to create this plugin. I dont need codes(if it hels explain better than show code). But I want someone to talk me through how to use a /kit to open a chest and select kits from there. I know it uses tiles. Yes I know but hopefully someone can walk me through the whole process. Thanks
     
  2. OnTheVerge

    OnTheVerge Spider Jockey

    Messages:
    46
    Do you mean a "kit GUI"?
     
  3. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
    Like this where I can select like commands or kits.
     

    Attached Files:

  4. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    Use InventoryTransactionEvent
    PHP:
        public function onTransaction(InventoryTransactionEvent $event)
        {
            
    $transaction $event->getTransaction();
            foreach (
    $transaction->getActions() as $action) {
                if (
    $action instanceof SlotChangeAction) {
                    
    $target $action->getTargetItem();
                    
    $source $action->getSourceItem();
                }
            }
        }
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.