-
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.
- Loading branch information
1 parent
2764367
commit 2b8d371
Showing
18 changed files
with
54 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
package dev.schmarrn; | ||
|
||
import dev.schmarrn.components.MobEffectInstancesComponent; | ||
import dev.schmarrn.components.MyComponents; | ||
import dev.schmarrn.items.MyItems; | ||
import net.fabricmc.api.ClientModInitializer; | ||
import net.fabricmc.fabric.api.client.rendering.v1.ColorProviderRegistry; | ||
import net.minecraft.util.FastColor; | ||
|
||
public class BeegSmolClient implements ClientModInitializer { | ||
@Override | ||
public void onInitializeClient() { | ||
// This entrypoint is suitable for setting up client-specific logic, such as rendering. | ||
ColorProviderRegistry.ITEM.register((stack, tintIndex) -> { | ||
if (tintIndex > 0) { | ||
return -1; | ||
} | ||
MobEffectInstancesComponent mei = stack.getOrDefault(MyComponents.MOB_EFFECTS, MobEffectInstancesComponent.EMPTY); | ||
if (mei.effectInstances().isEmpty()) { | ||
return -1; | ||
} | ||
return FastColor.ARGB32.opaque(mei.effectInstances().getFirst().getEffect().value().getColor()); | ||
}, MyItems.VIAL); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"item.beeg-smol.vial": "Vial", | ||
"item.beeg-smol.vial.effect.beeg": "Vial of Growing", | ||
"item.beeg-smol.vial.effect.smol": "Vial of Shrinking", | ||
"effect.beeg-smol.beeg": "Growing", | ||
"effect.beeg-smol.smol": "Shrinking" | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "item/potion_overlay", | ||
"layer1": "item/potion" | ||
"layer0": "beeg-smol:item/vial_overlay", | ||
"layer1": "beeg-smol:item/vial" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 Bytes
src/main/resources/assets/beeg-smol/textures/item/vial_overlay.png~
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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