Skip to content

Commit

Permalink
Added some new types of crab claw, with more to come
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticKoko committed Jan 20, 2024
1 parent 6622f88 commit cdfc4ec
Show file tree
Hide file tree
Showing 19 changed files with 55 additions and 8 deletions.
6 changes: 6 additions & 0 deletions src/generated/resources/assets/hybrid-aquatic/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"entity.hybrid-aquatic.hammerhead_shark": "Hammerhead Shark",
"entity.hybrid-aquatic.hermit_crab": "Hermit Crab",
"entity.hybrid-aquatic.horseshoe_crab": "Horseshoe Crab",
"entity.hybrid-aquatic.karkinos": "Karkinos",
"entity.hybrid-aquatic.lightfoot_crab": "Lightfoot Crab",
"entity.hybrid-aquatic.lionfish": "Lionfish",
"entity.hybrid-aquatic.lions_mane_jellyfish": "Lion's Mane Jellyfish",
Expand Down Expand Up @@ -147,15 +148,18 @@
"item.hybrid-aquatic.cuttlefish_spawn_egg": "Cuttlefish Spawn Egg",
"item.hybrid-aquatic.discus_spawn_egg": "Discus Spawn Egg",
"item.hybrid-aquatic.dragonfish_spawn_egg": "Dragonfish Spawn Egg",
"item.hybrid-aquatic.fiddler_crab_claw": "Fiddler Crab Claw",
"item.hybrid-aquatic.fiddler_crab_spawn_egg": "Fiddler Crab Spawn Egg",
"item.hybrid-aquatic.firefly_squid_spawn_egg": "Firefly Squid Spawn Egg",
"item.hybrid-aquatic.fish_meat": "Fish Meat",
"item.hybrid-aquatic.fishing_net": "Fishing Net",
"item.hybrid-aquatic.fishing_net.description": "Stored Entity: %s",
"item.hybrid-aquatic.flashlight_fish_spawn_egg": "Flashlight Fish Spawn Egg",
"item.hybrid-aquatic.flower_crab_claw": "Flower Crab Claw",
"item.hybrid-aquatic.flower_crab_spawn_egg": "Flower Crab Spawn Egg",
"item.hybrid-aquatic.fried_egg_jellyfish_spawn_egg": "Fried Egg Jellyfish Spawn Egg",
"item.hybrid-aquatic.frilled_shark_spawn_egg": "Frilled Shark Spawn Egg",
"item.hybrid-aquatic.ghost_crab_claw": "Ghost Crab Claw",
"item.hybrid-aquatic.ghost_crab_spawn_egg": "Ghost Crab Spawn Egg",
"item.hybrid-aquatic.giant_isopod_spawn_egg": "Giant Isopod Spawn Egg",
"item.hybrid-aquatic.glow_slime": "Glow Slime",
Expand All @@ -168,6 +172,7 @@
"item.hybrid-aquatic.hermit_crab_spawn_egg": "Hermit Crab Spawn Egg",
"item.hybrid-aquatic.hook.description": "Needs to be put in the offhand",
"item.hybrid-aquatic.horseshoe_crab_spawn_egg": "Horseshoe Crab Spawn Egg",
"item.hybrid-aquatic.karkinos_spawn_egg": "Karkinos Spawn Egg",
"item.hybrid-aquatic.lightfoot_crab_spawn_egg": "Lightfoot Crab Spawn Egg",
"item.hybrid-aquatic.lionfish": "Lionfish",
"item.hybrid-aquatic.lionfish_spawn_egg": "Lionfish Spawn Egg",
Expand Down Expand Up @@ -221,6 +226,7 @@
"item.hybrid-aquatic.triggerfish_spawn_egg": "Triggerfish Spawn Egg",
"item.hybrid-aquatic.unicorn_fish": "Unicorn Fish",
"item.hybrid-aquatic.unicorn_fish_spawn_egg": "Unicorn Fish Spawn Egg",
"item.hybrid-aquatic.vampire_crab_claw": "Vampire Crab Claw",
"item.hybrid-aquatic.vampire_crab_spawn_egg": "Vampire Crab Spawn Egg",
"item.hybrid-aquatic.vampire_squid_spawn_egg": "Vampire Squid Spawn Egg",
"item.hybrid-aquatic.whale_shark_spawn_egg": "Whale Shark Spawn Egg",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hybrid-aquatic:item/fiddler_crab_claw"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hybrid-aquatic:item/flower_crab_claw"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hybrid-aquatic:item/ghost_crab_claw"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "hybrid-aquatic:item/vampire_crab_claw"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"function": "minecraft:set_count"
}
],
"name": "hybrid-aquatic:crab_claw"
"name": "hybrid-aquatic:fiddler_crab_claw"
}
],
"rolls": 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"function": "minecraft:set_count"
}
],
"name": "hybrid-aquatic:crab_claw"
"name": "hybrid-aquatic:flower_crab_claw"
}
],
"rolls": 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"function": "minecraft:set_count"
}
],
"name": "hybrid-aquatic:crab_claw"
"name": "hybrid-aquatic:ghost_crab_claw"
}
],
"rolls": 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"function": "minecraft:set_count"
}
],
"name": "hybrid-aquatic:crab_claw"
"name": "hybrid-aquatic:vampire_crab_claw"
}
],
"rolls": 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ class LanguageProvider(output: FabricDataOutput) : FabricLanguageProvider(output
HybridAquaticItems.TRIGGERFISH to "Triggerfish",
HybridAquaticItems.COWFISH to "Cowfish",
HybridAquaticItems.CRAB_CLAW to "Crab Claw",
HybridAquaticItems.FIDDLER_CRAB_CLAW to "Fiddler Crab Claw",
HybridAquaticItems.GHOST_CRAB_CLAW to "Ghost Crab Claw",
HybridAquaticItems.FLOWER_CRAB_CLAW to "Flower Crab Claw",
HybridAquaticItems.VAMPIRE_CRAB_CLAW to "Vampire Crab Claw",
HybridAquaticItems.GLOW_SLIME to "Glow Slime",
HybridAquaticItems.SHARK_TOOTH to "Shark Tooth",
HybridAquaticItems.SPONGE_CHUNK to "Sponge Chunk",
Expand Down Expand Up @@ -200,6 +204,7 @@ class LanguageProvider(output: FabricDataOutput) : FabricLanguageProvider(output
HybridAquaticEntityTypes.TIGER_SHARK to "Tiger Shark",
HybridAquaticEntityTypes.HAMMERHEAD_SHARK to "Hammerhead Shark",
HybridAquaticEntityTypes.WHALE_SHARK to "Whale Shark",
HybridAquaticEntityTypes.KARKINOS to "Karkinos",
HybridAquaticEntityTypes.CRAB to "Crab",
HybridAquaticEntityTypes.FIDDLER_CRAB to "Fiddler Crab",
HybridAquaticEntityTypes.HERMIT_CRAB to "Hermit Crab",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ class ModelProvider(output: FabricDataOutput) : FabricModelProvider(output) {
override fun generateItemModels(generator: ItemModelGenerator) {
setOf(
HybridAquaticItems.CRAB_CLAW,
HybridAquaticItems.FIDDLER_CRAB_CLAW,
HybridAquaticItems.VAMPIRE_CRAB_CLAW,
HybridAquaticItems.FLOWER_CRAB_CLAW,
HybridAquaticItems.GHOST_CRAB_CLAW,
HybridAquaticItems.CRAB_MEAT,
HybridAquaticItems.COOKED_CRAB_MEAT,
HybridAquaticItems.FISH_MEAT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class EntityTypeLootTableProvider(output: FabricDataOutput) : SimpleFabricLootTa
pool(
LootPool.builder()
.with(
ItemEntry.builder(HybridAquaticItems.CRAB_CLAW)
ItemEntry.builder(HybridAquaticItems.FIDDLER_CRAB_CLAW)
.apply(FurnaceSmeltLootFunction.builder().conditionally(EntityPropertiesLootCondition.builder(LootContext.EntityTarget.THIS, NEEDS_ENTITY_ON_FIRE)))
.apply(LootingEnchantLootFunction.builder(UniformLootNumberProvider.create(0.0F, 1.0F)))
.apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 2.0F)))
Expand All @@ -84,7 +84,7 @@ class EntityTypeLootTableProvider(output: FabricDataOutput) : SimpleFabricLootTa
pool(
LootPool.builder()
.with(
ItemEntry.builder(HybridAquaticItems.CRAB_CLAW)
ItemEntry.builder(HybridAquaticItems.GHOST_CRAB_CLAW)
.apply(FurnaceSmeltLootFunction.builder().conditionally(EntityPropertiesLootCondition.builder(LootContext.EntityTarget.THIS, NEEDS_ENTITY_ON_FIRE)))
.apply(LootingEnchantLootFunction.builder(UniformLootNumberProvider.create(0.0F, 1.0F)))
.apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 2.0F)))
Expand All @@ -96,7 +96,7 @@ class EntityTypeLootTableProvider(output: FabricDataOutput) : SimpleFabricLootTa
pool(
LootPool.builder()
.with(
ItemEntry.builder(HybridAquaticItems.CRAB_CLAW)
ItemEntry.builder(HybridAquaticItems.VAMPIRE_CRAB_CLAW)
.apply(FurnaceSmeltLootFunction.builder().conditionally(EntityPropertiesLootCondition.builder(LootContext.EntityTarget.THIS, NEEDS_ENTITY_ON_FIRE)))
.apply(LootingEnchantLootFunction.builder(UniformLootNumberProvider.create(0.0F, 1.0F)))
.apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 2.0F)))
Expand All @@ -108,7 +108,7 @@ class EntityTypeLootTableProvider(output: FabricDataOutput) : SimpleFabricLootTa
pool(
LootPool.builder()
.with(
ItemEntry.builder(HybridAquaticItems.CRAB_CLAW)
ItemEntry.builder(HybridAquaticItems.FLOWER_CRAB_CLAW)
.apply(FurnaceSmeltLootFunction.builder().conditionally(EntityPropertiesLootCondition.builder(LootContext.EntityTarget.THIS, NEEDS_ENTITY_ON_FIRE)))
.apply(LootingEnchantLootFunction.builder(UniformLootNumberProvider.create(0.0F, 1.0F)))
.apply(SetCountLootFunction.builder(UniformLootNumberProvider.create(1.0F, 2.0F)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ object HybridAquaticItemGroups {

// miscellaneous items
entries.add(HybridAquaticItems.CRAB_CLAW)
entries.add(HybridAquaticItems.FIDDLER_CRAB_CLAW)
entries.add(HybridAquaticItems.VAMPIRE_CRAB_CLAW)
entries.add(HybridAquaticItems.FLOWER_CRAB_CLAW)
entries.add(HybridAquaticItems.GHOST_CRAB_CLAW)
entries.add(HybridAquaticItems.GLOW_SLIME)
entries.add(HybridAquaticItems.SHARK_TOOTH)
entries.add(HybridAquaticItems.PEARL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ object HybridAquaticItems {
val BLACK_PEARL = register("black_pearl", Item(FabricItemSettings()))

val CRAB_CLAW = register("crab_claw", Item(FabricItemSettings()))
val FIDDLER_CRAB_CLAW = register("fiddler_crab_claw", Item(FabricItemSettings()))
val VAMPIRE_CRAB_CLAW = register("vampire_crab_claw", Item(FabricItemSettings()))
val FLOWER_CRAB_CLAW = register("flower_crab_claw", Item(FabricItemSettings()))
val GHOST_CRAB_CLAW = register("ghost_crab_claw", Item(FabricItemSettings()))

// food items
val COOKED_CRAB_MEAT = register("cooked_crab_meat",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cdfc4ec

Please sign in to comment.