home » builders » builder's lessons » sample objects - pipes and tabacco

Sample objects - pipes and tabacco

Value3 on a pipe is its status. In most cases this will be set to 0. For a list of possible status flags check here. Value0 sets how much herb a pipe can hold, value1 is how much is currently in the pipe. Value2 is the herb type that the pipe will use. In general this will be normal tabacco which means you will set this value to 0.

#8540
corncob pipe~
{B0}a corncob pipe~
{B0}A pipe made of a corncob lies here.~
~
ITEM_TYPE_PIPE
0
CAN_WEAR_TAKE|CAN_WEAR_HOLD
QUALITY_AVERAGE MATERIAL_PLANT COND_PERFECT SIZE_TINY
2 2 0 0 0 0
E
corncob pipe~
{B0}It is a pipe made of a hollowed out cob of corn, stuck on
the end of a similarly hollowed out wooden stick.  What it
lacks in elegance it makes up for in price.
~

A pipe will also need herbs to go in it. Note that herbs are now type component.

#8146
tabacco~
{30}some tabacco~
{30}Some tabacco lies on the ground here.~
~
ITEM_TYPE_COMPONENT
0
CAN_WEAR_TAKE|CAN_WEAR_HOLD
QUALITY_AVERAGE MATERIAL_PLANT COND_PERFECT SIZE_MEDIUM
2 0 0 0 0 0