mc-erl icon indicating copy to clipboard operation
mc-erl copied to clipboard

Generating block metadata when placing

Open heapoutofspace opened this issue 14 years ago • 3 comments

Many blocks like stairs, levers, ladders, chests, etc. require the server to store their direction as metadata. The direction is usually derived from the direction the player looks.

heapoutofspace avatar Mar 24 '12 15:03 heapoutofspace

this had btw already been done for torches

clonejo avatar Mar 24 '12 16:03 clonejo

Just note that stairs (and many other blocks) don't have to face the block they are placed on like torches do. Use the direction the player looks instead.

heapoutofspace avatar Mar 24 '12 16:03 heapoutofspace

stairs are done.

Still remaining: levers, wall signs, pumpkins and jack-o-lanterns, slabs, redstone repeaters, pistons.

update: upside-down stairs done update 2: chests, furnaces, dispensers and ladders done

clonejo avatar Mar 27 '12 19:03 clonejo