OpenMods / OpenPeripheral

https://openmods.info
MIT License
67 stars 25 forks source link

request: mystcraft writingdesk function to duplicate a page in a workbook #111

Closed mindwhip closed 10 years ago

mindwhip commented 10 years ago

I would like a function such as:

writingdesk.duplicatePage(workbookSlot, PageIndex) returns: index of new page in workbook

So I can write a program to supply copies of page to an output inventory while leaving the original page in the notebook in the writing desk. (This is currently done by right clicking a page in a notebook in a writing desk with ink.)

foone commented 10 years ago

I believe this was left out of the original writingdesk API because it was tricky to implement but it's definitely worth looking into, it'd be very useful.

foone commented 10 years ago

Implemented: https://github.com/OpenMods/OpenPeripheral/commit/c0904584817c306c03695ef93b86fc4699545bea

mindwhip commented 10 years ago

thanks Foone! your a Star!