diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml
index 6e1abd9..a2ffc8e 100644
--- a/.forgejo/workflows/build.yml
+++ b/.forgejo/workflows/build.yml
@@ -16,17 +16,17 @@ jobs:
 
 
       - name: Build for 1.21.1
-        run: mkdir artifact && mvn clean package && mv target/tweaks-*+1.21.1.jar artifact/
+        run: mvn package -Dproject.minecraft.version=1.21.1 -Dproject.nms.version=v1_21_R1
 
       - name: Build for 1.21.3
-        run: find src \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/v1_21_R1/v1_21_R2/g" && mvn clean package -Dproject.minecraft.version=1.21.3 && mv target/tweaks-*+1.21.3.jar artifact/
+        run: mvn package -Dproject.minecraft.version=1.21.3 -Dproject.nms.version=v1_21_R2
 
       - name: Build for 1.21.4
-        run: find src \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/v1_21_R2/v1_21_R3/g" && mvn clean package -Dproject.minecraft.version=1.21.4 && mv target/tweaks-*+1.21.4.jar artifact/
+        run: mvn package -Dproject.minecraft.version=1.21.4 -Dproject.nms.version=v1_21_R3
 
 
 
       - name: Upload artifacts
         uses: https://github.com/actions/upload-artifact@v3
         with:
-          path: artifact
\ No newline at end of file
+          path: target
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index a965a93..384a528 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,6 +16,8 @@
         21
         21
         UTF-8
+
+        v1_21_R1
         1.21.1
         ${project.minecraft.version}-R0.1-SNAPSHOT
     
@@ -29,6 +31,42 @@
             
         
         
+            
+                org.apache.maven.plugins
+                maven-antrun-plugin
+                3.1.0
+                
+                    
+                        custom-nms-version
+                        generate-sources
+                        
+                            run
+                        
+                        
+                            
+                                
+                                    
+                                
+                            
+                        
+                    
+                    
+                        cleanup-custom-nms-version
+                        package
+                        
+                            run
+                        
+                        
+                            
+                                
+                                    
+                                
+                            
+                        
+                    
+                
+            
+
             
                 org.apache.maven.plugins
                 maven-shade-plugin