Skip to content

Commit

Permalink
Make daily xp reward requirements more forgiving
Browse files Browse the repository at this point in the history
  • Loading branch information
supercam19 committed Jul 21, 2022
1 parent 5a79ac0 commit 3e3f6f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

## Multiplayer Fixes [1.0.5]

### Changes
- Made the daily friendship xp reward requirements more forgiving in multiplayer

### Fixes
- Fixed if another companion is nearer when a player is creating their companion they wouldn't get linked to their new companion
- Fixed bug where friendship xp gain from killing mobs usually wouldn't work in multiplayer
- Fixed books sometimes getting stats from the wrong companion in multiplayer

## Gifting Update [1.0.4]

Expand Down
2 changes: 1 addition & 1 deletion data/companions/functions/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ execute as @e[tag=cmp.companion] at @s run function companions:companion_particl
execute as @e[tag=cmp.companion] at @s if entity @e[type=item,distance=..2,nbt={Item:{id: "minecraft:book"}}] run execute as @a if score @s cmp.identifier = @e[type=wolf,tag=cmp.companion,sort=nearest,limit=1] cmp.identifier run function companions:companion_book
function companions:track_exp
execute as @a[tag=cmp.ready_for_gift] at @s if score @s cmp.identifier = @e[tag=cmp.companion,sort=nearest,limit=1,distance=..3] cmp.identifier run function companions:get_gift
execute if predicate companions:new_day run execute as @a[tag=cmp.has_companion] if score @s cmp.identifier = @e[tag=cmp.companion,sort=nearest,limit=1] cmp.identifier run scoreboard players add @s cmp.exp 10
execute if predicate companions:new_day run execute as @a[tag=cmp.has_companion] at @s if entity @e[tag=cmp.companion,distance=..30] run scoreboard players add @s cmp.exp 10

0 comments on commit 3e3f6f3

Please sign in to comment.