-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
26 changed files
with
166 additions
and
62 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,3 +1,2 @@ | ||
- Added `whale` shark variant, turning your shark into our also beloved Blåvingad. | ||
- Added `prider` shark texture, similar to the `pride` shark, but with just a tad more representation. | ||
- Tweaked `trans` shark texture to be more in line with other pride textures. | ||
- Added the option to not have Totems be Blåhaj by default as a builtin resource pack. | ||
- Fixed a mistake in the updated `trans` shark texture. |
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
6 changes: 6 additions & 0 deletions
6
src/main/generated/assets/blahaj_totem/models/item/blahaj_skins/shark_shark.json
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,6 @@ | ||
{ | ||
"parent": "blahaj_totem:item/shork", | ||
"textures": { | ||
"0": "blahaj_totem:item/blahaj_skins/shark_shark" | ||
} | ||
} |
78 changes: 42 additions & 36 deletions
78
src/main/generated/assets/minecraft/models/item/totem_of_undying.json
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,29 @@ | ||
package dev.enjarai.blahajtotem; | ||
|
||
import net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener; | ||
import net.fabricmc.fabric.api.resource.SimpleSynchronousResourceReloadListener; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.Items; | ||
import net.minecraft.resource.ResourceManager; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class BlahajFlags implements IdentifiableResourceReloadListener, SimpleSynchronousResourceReloadListener { | ||
public static boolean defaultToTotem = false; | ||
|
||
public static boolean isBlahaj(ItemStack itemStack) { | ||
if (itemStack.isOf(Items.TOTEM_OF_UNDYING)) { | ||
return !BlahajFlags.defaultToTotem || BlahajTotem.getShorkType(itemStack) != null; | ||
} | ||
return false; | ||
} | ||
|
||
@Override | ||
public Identifier getFabricId() { | ||
return BlahajTotem.id("flags"); | ||
} | ||
|
||
@Override | ||
public void reload(ResourceManager manager) { | ||
defaultToTotem = manager.getResource(BlahajTotem.id("default_to_totem")).isPresent(); | ||
} | ||
} |
Oops, something went wrong.