Working with Minecart Blocks

Discussion in 'Development' started by Emirhan Akpınar, Jul 13, 2019 at 9:51 PM.

  1. Emirhan Akpınar

    Emirhan Akpınar Witch

    Messages:
    58
    GitHub:
    EmirhanWSD
    I want know how can i work with minecart blocks. How can i turn blocks around and how can i set minecart blocks. It is a block or falling sand? Thanks.
     
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    897
    GitHub:
    edwardthedog2
    Can you elaborate please?
     
  3. Destroyer57

    Destroyer57 Zombie

    Messages:
    259
    Minecarts are not blocks. and not implemented by pocket mine. Its not sand and not a block
     
  4. wolfdale

    wolfdale Zombie

    Messages:
    319
    Spawn a minecart then set the
    PHP:
    Entity::DATA_MINECART_DISPLAY_BLOCK
    flag with the block runtime id, which is an int
    Then set
    PHP:
    Entity::DATA_MINECART_HAS_DISPLAY
    flag to 1, it is a byte
    To turn it just change the yaw of the minecart
     

Share This Page

  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.