Well, ive finally debugged it and it works great now! what it is is a quick item use system thats great for rpgs. it takes up little space.
first, you need to know how to detect burrowing. once you do that you make an area where you select which item youre going to use for the slot. use deathcounters to track what item your using because its easier. now for your detecting burrowing triggers, put in the condtitions the amount of deaths used. in the conditions, just put a part that will subtract 1 item out of their stock and do the action. ill post a map shortly showing how to use it.
now whenever you burrow and you have an item in the slot, it will use the item