1. Guest, as per the stickied thread, this forum has not been in use since 2014. All bugs and feature requests should be posted to JIRA.

Bug [Development] Skull Placement Bug Solution.

Discussion in 'Bugs & Feature Requests' started by Nosma_Stew, Sep 13, 2017.

  1. When someone is trying to place a Skull Head as a block, the Skull is going to be placed a bit weird than it should be as you see in the picture:

    This mostly happening when someone is placing the Skull by doing #getBlock().setType(<Type>)


    The best solution to avoid that and place the Skull Head as it should:

    Change this line to place it on the surface of the block:

    Code (Text):
    location.getBlock().setTypeIdAndData(Material.SKULL.getId(), (byte) 1, true);

    Data values determine the block placement:

    • 0x1: On the floor (rotation is stored in the tile entity)
    • 0x2: On a wall, facing north
    • 0x3: On a wall, facing south
    • 0x4: On a wall, facing east
    • 0x5: On a wall, facing west
    See: http://www.minecraftwiki.net/wiki/Data_values#Heads

Share This Page