Overrided the default item behavior and then added custom logic for the item’s behavior: adds the full stack of the first item in the hot bar to every empty inventory slot. Logic run-down: use a for loop to iterate through the person inventory and check if the slot is empty, then copy the first item (stored first in a variable) to that empty slot.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.