The idea is a simple script:
InvCreate [ID]
And
InvOpen [ID]
InvCreate
InvCreate would simply create a accesable inventory with an id and no block. It would not be usable in survival.
InvOpen
InvOpen would be able to open a accesable inventory with
an ID.