justync7

dsfsd

May 24th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local x, y, z = 0, 128, 0
  2.  
  3. -- Create a chest
  4. w.setBlock(x, y, z, 54, 0)
  5.  
  6. -- Get an NBT table representing the contents of the chest
  7. local te = w.getTileEntity(x, y, z)
  8. local nbt = readTileNBT(te)
  9.  
  10. -- Add a stack of bedrock in slot 0
  11. table.insert(nbt.value.Items.value, {type="compound", value={id={type="short", value=7}, Count={type="byte", value=64}, Damage={type="short", value=0}, Slot={type="byte", value=0}}})
  12.  
  13. writeTileNBT(te, nbt)
Add Comment
Please, Sign In to add comment