I tried to make my own code to rotate my mesh on the y axis. It went well the first time, however, the more i tried to improve my code I realize I have no idea how to begin a script for rotating my mesh. I understand Euler angle-in order to rotate your mesh on y axis you must rotate x and z. I read the Transfrom3D Godot doc, but it was hard to understand. I have to ask how does one script to rotate left and right, and what do I look for?
rotation in Euler notation can be hard, because – as you also mentioned – the angle order matters. An alternative way for rotation are quaternions, but the concept is a bit harder to grasp. A third method is rotations with Basis, which I find a bit easier. All three types of rotation are available in Godot (see image below).
It should apply to any Node3D, but to make sure you can select your node in the Scene view and check if it is having a Transform section in the Inspector view.