Skip to content

Commit

Permalink
Merge branch '1.19.2' into 1.19.3
Browse files Browse the repository at this point in the history
* 1.19.2:
  Updated tags
  Updated translations
  Updated changelog
  Fixed villager trades
  Changed potion color, increased crab speed
  crab can spawn on sand

# Conflicts:
#	common/src/main/resources/assets/friendsandfoes/lang/en_us.json
  • Loading branch information
Faboslav committed Sep 27, 2024
2 parents 1934ec5 + d1b8fc6 commit 4eaf3b5
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 30 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 3.0.1

- Fixed villager trades not being specific to the beekeeper villager profession
- Crab now spawns also on the beaches
- Changed potion of reaching base color
- Updated ru_ru translations (Thanks to mpustovoi)
- Updated es_mx translations (Thanks to TheLegendofSaram)

## 3.0.0

- Added crab mob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public final class FriendsAndFoesConfig implements Config
public int crabSpawnWeight = 14;

@Description("Minimal spawn group size")
public int crabSpawnMinGroupSize = 3;
public int crabSpawnMinGroupSize = 2;

@Description("Maximal spawn group size")
public int crabSpawnMaxGroupSize = 5;
public int crabSpawnMaxGroupSize = 4;

@Description("Reach status effect modifier (range in blocks)")
public int reachingStatusEffectModifier = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void tick() {
this.targetPos.getX(),
this.targetPos.getY(),
this.targetPos.getZ(),
0.33F
0.5F
);
} else {
this.targetPos = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ public final class FriendsAndFoesStatusEffects
{
public static final ResourcefulRegistry<StatusEffect> STATUS_EFFECTS = ResourcefulRegistries.create(Registries.STATUS_EFFECT, FriendsAndFoes.MOD_ID);

public static final RegistryEntry<StatusEffect> REACH = STATUS_EFFECTS.register("reach", () -> new ReachStatusEffect(StatusEffectCategory.BENEFICIAL, 3364735));
public static final RegistryEntry<StatusEffect> REACH = STATUS_EFFECTS.register("reach", () -> new ReachStatusEffect(StatusEffectCategory.BENEFICIAL, 0xFE984B));
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ public final class FriendsAndFoesVillagerProfessions
public static final RegistryEntry<VillagerProfession> BEEKEEPER = VILLAGER_PROFESSIONS.register("beekeeper", () -> new VillagerProfession("beekeeper", pointOfInterest -> pointOfInterest.isIn(PointOfInterestTypeTags.BEE_HOME), pointOfInterest -> pointOfInterest.isIn(PointOfInterestTypeTags.BEE_HOME), ImmutableSet.of(Items.HONEYCOMB), ImmutableSet.of(), SoundEvents.ENTITY_ITEM_FRAME_REMOVE_ITEM));

public static void registerVillagerTrades(RegisterVillagerTradesEvent event) {
event.register(1, new TradeOffersUtil.BuyForOneEmeraldFactory(FriendsAndFoesItems.BUTTERCUP.get(), 10, 16, 2));
event.register(1, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.DANDELION, 10, 16, 2));
event.register(1, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.SUNFLOWER, 10, 16, 2));
event.register(2, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.GLASS_BOTTLE, 9, 12, 10));
event.register(2, new TradeOffersUtil.SellItemFactory(Items.HONEY_BOTTLE, 3, 1, 12, 5));
event.register(3, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.SHEARS, 1, 12, 20));
event.register(3, new TradeOffersUtil.SellItemFactory(Items.HONEY_BLOCK, 10, 1, 12, 10));
event.register(4, new TradeOffersUtil.SellItemFactory(Items.HONEYCOMB, 4, 1, 12, 15));
event.register(5, new TradeOffersUtil.SellItemFactory(Items.HONEYCOMB_BLOCK, 12, 1, 12, 30));
if(event.type() == BEEKEEPER.get()) {
event.register(1, new TradeOffersUtil.BuyForOneEmeraldFactory(FriendsAndFoesItems.BUTTERCUP.get(), 10, 16, 2));
event.register(1, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.DANDELION, 10, 16, 2));
event.register(1, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.SUNFLOWER, 10, 16, 2));
event.register(2, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.GLASS_BOTTLE, 9, 12, 10));
event.register(2, new TradeOffersUtil.SellItemFactory(Items.HONEY_BOTTLE, 3, 1, 12, 5));
event.register(3, new TradeOffersUtil.BuyForOneEmeraldFactory(Items.SHEARS, 1, 12, 20));
event.register(3, new TradeOffersUtil.SellItemFactory(Items.HONEY_BLOCK, 10, 1, 12, 10));
event.register(4, new TradeOffersUtil.SellItemFactory(Items.HONEYCOMB, 4, 1, 12, 15));
event.register(5, new TradeOffersUtil.SellItemFactory(Items.HONEYCOMB_BLOCK, 12, 1, 12, 30));
}
}

