How do I spawn a block (vine for example) facing a specific direction? (n/s/e/w)

Discussion in 'CommandHelper' started by malon, Sep 17, 2018.

  1. malon

    malon Member

    I honestly, for truly, promise I read through the stickied forum post about "upgrading to 1.13.1", but I didn't see this mentioned in there in a way that I could see.

    vanilla
    Code (Text):
    /setblock 0 0 0 minecraft:vine[north=true] replace
    So I tried to do:
    Code (Text):
    psend_block_change(@val,"minecraft:vine[north=true]")
    This throws the error:
    Code (Text):
    FormatException: Invalid item notation: minecraft:vine[north=true]
    i think it has something to do with set_blockdata_string(), but I'm not certain how I would use it in context with psend_block_change

    Thank you
    Last edited: Sep 17, 2018
  2. PseudoKnight

    PseudoKnight Well-Known Member Developer

    psend_block_change() does not support block states yet, but that creates fake blocks, unlike /setblock.
  3. malon

    malon Member

    @PseudoKnight

    Yes, I'm aware it sends fake blocks, I use to to allow spiderman to wallclimb so other players cant see the vines
  4. PseudoKnight

    PseudoKnight Well-Known Member Developer

    I'm adding support for it now.
  5. malon

    malon Member

    holy damn! really?! you the man, im just trying to update all my deprecated functions to real functions
  6. PseudoKnight

    PseudoKnight Well-Known Member Developer

    Okay, the build should be up shortly.
  7. PseudoKnight

    PseudoKnight Well-Known Member Developer

    I'm debating changing it again, though. Hm.
  8. malon

    malon Member

    @PseudoKnight

    Thats okay, you can change it again if needed

    For what it's worth tho, it's working great for me