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

Generate wall

Discussion in 'Development' started by Defications2po, May 7, 2017.

  1. Defications2po

    Defications2po Witch

    Messages:
    51
    Is there any way of generating a 16x16 wall using a bucket like when you tap it it generates a 16x16 wall
    i tried some stuff but tesseract was not with me. So is there a way where you can do it using Player InteractEvent if so can u plz help me with some code.
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You can use Level->sendBlocks to place multiple blocks in a small amount of time. Determining the coordinates for each block would depend on where in relation to the player you want the wall to be.
     
    XCodeMCPE likes this.
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    isnt send block client sided?
    there should be a directional vector to help with the direction
    as for the wall it's self you need math to calculate especially with diagonal walls
     
  4. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    sendBlock kind of is client-sided, but you can send the packet to all online players.
     
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    yes but OP never mentioned it to be temporary?
     
  6. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    I don't believe it is temporary. Either way, if it isn't what OP is looking for, he can say so. It's just a suggestion.
     
  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.