1.13 get_block_at()

Discussion in 'CommandHelper' started by sat, Sep 13, 2018.

  1. sat

    sat Member


    At this time get_block_at(loc) return id, not a bloc name.

    is other function for return name of bloc ?
  2. sat

    sat Member

    ok, sorry...
    found get_blockdata_string() to use in remplacement ...

    sorry :p
  3. sat

    sat Member

    sorry for the flood,

    but in event : block_break , @event['block'] return DIRT
    but get_blockdata_string(loc) return minecraft:dirt

    this is normal ?¿ or a feature ?
  4. PseudoKnight

    PseudoKnight Well-Known Member Developer

    get_block() returns just the block type. (e.g. "WALL_SIGN") get_blockdata_string() returns a vanilla minecraft representation of the block state. (e.g. "minecraft:wall_sign[facing=north,waterlogged=false]")