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

Working with Minecart Blocks

Discussion in 'Development' started by Emirhan Akpınar, Jul 13, 2019.

  1. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    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:
    962
    GitHub:
    edwardhamham
    Can you elaborate please?
     
  3. Destroyer57

    Destroyer57 Zombie

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

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    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
     
  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.