Hello. You should make a warning that searching for a structure will always create freezes on the server, since searching for a structure almost always spends more than 50ms of server time. Therefore, it is recommended to minimize the frequency of structure searches as much as possible.
And also, I wanted to ask you something about the tomb datapack, if it is possible once the player dies and his tomb is placed, the coordinates of his tomb are given to him in the action bar? But I don't know how to do it
Hi, could you help me? I would like to create a command that does something like this: If a player kills a creeper, a message saying 'Congrats, you won' will appear in the chat. Then, after a few seconds, the player will be teleported to a specific location... I am on Java 1.19.2
@ajx0207 Yes, you can create a datapack with an advancement with a player_killed_entity trigger, then run the function, give the player a tag and using a schedule run another function after a few seconds in which you teleport the players with the tag and remove the tag.
Hello.
You should make a warning that searching for a structure will always create freezes on the server, since searching for a structure almost always spends more than 50ms of server time. Therefore, it is recommended to minimize the frequency of structure searches as much as possible.
Good point, I'll pin this for people to see, thank you. :)
I recently made custom maps that help you find custom structures, not just the vanilla ones in the game, which is really cool.
That sounds very useful, you could point players to anywhere you like then.
And also, I wanted to ask you something about the tomb datapack, if it is possible once the player dies and his tomb is placed, the coordinates of his tomb are given to him in the action bar? But I don't know how to do it
Episode 151 in the Command Block series shows how to get the player lastDeathLocation.
That may help you: ruclips.net/video/ZRfoniWK7vo/видео.html
Nice
Thank you. :)
Hi, could you help me? I would like to create a command that does something like this: If a player kills a creeper, a message saying 'Congrats, you won' will appear in the chat. Then, after a few seconds, the player will be teleported to a specific location...
I am on Java 1.19.2
# In chat
scoreboard objectives add killed.creeper killed:creeper
# Command blocks
tellraw @a[scores={killed.creeper=1}] "Congrats, you won."
scoreboard players add @a[scores={killed.creeper=1..}] killed.creeper 1
tp @a[scores={killed.creeper=200}]
scoreboard players reset @a[scores={killed.creeper=200..}] killed.creeper
@@GalSergey thank you. But is it possible without a scoreboard?
@ajx0207 Yes, you can create a datapack with an advancement with a player_killed_entity trigger, then run the function, give the player a tag and using a schedule run another function after a few seconds in which you teleport the players with the tag and remove the tag.
I see GalSergey beat me to it. :)
bro name of that extension you're using for folder and files
I'm pretty sure that one is:
Datapack Icons by FuncFusion