Skip to content

Instantly share code, notes, and snippets.

View AitorAstorga's full-sized avatar
🇪🇺

Aitor AitorAstorga

🇪🇺
View GitHub Profile
@Thadah
Thadah / clearTeamsCache.ps1
Last active February 10, 2023 12:23
Clears Teams cache and restarts the application
# Gontzal Pujana 2023
# Set-ExecutionPolicy Unrestricted -Scope Process -Force -ErrorAction SilentlyContinue; ls -Recurse *.ps*1 | Unblock-File; .\"clearTeamsCache.ps1"
# Stop Teams Process
function Stop-Teams {
$teams = Get-Process -Name Teams -ErrorAction SilentlyContinue
if ($null -ne $teams){
Write-Host "Team Process Found, stopping..." -ForegroundColor Yellow
Stop-Process -Name Teams -Force
Start-Sleep 5

Adding Dependencies

Introduction

Adding Dependencies allows you to access hooks, tools and apis provided by other mods. Depending on other's code allows you to spend lesser time on writing your code, and more time on refining it. A commonly used dependency in fabric is Fabric API.

Adding the repository

Open your build.gradle file and add the required maven repositories

repositories {
    maven {
 name = "Example"