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

spinning items in chest

Discussion in 'Development' started by DogTheBlock, May 21, 2017.

  1. DogTheBlock

    DogTheBlock Spider Jockey

    Messages:
    29
    is it possible to make items spin in a chest like PC when using a cratekey or whatever? if so can someone show me an example code or something. i haven't tried anything yet and probably won't because i don't know how
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Can you share a video example? It's kind of hard to visualize what you mean.
     
    Muqsit likes this.
  3. Michael

    Michael Baby Zombie

    Messages:
    113
    GitHub:
    michaelm04
    If your meaning the items in the chest change slots around every 0.3 seconds its possible, although not very performance efficient and I wouldn't recommend trying to do it, especially if your just looking to copy and paste code, you need to create a repeating task to shuffle the items in the chest randomly, then monitor thru InventoryTransactionEvent to make sure the player can't take the items out during shuffle, then after around 2 or 3 seconds set the chests result item. If you don't know PHP and/or PMMP API I wouldn't attempt this.
     
  4. DogTheBlock

    DogTheBlock Spider Jockey

    Messages:
    29
    wow this is harder then i thought :( , i guess ill just leave it as it is
     
    OnTheVerge and jasonwynn10 like this.
  5. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    jasonwynn10 likes this.
  6. DogTheBlock

    DogTheBlock Spider Jockey

    Messages:
    29
    nope haven't tried and probably won't , noting comes to my mind how to do this.
     
    jasonwynn10 likes this.
  7. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    I think I know how to spin items in a chest like that. But how can I make them "moving" and not randomly dropping?
     
  8. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    What is the name of sound which is used when spinning items?
     
  9. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    exp gain
    which sounds awful on MCPE...
     
  10. [deleted]

    [deleted] Guest

    Im currently writing a plugin like this, but I dont do it in a Chest, I do i it on the Players Inventory bar
     
    OnTheVerge and DogTheBlock like this.
  11. JackMD

    JackMD Silverfish

    Messages:
    22
    GitHub:
    jackmd
    I don't know if anyone will response but here is a video showing the plugin I compiled. It's exactly the plugin that you have described.
     
  12. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    RIP my headphone with this video
     
    JackMD likes this.
  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.