clonejo / mc-erl

mc-erl is a server for Minecraft 1.4.7 written in Erlang.
GNU General Public License v3.0
44 stars 6 forks source link

Generating block metadata when placing #15

Open dalbothek opened 12 years ago

dalbothek commented 12 years ago

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.

clonejo commented 12 years ago

this had btw already been done for torches

dalbothek commented 12 years ago

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.

clonejo commented 12 years ago

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