Two things

Number one: How would I detect an item in lava, and then have it turn into another? Say, throw in a piece of Ancient Debris, and out pops a piece of netherite scrap.

Number two: How can I detect for a turtle growing up, so it can drop more than one scute?