Skip to content

Commit 785719f

Browse files
committed
[PRE-RELEASE] 1.0.0-rc2 (French translation)
1 parent 5309fbc commit 785719f

File tree

5 files changed

+31
-12
lines changed

5 files changed

+31
-12
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
# Fabric Example Mod
1+
# Fidelity Mod
2+
_A Fabric mod for all horses, donkeys, and horses_
23

3-
## Setup
4+
This mod adds a whip to the game, which can be used to take ownership of a tamed equine, and configure its behavior, as well as prevent animal theft.
45

5-
For setup instructions please see the [fabric wiki page](https://fabricmc.net/wiki/tutorial:setup) that relates to the IDE that you are using.
6+
Current available options are:
7+
- Follow: the animal will follow you, similarly to how dogs, cats, and parrots follow their owner
8+
- Standing: the animal will not move (it can still be pushed around though)
9+
- Roaming: the animal will do what it normally does, i.e. roam around randomly
10+
- Roaming free: this option revokes your ownership of the animal, allowing other players to mount it and use their whip on it
611

7-
## License
12+
### Changelog
813

9-
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.
14+
V1.0.0-rc2:
15+
- Full French (France) translation
16+
V1.0.0-rc1:
17+
- Initial release
18+
- 1.16.3 and 1.15.2 support

src/main/java/org/scbrm/fidelity/WhipItem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import net.minecraft.particle.ParticleEffect;
99
import net.minecraft.particle.ParticleTypes;
1010
import net.minecraft.sound.SoundEvents;
11-
import net.minecraft.text.LiteralText;
11+
import net.minecraft.text.TranslatableText;
1212
import net.minecraft.util.ActionResult;
1313
import net.minecraft.util.Hand;
1414
import net.minecraft.util.TypedActionResult;
@@ -40,15 +40,15 @@ public ActionResult useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity
4040
if(iequine.getState() == IHorseBaseEntity.State.ROAMING_FREE) {
4141
iequine.setMaster(user);
4242
} else if(iequine.getMaster() != user) {
43-
user.sendSystemMessage(new LiteralText("You do not own this animal"), Util.NIL_UUID);
43+
user.sendSystemMessage(new TranslatableText("fidelity.text.not_own_animal"), Util.NIL_UUID);
4444
return ActionResult.success(user.world.isClient);
4545
}
4646

4747
final IHorseBaseEntity.State state = iequine.getState().next();
4848
iequine.setState(state);
4949
if(state == IHorseBaseEntity.State.ROAMING_FREE)
5050
iequine.setMasterUuid(null);
51-
user.sendSystemMessage(new LiteralText("Animal set to " + state.toString()), Util.NIL_UUID);
51+
user.sendSystemMessage(new TranslatableText("fidelity.text.setstate." + state.toString()), Util.NIL_UUID);
5252
} else if(equine.isAlive() && !equine.isTame() && user.world.isClient) {
5353
spawnParticles(entity, false);
5454
}

src/main/java/org/scbrm/fidelity/mixin/HorseBaseEntityMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import net.minecraft.entity.player.PlayerEntity;
44
import net.minecraft.nbt.CompoundTag;
55
import net.minecraft.server.ServerConfigHandler;
6-
import net.minecraft.text.LiteralText;
6+
import net.minecraft.text.TranslatableText;
77
import org.scbrm.fidelity.bridge.IHorseBaseEntity;
88
import org.scbrm.fidelity.entity.ai.goal.ObeyMasterGoal;
99
import net.minecraft.entity.EntityType;
@@ -105,7 +105,7 @@ public void _readCustomDataFromTag(CompoundTag tag, CallbackInfo info) {
105105
void preventTheft(PlayerEntity player, CallbackInfo info){
106106
if(this.state.hasMaster() && !this.isMaster(player)) {
107107
if(!player.world.isClient)
108-
player.sendSystemMessage(new LiteralText("You do not own this animal"), NIL_UUID);
108+
player.sendSystemMessage(new TranslatableText("fidelity.text.not_own_animal"), NIL_UUID);
109109
info.cancel();
110110
}
111111
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"item.fidelity.whip_item": "Whip"
2+
"item.fidelity.whip_item": "Whip",
3+
"fidelity.text.not_own_animal": "You do not own this animal",
4+
"fidelity.text.setstate.ROAMING_FREE": "The animal is set free",
5+
"fidelity.text.setstate.ROAMING": "The animal is now yours, and will roam around",
6+
"fidelity.text.setstate.FOLLOWING": "The animal follows you",
7+
"fidelity.text.setstate.STANDING": "The animal stands right where it is"
38
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"item.fidelity.whip_item": "Cravache"
2+
"item.fidelity.whip_item": "Cravache",
3+
"fidelity.text.not_own_animal": "Cet animal ne vous appartient pas",
4+
"fidelity.text.setstate.ROAMING_FREE": "L'animal est désormais libre",
5+
"fidelity.text.setstate.ROAMING": "L'animal est vôtre, et va paître",
6+
"fidelity.text.setstate.FOLLOWING": "L'animal vous suis",
7+
"fidelity.text.setstate.STANDING": "L'animal est désormais immobile"
38
}

0 commit comments

Comments
 (0)