Skip to content

Commit 4104dc6

Browse files
authored
Upload generated files
1 parent 8e5d3f8 commit 4104dc6

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

scripts/health-display/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import { EntityHealthComponent, system, world } from "@minecraft/server";
55
system.runInterval(() => {
66
for (const player of world.getPlayers()) {
77
const health = player.getComponent(EntityHealthComponent.componentId);
8-
player.nameTag = `${player.name}\n§c❤️ ${health.current.toFixed(1)}`;
8+
player.nameTag = `${player.name}\n§c❤️ ${health.currentValue.toFixed(1)}`;
99
}
1010
});

scripts/minecraft-language/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Script example for ScriptAPI
2+
// Author: bot174 <https://github.com/bot174>
3+
// Project: https://github.com/JaylyDev/ScriptAPI
14
export const languageKeys = [
25
"accessibility.disableTTS",
36
"accessibility.enableTTS",

scripts/player-velocity-fix/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function setVelocity(velocity, player) {
4848
else {
4949
// Force the player to ride the entity until the entity lands
5050
Commands.runAsync(`ride "${player.name}" start_riding @s teleport_rider`, entity);
51-
movement?.setCurrent(0);
51+
movement?.setCurrentValue(0);
5252
health?.resetToMaxValue();
5353
}
5454
;

scripts/simulated-player/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Script example for ScriptAPI
2+
// Author: Jayly <https://github.com/JaylyDev>
3+
// Project: https://github.com/JaylyDev/ScriptAPI
14
import * as Minecraft from "@minecraft/server";
25
/**
36
* A simulated player can be used to represent

0 commit comments

Comments
 (0)