11 Commits

Author SHA1 Message Date
Michael Mikovsky 375557196b Update orang.zip 2025-10-20 08:27:36 -06:00
Michael Mikovsky 929782fa18 Update orang.zip 2025-10-20 08:21:59 -06:00
Michael Mikovsky d0c44a8b04 Update orang.zip 2025-10-20 08:00:26 -06:00
Michael Mikovsky 6defcfcee1 orang v5 2025-10-16 18:32:38 -06:00
Michael Mikovsky 38703b2470 orang v3 2025-10-16 14:21:54 -06:00
Michael Mikovsky 0daecaa748 Orang v2 2025-09-13 19:02:35 -06:00
Michael Mikovsky 6bce1e1793 Remove debug, update orang 2025-09-13 18:13:58 -06:00
Michael Mikovsky 7b3601c746 Add files via upload 2025-09-13 16:55:11 -06:00
Michael Mikovsky a915daadc0 I want this to be on the server 2025-09-13 16:54:59 -06:00
Michael Mikovsky f3da921fd8 Fix brightness problem, change modid 2025-09-07 19:14:24 -06:00
Michael Mikovsky dc2e19df26 Update README.md 2025-09-07 16:24:16 -06:00
10 changed files with 19 additions and 50 deletions
+10 -5
View File
@@ -1,9 +1,14 @@
# Fabric Example Mod
# MC Server icon
In-game server icon editing using a map.
The idea behind this, is that anyone can draw on the server icon.
### How to use:
1) Create a filled map (Use the smallest sized map for the best results)
2) Find the top left corner of the map, and find the center block of the map. (The smallest sized map should have its center 64x64 blocks in the positive XZ direction)
3) Build whatever you need to in the top left quadrant of the map
4) run /favicon, and the map should be updated
## Setup
For setup instructions please see the [fabric documentation page](https://docs.fabricmc.net/develop/getting-started/setting-up-a-development-environment) that relates to the IDE that you are using.
## License
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.
+2 -2
View File
@@ -10,9 +10,9 @@ loader_version=0.16.14
loom_version=1.11-SNAPSHOT
# Mod Properties
mod_version=1.0.0
mod_version=1.0.2
maven_group=dev.astatin3.favicon
archives_base_name=modid
archives_base_name=favicon
# Dependencies
fabric_version=0.129.0+1.21.8
BIN
View File
Binary file not shown.
@@ -1,10 +0,0 @@
package com.example;
import net.fabricmc.api.ClientModInitializer;
public class ExampleModClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
}
}
@@ -1,15 +0,0 @@
package com.example.mixin.client;
import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(MinecraftClient.class)
public class ExampleClientMixin {
@Inject(at = @At("HEAD"), method = "run")
private void init(CallbackInfo info) {
// This code is injected into the start of MinecraftClient.run()V
}
}
@@ -1,11 +0,0 @@
{
"required": true,
"package": "com.example.mixin.client",
"compatibilityLevel": "JAVA_21",
"client": [
"ExampleClientMixin"
],
"injectors": {
"defaultRequire": 1
}
}
@@ -280,8 +280,8 @@ public class ExampleMod implements ModInitializer {
}
// Decode base color and brightness level
int baseColorIndex = (unsignedByte - 1) / 4;
int brightnessLevel = (unsignedByte - 1) % 4;
int brightnessLevel = unsignedByte % 4;
int baseColorIndex = (unsignedByte - brightnessLevel) / 4;
// Validate base color index
if (baseColorIndex < 0 || baseColorIndex >= BASE_COLORS.length) {

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 453 B

+5 -5
View File
@@ -1,9 +1,9 @@
{
"schemaVersion": 1,
"id": "modid",
"id": "favicon",
"version": "${version}",
"name": "Example mod",
"description": "This is an example description! Tell everyone what your mod is about!",
"name": "Favicon",
"description": "In-game server icon editing using a map.",
"authors": [
"Astatin3"
],
@@ -12,7 +12,7 @@
"sources": "https://github.com/FabricMC/fabric-example-mod"
},
"license": "CC0-1.0",
"icon": "assets/modid/icon.png",
"icon": "assets/favicon/icon.png",
"environment": "*",
"entrypoints": {
"main": [
@@ -20,7 +20,7 @@
]
},
"mixins": [
"modid.mixins.json"
"favicon.mixins.json"
],
"depends": {
"fabricloader": ">=0.16.14",