#This function will run on world loading or data pack loading