private FriendsAndFoesVillagerProfessions() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"entity.friendsandfoes.tuff_golem": "Tuff Golem",
"entity.friendsandfoes.wildfire": "Wildfire",
"effect.friendsandfoes.reach": "Reach",
"effect.friendsandfoes.reach.description": "Increases the range of block interaction.",
"item_group.friendsandfoes.main_tab": "Friends & Foes",
"item.friendsandfoes.buttercup": "Buttercup",
"item.friendsandfoes.glare_spawn_egg": "Glare Spawn Egg",
Expand Down
17 changes: 13 additions & 4 deletions common/src/main/resources/assets/friendsandfoes/lang/es_mx.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,40 @@
"block.friendsandfoes.waxed_weathered_lightning_rod": "Pararrayos envejecido encerado",
"block.friendsandfoes.waxed_oxidized_lightning_rod": "Pararrayos oxidado encerado",
"block.friendsandfoes.potted_buttercup": "Buttercup en maceta",
"block.friendsandfoes.crab_egg": "Huevo de cangrejo",
"entity.minecraft.villager.beekeeper": "Apicultor",
"entity.minecraft.villager.friendsandfoes.beekeeper": "Apicultor",
"entity.friendsandfoes.copper_golem": "Golem de cobre",
"entity.friendsandfoes.crab": "Cangrejo",
"entity.friendsandfoes.glare": "Resplandor",
"entity.friendsandfoes.iceologer": "Hielomante",
"entity.friendsandfoes.moobloom": "Moobloom",
"entity.friendsandfoes.rascal": "Bribón",
"entity.friendsandfoes.mauler": "Mauler",
"entity.friendsandfoes.tuff_golem": "Gólem Resistente",
"entity.friendsandfoes.wildfire": "Wildfire",
"effect.friendsandfoes.reach": "Alcance",
"item_group.friendsandfoes.main_tab": "Friends & Foes",
"item.friendsandfoes.buttercup": "Buttercup",
"item.friendsandfoes.glare_spawn_egg": "Generar Glare",
"item.friendsandfoes.copper_golem_spawn_egg": "Generar Gólem de Cobre",
"item.friendsandfoes.crab_spawn_egg": "Generar Cangrejo",
"item.friendsandfoes.iceologer_spawn_egg": "Generar Hielomante",
"item.friendsandfoes.illusioner_spawn_egg": "Generar Ilusionista",
"item.friendsandfoes.mauler_spawn_egg": "Generar Mauler",
"item.friendsandfoes.moobloom_spawn_egg": "Generar Moobloom",
"item.friendsandfoes.rascal_spawn_egg": "Generar Bribón",
"item.friendsandfoes.tuff_golem_spawn_egg": "Generar Gólem Resistente",
"item.friendsandfoes.wildfire_spawn_egg": "Generar Wildfire",
"item.friendsandfoes.crab_claw": "Pinza de cangrejo",
"item.friendsandfoes.totem_of_freezing": "Tótem de Congelación",
"item.friendsandfoes.totem_of_illusion": "Tótem de Ilusión",
"item.friendsandfoes.wildfire_crown": "Corona de Wildfire",
"item.friendsandfoes.wildfire_crown_fragment": "Fragmento de Corona de Wildfire",
"item.minecraft.potion.effect.reaching": "Poción de Alcance",
"item.minecraft.splash_potion.effect.reaching": "Poción Arrojadiza de Alcance",
"item.minecraft.lingering_potion.effect.reaching": "Poción Persistente de Alcance",
"item.minecraft.tipped_arrow.effect.reaching": "Flecha de Alcance",
"subtitle.entity.friendsandfoes.glare.ambient": "Glare vuela",
"subtitle.entity.friendsandfoes.glare.death": "Glare muere",
"subtitle.entity.friendsandfoes.glare.eat": "Glare come",
Expand All @@ -89,7 +99,8 @@
"subtitle.entity.friendsandfoes.copper_golem.head_spin": "Gólem de Cobre gira la cabeza",
"subtitle.entity.friendsandfoes.copper_golem.hurt": "Gólem de Cobre se lastima",
"subtitle.entity.friendsandfoes.copper_golem.repair": "Gólem de Cobre reparado",
"subtitle.entity.friendsandfoes.copper_golem.step": "Pasos",
"subtitle.entity.friendsandfoes.crab.death": "Cangrejo muere",
"subtitle.entity.friendsandfoes.crab.hurt": "Cangrejo se lastima",
"subtitle.entity.friendsandfoes.iceologer.ambient": "Hielomante murmura",
"subtitle.entity.friendsandfoes.iceologer.cast_spell": "Hielomante lanza hechizo",
"subtitle.entity.friendsandfoes.iceologer.death": "Hielomante muere",
Expand Down Expand Up @@ -120,14 +131,12 @@
"subtitle.entity.friendsandfoes.tuff_golem.repair": "Gólem Resistente reparado",
"subtitle.entity.friendsandfoes.tuff_golem.wake": "Gólem Resistente se despierta",
"subtitle.entity.friendsandfoes.tuff_golem.sleep": "Gólem Resistente se duerme",
"subtitle.entity.friendsandfoes.tuff_golem.step": "Pasos",
"subtitle.entity.friendsandfoes.wildfire.ambient": "Wildfire respira",
"subtitle.entity.friendsandfoes.wildfire.death": "Wildfire muere",
"subtitle.entity.friendsandfoes.wildfire.hurt": "Wildfire se lastima",
"subtitle.entity.friendsandfoes.wildfire.shield_break": "Escudo de Wildfire se rompe",
"subtitle.entity.friendsandfoes.wildfire.shockwave": "Wildfire genera ondas de choque",
"subtitle.entity.friendsandfoes.wildfire.shoot": "Wildfire dispara",
"subtitle.entity.friendsandfoes.wildfire.step": "Pasos",
"subtitle.entity.friendsandfoes.wildfire.summon_blaze": "Wildfire invoca blazes",
"trinkets.slot.charm.charm": "Amuleto"
}
}
26 changes: 18 additions & 8 deletions common/src/main/resources/assets/friendsandfoes/lang/ru_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,54 +53,66 @@
"block.friendsandfoes.waxed_weathered_lightning_rod": "Вощёный состаренный громоотвод",
"block.friendsandfoes.waxed_oxidized_lightning_rod": "Вощёный окисленный громоотвод",
"block.friendsandfoes.potted_buttercup": "Лютик в горшке",
"block.friendsandfoes.crab_egg": "Крабовое яйцо",
"entity.minecraft.villager.beekeeper": "Пчеловод",
"entity.minecraft.villager.friendsandfoes.beekeeper": "Пчеловод",
"entity.friendsandfoes.copper_golem": "Медный голем",
"entity.friendsandfoes.crab": "Краб",
"entity.friendsandfoes.glare": "Остроликий",
"entity.friendsandfoes.iceologer": "Ледолог",
"entity.friendsandfoes.moobloom": "Коровоцвет",
"entity.friendsandfoes.rascal": "Негодник",
"entity.friendsandfoes.mauler": "Прожора",
"entity.friendsandfoes.tuff_golem": "Туфовый голем",
"entity.friendsandfoes.wildfire": "Инферно",
"effect.friendsandfoes.reach": "Охват",
"effect.friendsandfoes.reach.description": "Увеличивает дальность взаимодействия с миром.",
"item_group.friendsandfoes.main_tab": "Друзья и Враги",
"item.friendsandfoes.buttercup": "Лютик",
"item.friendsandfoes.glare_spawn_egg": "Яйцо призыва остроликого",
"item.friendsandfoes.copper_golem_spawn_egg": "Яйцо призыва медного голема",
"item.friendsandfoes.crab_spawn_egg": "Яйцо призыва краба",
"item.friendsandfoes.iceologer_spawn_egg": "Яйцо призыва ледолога",
"item.friendsandfoes.illusioner_spawn_egg": "Яйцо призыва иллюзора",
"item.friendsandfoes.mauler_spawn_egg": "Яйцо призыва прожоры",
"item.friendsandfoes.moobloom_spawn_egg": "Яйцо призыва коровоцвета",
"item.friendsandfoes.rascal_spawn_egg": "Яйцо призыва негодника",
"item.friendsandfoes.tuff_golem_spawn_egg": "Яйцо призыва туфового голема",
"item.friendsandfoes.wildfire_spawn_egg": "Яйцо призыва инферно",
"item.friendsandfoes.crab_claw": "Клешня краба",
"item.friendsandfoes.totem_of_freezing": "Тотем замораживания",
"item.friendsandfoes.totem_of_illusion": "Тотем иллюзии",
"item.friendsandfoes.wildfire_crown": "Корона инферно",
"item.friendsandfoes.wildfire_crown_fragment": "Фрагмент короны инферно",
"item.minecraft.potion.effect.reaching": "Зелье охвата",
"item.minecraft.splash_potion.effect.reaching": "Взрывное зелье охвата",
"item.minecraft.lingering_potion.effect.reaching": "Туманное зелье охвата",
"item.minecraft.tipped_arrow.effect.reaching": "Стрела охвата",
"subtitle.entity.friendsandfoes.glare.ambient": "Остроликий летает",
"subtitle.entity.friendsandfoes.glare.death": "Остроликий умирает",
"subtitle.entity.friendsandfoes.glare.death": "Остроликий погибает",
"subtitle.entity.friendsandfoes.glare.eat": "Остроликий ест",
"subtitle.entity.friendsandfoes.glare.grumpiness": "Остроликий ворчит",
"subtitle.entity.friendsandfoes.glare.grumpiness_short": "Остроликий ворчит",
"subtitle.entity.friendsandfoes.glare.hurt": "Остроликий ранен",
"subtitle.entity.friendsandfoes.glare.rustle": "Остроликий ворчит",
"subtitle.entity.friendsandfoes.glare.shake": "Остроликий стряхивает светящиеся ягоды",
"subtitle.entity.friendsandfoes.copper_golem.death": "Медный голем умирает",
"subtitle.entity.friendsandfoes.copper_golem.death": "Медный голем погибает",
"subtitle.entity.friendsandfoes.copper_golem.head_spin": "Медный голем поворачивает голову",
"subtitle.entity.friendsandfoes.copper_golem.hurt": "Медный голем ранен",
"subtitle.entity.friendsandfoes.copper_golem.repair": "Медный голем отремонтирован",
"subtitle.entity.friendsandfoes.copper_golem.step": "Шаги",
"subtitle.entity.friendsandfoes.crab.death": "Краб погибает",
"subtitle.entity.friendsandfoes.crab.hurt": "Краб ранен",
"subtitle.entity.friendsandfoes.iceologer.ambient": "Ледолог бормочет",
"subtitle.entity.friendsandfoes.iceologer.cast_spell": "Ледолог произносит заклинание",
"subtitle.entity.friendsandfoes.iceologer.death": "Ледолог умирает",
"subtitle.entity.friendsandfoes.iceologer.death": "Ледолог погибает",
"subtitle.entity.friendsandfoes.iceologer.hurt": "Ледолог ранен",
"subtitle.entity.friendsandfoes.iceologer.prepare_slowness": "Ледолог подготавливает замедление",
"subtitle.entity.friendsandfoes.iceologer.prepare_summon": "Ледолог подготавливает призыв",
"subtitle.entity.friendsandfoes.ice_chunk.ambient": "Ледяная глыба трещит",
"subtitle.entity.friendsandfoes.ice_chunk.hit": "Ледяная глыба падает",
"subtitle.entity.friendsandfoes.ice_chunk.summon": "Ледяная глыба трещит",
"subtitle.entity.friendsandfoes.mauler.bite": "Прожора кусает",
"subtitle.entity.friendsandfoes.mauler.death": "Прожора умирает",
"subtitle.entity.friendsandfoes.mauler.death": "Прожора погибает",
"subtitle.entity.friendsandfoes.mauler.growl": "Прожора рычит",
"subtitle.entity.friendsandfoes.mauler.hurt": "Прожора ранен",
"subtitle.entity.friendsandfoes.moobloom.convert": "Коровоцвет превращается",
Expand All @@ -120,14 +132,12 @@
"subtitle.entity.friendsandfoes.tuff_golem.repair": "Туфовый голем отремонтирован",
"subtitle.entity.friendsandfoes.tuff_golem.wake": "Туфовый голем просыпается",
"subtitle.entity.friendsandfoes.tuff_golem.sleep": "Туфовый голем засыпает",
"subtitle.entity.friendsandfoes.tuff_golem.step": "Шаги",
"subtitle.entity.friendsandfoes.wildfire.ambient": "Инферно дышит",
"subtitle.entity.friendsandfoes.wildfire.death": "Инферно умирает",
"subtitle.entity.friendsandfoes.wildfire.death": "Инферно погибает",
"subtitle.entity.friendsandfoes.wildfire.hurt": "Инферно ранен",
"subtitle.entity.friendsandfoes.wildfire.shield_break": "Щит инферно ломается",
"subtitle.entity.friendsandfoes.wildfire.shockwave": "Инферно создаёт ударные волны",
"subtitle.entity.friendsandfoes.wildfire.shoot": "Инферно стреляет",
"subtitle.entity.friendsandfoes.wildfire.step": "Шаги",
"subtitle.entity.friendsandfoes.wildfire.summon_blaze": "Инферно призывает всполохов",
"trinkets.slot.charm.charm": "Амулет",
"text.betterf3.line.glares": "Остроликие",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"values": [
"minecraft:grass_block",
"minecraft:mud",
"#minecraft:sand"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"values": [
"minecraft:grass_block",
"minecraft:mud",
"minecraft:mangrove_roots",
"minecraft:muddy_mangrove_roots",
"minecraft:sand"
"#minecraft:sand"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"minecraft:mangrove_swamp"
"minecraft:mangrove_swamp",
"minecraft:beach"
]
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ org.gradle.caching=false
mod_java_version=17
mod_name=Friends & Foes
mod_id=friendsandfoes
mod_version=3.0.0
mod_version=3.0.1
mod_author=Faboslav
mod_description=Adds outvoted and forgotten mobs from the mob vote, expanding on their original concepts and introducing new vanilla-like features.
maven_group=com.faboslav.friendsandfoes
Expand Down

0 comments on commit 4eaf3b5

Please sign in to comment.