-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By dotifo7120 · Posted
I'm sending packets to my mod using sendPluginMessage, but how I can check in the mod that a package was sent from the plugin and not by a player? getSender() in Supplier<NetworkEvent.Context> doesn't seem helpful -
By QWERTY 52 38 · Posted
So, how can I do that? -
By GenElectrovise · Posted
Uhhh ok then. This is very strange. It now works for me too. I... uhh... ok then Thanks!? It seems to only store one package at a time? Maybe it only shows the most recent - who knows! I'll look around for this... build.gradle publishing { repositories { maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/genelectrovise/magiksmostevile") // MUST BE --ALL-- LOWER CASE credentials { username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME") password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") } } maven { name = "LocalMaven" url = uri("file:///${project.projectDir}/mcmodsrepo") } } publications { gpr(MavenPublication) { groupId = group artifactId = archivesBaseName version = version artifact jar } } } gpr.user and gpr.key are secrets contained in my User/.gradle/gradle.properties. They are defined like so: gpr.user=INSERT_USERNAME_HERE gpr.key=INSERT_SECRET_PERSONAL_ACCESS_TOKEN_HERE -
By diesieben07 · Posted
You cannot access registry entries directly before FMLCommonSetupEvent. Here you are trying to access the features during the biome registry phase, which will not work. -
By GenElectrovise · Posted
@DaemonUmbra Yes... I would prefer 'maven-publish'... I kept getting the error "Could not write to resource", and Stackoverflow was incredibly unhelpful on the subject... 'maven' is kind of a stand-in right now... Could you send your working publication/build.gradle? The issue is probably with me authenticating but syntax is always an option. Note: Where are you storing credentials? Naturally they shouldn't be in the project sources, so I'm keeping them in my master User/.gradle/gradle.properties. They seem to be being located there. Are you using a Personal Access Token or standard login credentials? I believe that a PAT is preferred by Github? EDIT: A PAT is required https://docs.github.com/en/packages/guides/configuring-gradle-for-use-with-github-packages
-
-
Topics
-
Who's Online (See full list)