Suggestion for @mental lantern
#Help me! Java Bow Ding
1 messages · Page 1 of 1 (latest)
No problem!
bro no function (no funciona) creo qes un error de la 1.20
I do not understand that language
bro no function (doesn't work) I think it's a 1.20 error
He's saying it doesn't work đ€·ââïž
1117070196771934228
He's saying it doesn't work
Health display
Display player's health below player's name tag using scripts.
Click the link above for source code of the script.
·
Then do you need a script that plays a sound when you hit a player with an arrow? (Entonces, Âżnecesitas un script que reproduzca un sonido cuando golpees a un jugador con una flecha?)
That is very easy (Eso es muy fĂĄcil)
world.afterEvents.projectileHit.subscribe(event => {
const { source: player, projectile } = event;
const playerHit = event.getEntityHit()?.entity;
const playerHitHealth = playerHit.getComponent("minecraft:health");
const soundOptions = { volume: 0.4, pitch: 0.5 };
if(playerHit?.typeId !== "minecraft:player" ||
player.typeId !== "minecraft:player" ||
projectile.typeId !== "minecraft:arrow") return;
player.sendMessage(`§7Has dado >>§b${playerHit.name} §l§aHP§r§f: §c${Math.round(playerHitHealth.current) / 2}§f/§a${Math.round(playerHitHealth.value) / 2}`);
player.playSound("random.orb");
});```
fua bro gracias
thanks
your code works, the other doesn't
Yes but wait a moment, I forgot something >> (SĂ, pero espera un momento, olvidĂ© algo).
ok
Okay, I speak spansih. What did you say? >> (Bien, hablo español. ¿Qué dijiste?).
osea le pego y no suena
sera por la 1.20 no se
A ver, hablemos por MD. De hecho este servidor lleva en sus reglas "Habla solo en InglĂ©s o algo asĂ".