WeaponMechanics
All WikisDownloadDonate
  • Home
  • Weapon Modules
    • Info
    • Shoot
      • Spread
      • Recoil
    • Scope
    • Reload
      • Ammo
    • Skin
    • Projectile
      • Sticky
      • Bouncy
      • Through
    • Explosion
      • Block Damage
    • Damage
      • Damage Modifiers
    • Firearm_Action
    • Melee
  • Trigger
  • Addons
  • Common Questions
  • Developer API
    • Cloning Repository
    • Projectile Scripts
  • 📄Articles
    • Optimizing Explosions
Powered by GitBook
On this page
  1. Developer API

Cloning Repository

How to clone the WeaponMechanics repo

Last updated 1 year ago

Since WeaponMechanics uses net.minecraft.server code, we have to have a compiled server jar for every latest Minecraft version (1.12+). After cloning the GitHub repository, navigate to:

MechanicsMain -> lib -> download-spigot-lib.bat

Running that batch file will download the latest from Spigot and run it for each Minecraft version (<1.17). For Minecraft versions 1.17 and higher, we use , a Gradle plugin that automatically downloads the server jar. You only need to run this file once.

Afterward, I suggest running remove-craftbukkit-jars.bat and clean-buildtools.bat to delete all unnecessary downloads.

BuildTools
paperweight
YouTube tutorial