generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no more fabric.mod.json updates!!! yipeeee (requires Fabric API tho) - 1.16+ coming soon (fabric-command-api-v1)
- Loading branch information
Showing
12 changed files
with
154 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
# NameFabric | ||
|
||
![Fabric](https://raw.githubusercontent.com/intergrav/devins-badges/1a0c6742ac5929b4597b417a74a124a30cf3461f/assets/cozy/supported/fabric_vector.svg) ![Minecraft](https://notcoded.needs.rest/r/badge_minecraft_1.16plus.svg) | ||
--------------------------------------- | ||
[![Fabric](https://raw.githubusercontent.com/intergrav/devins-badges/1a0c6742ac5929b4597b417a74a124a30cf3461f/assets/cozy/supported/fabric_vector.svg)](https://fabricmc.net/use/installer) [![Quilt](https://raw.githubusercontent.com/intergrav/devins-badges/1aec26abb75544baec37249f42008b2fcc0e731f/assets/cozy/supported/quilt_vector.svg)](https://quiltmc.org/en/install/) [![Minecraft](https://notcoded.needs.rest/r/badge_minecraft_1.16plus.svg)](https://minecraft.net) | ||
|
||
NameFabric, the mod that shows you public player data like past usernames, current skin, and more using LabyNet's and Mojang's API. | ||
|
||
## Download | ||
[Modrinth](https://modrinth.com/mod/namefabric) - [CurseForge](https://www.curseforge.com/minecraft/mc-mods/namefabric/) - [GitHub](https://github.com/not-coded/NameFabric/releases/) | ||
This mod allows you to get public player data like past usernames, current skin, and more using [LabyNet's](https://laby.net) and [Mojang's API](https://api.mojang.com). | ||
|
||
## Features | ||
- /namehistory | Gets the past names of the specified player | ||
- /getuuid | Gets the uuid of the specified player | ||
- /getskin | Gets the current skin of the specified player | ||
- /getcape | Gets the current cape of the specified player | ||
|
||
## Known Issues: | ||
- If you put anything with the same length as 32 or 36 it will cause an error in the commands. | ||
- **/namehistory** | Gets the past names of a player. | ||
- **/getuuid** | Gets the uuid of a player. | ||
- **/getskin** | Gets the current skin of a player. | ||
- **/getcape** | Gets the current cape of a player. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
org.gradle.parallel=true | ||
|
||
# Fabric Properties | ||
# check these on https://fabricmc.net/develop | ||
minecraft_version=1.20.4 | ||
yarn_mappings=1.20.4+build.3 | ||
loader_version=0.14.21 | ||
# check these on https://fabricmc.net/develop | ||
minecraft_version=1.20.6 | ||
yarn_mappings=1.20.6+build.1 | ||
loader_version=0.14.21 | ||
|
||
|
||
# Mod Properties | ||
mod_version = 1.0.3 | ||
maven_group = net.notcoded | ||
archives_base_name = namefabric | ||
mod_version = 1.0.4 | ||
maven_group = net.notcoded | ||
archives_base_name = namefabric | ||
|
||
# Dependencies | ||
fabric_version=0.91.1+1.20.4 | ||
fabric_version=0.97.5+1.20.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Tue May 07 15:32:39 CEST 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package net.notcoded.namefabric; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
import net.fabricmc.api.ClientModInitializer; | ||
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback; | ||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.notcoded.namefabric.loaders.CommandLoader; | ||
|
||
public class Main implements ModInitializer { | ||
public class Main implements ClientModInitializer { | ||
@Override | ||
public void onInitialize() { | ||
ClientCommandRegistrationCallback.EVENT.register(CommandLoader::registerCommands); | ||
public void onInitializeClient() { | ||
if(FabricLoader.getInstance().isModLoaded("fabric-command-api-v2")) | ||
ClientCommandRegistrationCallback.EVENT.register(CommandLoader::registerCommands); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.