Auto GridMap for Godot 4

Godot Version

4.2.2

Question

Hi, I’m using GridMap for my game and I really need some kind of “auto-tile” functionality. Unfortunately I’m not experienced enough to code the system by myself.
I found some useful plugins for Godot 3.x, but I’m having trouble converting them to work properly on Godot 4.
This is the plugin I tried to convert:

I converted it successfully to Godot 4 (fixing all the errors) but the plugin doesn’t do anything when I try to draw on the GridMap (it works correctly on the 3.x version).
Please, can someone help me? :pensive:

Here the converted project for reference, if it could help.