magemonkeystudio / genesis

MIT License
8 stars 8 forks source link

implementing multiple slots through InventoryLocation #54

Closed MaksyKun closed 5 months ago

MaksyKun commented 5 months ago

Adds support for multiple Slots on the "InventoryLocation"-parameter as the following:

Use the parameter as always without impact: test-item.InventoryLocation: 3 # Item is set on slot 3

Use the parameter in a list of integers: test-item.InventoryLocation: [2,3,5,6] # Item is set on slots 2,3,5 & 6

Use the parameter as a stream of integers: test-item.InventoryLocation: "2:6" # Fills the slots 2-6 with this item

MaksyKun commented 5 months ago

As one of my examples: image