Could you please update your script? or try to solve? it pops up this error, I tried several times to solve it, but I couldn't [Scripting][error]-Plugin [ - 1.0.0] - [main.js] ran with error: [TypeError: cannot read property 'subscribe' of undefined at (hp.js:7) ]
I replaced world.events.tick.subscribe with system.runSchedul But it didn't work anyway, and now the log shows another error, saying it has no function 😞
Help, this didn't work import { world } from "@minecraft/server" world.events.tick.subscribe(() => { const entities = Array.from(world.getDimension("overworld").getEntities()) for (const entity of entities) {
if (entity.hasTag("show_health")) entity.getComponent("minecraft:health") entity.runCommandAsync('execute as @e[tag=show_health] run execute as @s run scoreboard players set @s health ${health.current}') } } ,)
looking forward to it, you deserve more Subscribers
Thank you so much bro, I've been trying to do this for a long time, thank you so much!
Love you vid bro
Good video bro! :D
god channel bro
Nice
I am indian🇮🇳 don't understand your language but still loves you contend. Keep it up bro👍👍🖤🖤🖤
How to remove this without having the world.events.tick not existing
Could you fix this one for 1.20.80?
i tried editing tick event and import and it still didnt work..
i changed it to system.runInterval because i think tick event doesnt work anymore but i get an error at replace if you can fix that
Thanks
Could you please update your script? or try to solve? it pops up this error, I tried several times to solve it, but I couldn't
[Scripting][error]-Plugin [ - 1.0.0] - [main.js] ran with error: [TypeError: cannot read property 'subscribe' of undefined at (hp.js:7)
]
That error is bc tick event doesnt exist anymore. Use system.runSchedule instead
I replaced world.events.tick.subscribe with system.runSchedul But it didn't work anyway, and now the log shows another error, saying it has no function 😞
@@SrMateu meaning that you misspelled something. Check the docs. Also in the beta versions its runInterval
what if i want entity name instead of id can you help me pls
then you can just use the entity.nameTag property
how to turn the entity health to scoreboard?
Run a command every tick that uses the entities health.current and set the scorebord value to that
@@Dingsel thanks
Help, this didn't work
import { world } from "@minecraft/server"
world.events.tick.subscribe(() => {
const entities = Array.from(world.getDimension("overworld").getEntities())
for (const entity of entities) {
if (entity.hasTag("show_health")) entity.getComponent("minecraft:health") entity.runCommandAsync('execute as @e[tag=show_health] run execute as @s run scoreboard players set @s health ${health.current}')
}
}
,)
it doesn't show the player's name but only the type of entities
Make it so when the entity is a plaer, it uses the player name
@@Dingsel can U show me?
@@Dingsel can you help me please, I found this for a long time
@@Dingsel i can't see player name, and i'm trying to fix that:(
@@phatday_ I cant help you with that little information
Is it available on players?
it will say plaers but yes. to fix that just set the player nameTag to the player name + health
Can you show the rank, how?
What do you mean by "Rank"?
good video bro
Update 1.19 bro?
I made a video on how to update the scripts. You just have to change the module in the manifest
hey dingsel! Ass language! Ily
Nice