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

LuckyBlocks

Discussion in 'Development' started by b3st_Thunder78, Jul 13, 2019.

  1. b3st_Thunder78

    b3st_Thunder78 Spider Jockey

    Messages:
    38
    Hello,
    how do you program in pocketmine lucky blocks? So that one makes so that the block "§L§eLuckyBlock" means and if you break it down a random item gets?

    maybe a item array
     
  2. VirdSeater

    VirdSeater Spider

    Messages:
    7
    I don't understand one word.
     
  3. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Just set the custom name on the block and listen for specific block getting broken?
     
  4. VirdSeater

    VirdSeater Spider

    Messages:
    7
    don't understnad either
     
  5. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    You arent helping by saying that
     
  6. kriskotooBG

    kriskotooBG Spider Jockey

    Messages:
    46
    GitHub:
    kriskotoobg
    You aren't really helping by saying that...




    There are multiple ways of creating lucky blocks... easiest way is to create a new block using the BlockFactory, renaming it, and spawn an item at the block's location when the block is broken, If you need any help with the code just post the questions here! i will be more than happy to help you :)
     
  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.