I don't know about plugin but with functions, you can do this :
First, you have to create a scores to put player Y position and another to know if the player already have reached nether roof
scoreboard objectives add y dummy
scoreboard objectives add go_nether_roof dummy
Then, you store Y position of all players in scoreboard like this :
execute as @e store result score @s y run data get entity @s Pos[1]
Then, you can use this command to test
1) If the player is in the nether (with "dimension=-1")
2) if a player is above the Nether Roof (with "y matches 127.." which means "if players have y above 127")
3) If the player have already reach the nether roof (with "go_nether_roof matches 1")
execute as @e if data entity @s Dimension=-1 if score @s y matches 127.. unless score @s go_nether_roof matches 1 run function datapack:tell_player_nether_roof
and in your function "tell_player_nether_roof" you put
scoreboard players set @s go_nether_roof 1
title [your title command]
if there is something you don't understand, please tell me, i will answer my best :3
Boh tu sais, quand t'as quelque chose que tu veux faire, tu t'y met à fond ^^
J'ai checké toutes les commandes, et des que je trouve un truc qui m'intéresse pour une partie du projet, je cherche plus en profondeur.
Je trouvais pas les command block pratique, donc je m'y étais jamais intéressé, mais avec les fonctions c'est tellement mieux
Je pense y a encore pas mal de trucs sur lesquels jsuis pas au point, je trouve que c'est dur de trouver des tutos qui entrent dans le détail des fonctions.
I have a little complication, and I hope you can help me
So, what I'm trying to do is to modify a shulker_box stocked in my enderchest.
I have command to check if there is a block in, like this :
/execute if data entity @s {EnderItems:[{Slot:0b,Count:1b,id:"minecraft:shulker_box",tag:{BlockEntityTag:{Items:[{Slot:1b,id:"minecraft:stone",Count:1b}]}}}]}
this command check in the shulker box in the first slot of the player's enderchest if there is one stone block in the first slot.
But how can I just add one stone in this shulker, on a different slot, without replace the shulker already in.
I want to add a stone in another slot without loose my first stone.
I tested some command but no success :'o
I tried this :
/data modify entity @s enderchest.0 append value {tag:{BlockEntityTag:{Items:[{Slot:5b,Count:1b,id:"minecraft:stone"}]}}}
But I got "Unable to modify player data".
Sorry for my english, I don't know if all I said was in this language B|
0
Hello !
I don't know about plugin but with functions, you can do this :
First, you have to create a scores to put player Y position and another to know if the player already have reached nether roof
Then, you store Y position of all players in scoreboard like this :
Then, you can use this command to test
1) If the player is in the nether (with "dimension=-1")
2) if a player is above the Nether Roof (with "y matches 127.." which means "if players have y above 127")
3) If the player have already reach the nether roof (with "go_nether_roof matches 1")
and in your function "tell_player_nether_roof" you put
if there is something you don't understand, please tell me, i will answer my best :3
1
Hello !
Yes there is a way to do it ! You just have to create a score that store the kill count, like this :
0
Ah ok, c'est bien ce que je pensais, j'étais parti trop loin ^^'
Merci <3
0
Je pense que j'vais aller faire un tour sur ce discord, il m'a l'air intéressant
Sinon, j'suis sûr que c'est tout con mais je trouve pas comment avoir un Item avec un data comme dans ton exemple
(A tous les coups je suis allé chercher trop loin alors que la réponse est sous mon nez ^^)
0
Boh tu sais, quand t'as quelque chose que tu veux faire, tu t'y met à fond ^^
J'ai checké toutes les commandes, et des que je trouve un truc qui m'intéresse pour une partie du projet, je cherche plus en profondeur.
Je trouvais pas les command block pratique, donc je m'y étais jamais intéressé, mais avec les fonctions c'est tellement mieux
Je pense y a encore pas mal de trucs sur lesquels jsuis pas au point, je trouve que c'est dur de trouver des tutos qui entrent dans le détail des fonctions.
0
Oh, I just started using command block last week, I didn't thought you can do that kind of stuff !
That will be more easier ^^'
I will search for tuto that will help me doing it, thanks again, you' re seriously great help
#TeamFrançais
0
Thanks for your detailled answer !
This method was my last chance option, sadly.
I work on a project for a server, and use this solution has a little chance to fail, i think, but chances are small, so i will use it.
I thought of this method for quest system, I don't want to surcharge variables in scoreboard and I try to put the least armorstand as possible.
Thanks again
0
Hello everyone !
I have a little complication, and I hope you can help me
So, what I'm trying to do is to modify a shulker_box stocked in my enderchest.
I have command to check if there is a block in, like this :
this command check in the shulker box in the first slot of the player's enderchest if there is one stone block in the first slot.
But how can I just add one stone in this shulker, on a different slot, without replace the shulker already in.
I want to add a stone in another slot without loose my first stone.
I tested some command but no success :'o
I tried this :
But I got "Unable to modify player data".
Sorry for my english, I don't know if all I said was in this language B|