The Meaning of Life, the Universe, and Everything.
Join Date:
4/16/2017
Posts:
54
Minecraft:
min3craftgoldmad
Member Details
i found a one command thing for xray so you drop a beacon called "XRAY" on the ground and it turns into a peice of white stained glass and when you hold it, all the stone arround you turns to barriers and when you let go it turn back to stone but i couldn't make it work in1.13
i found a one command thing for xray so you drop a beacon called "XRAY" on the ground and it turns into a peice of white stained glass and when you hold it, all the stone arround you turns to barriers and when you let go it turn back to stone but i couldn't make it work in1.13
Sorry for the delay. I was working on this idea and testing it. Apparently my solution doesn't need /execute store at all.
Here's the full command:
Impulse
give @p beacon{Xray:1,display:{Name:"\"XRAY\""}} 1
Repeating
1. execute as @e[type=item,nbt={OnGround:1b,Item:{id:"minecraft:beacon",tag:{Xray:1}}}] run data merge entity @s {Item:{id:"minecraft:white_stained_glass"}}
2. tag @e[type=item,nbt={OnGround:1b,Item:{id:"minecraft:white_stained_glass",tag:{Xray:1}}}] add xray
3. tag @a[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] add xray
4. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] at @s run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace barrier
5. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] run give @s beacon{Xray:1,display:{Name:"\"XRAY\""}} 1
6. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] run clear @s minecraft:white_stained_glass{Xray:1} 1
7. execute as @e[tag=xray] at @s run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
8. execute as @e[tag=xray] at @s run fill ~3 ~3 ~3 ~-3 ~-3 ~-3 barrier replace stone
9. execute as @a[tag=xray] at @s unless entity @s[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
10. execute as @a[tag=xray] unless entity @s[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] run tag @s remove xray
Notes:
1. You can edit the nbt data of the beacon freely, you just need to keep it a beacon and has an nbt tag Xray:1
2. Currently the size of the x-ray is 7x7x7 in a cube, item/player as the center. If you want to increase it, do it on the /fill command. The stone /fill must have at least 2 blocks out to prevent players from bugging the system using Speed II-
3. The command must be in the order I showed you. Otherwise something will break.
4. It'll be better if you make it into a function file (.mcfunction)
If you insist of getting One Command, which is not popular after 1.13, find a generator on the Internet.
1. execute as @e[type=item,nbt={OnGround:1b,Item:{id:"minecraft:beacon",tag:{Xray:1}}}] run data merge entity @s {Item:{id:"minecraft:white_stained_glass"}}[/i]
I would set the Xray tag of the glass to 2 so that I don't have to write it's ID whenever I want to detect.
4. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] at @s run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace barrier[/i]
What's the purpose of that command?
5. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] run give @s beacon{Xray:1,display:{Name:"\"XRAY\""}} 1 6. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] run clear @s minecraft:white_stained_glass{Xray:1} 1
I would simplified the 5th command: execute as @a[nbt={Inventory:[{tag:{Xray:2}}]}] run give @s beacon{Xray:1,display:{Name:"\"XRAY\""}} 1
And the 6th: clear @a minecraft:white_stained_glass{Xray:2} 1
7. execute as @e[tag=xray] at @s run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
That commands can be simplified too: execute at @e run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
9. execute as @a[tag=xray] at @s unless entity @s[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
Again, why do you need that command?
10. execute as @a[tag=xray] unless entity @s[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] run tag @s remove xray
Another command can be simplified: tag @e remove xray
The Meaning of Life, the Universe, and Everything.
Join Date:
4/16/2017
Posts:
54
Minecraft:
min3craftgoldmad
Member Details
i'll try this command and use the impulse command to give the beacon but i was going to use this in survival, would i be able to swap xray:1 to display:{name=XRAY}??
thanks for all the help, if you couldn't do the name=xray thing it's fine
i'll try this command and use the impulse command to give the beacon but i was going to use this in survival, would i be able to swap xray:1 to display:{name=XRAY}??
thanks for all the help, if you couldn't do the name=xray thing it's fine
I mean, if it's a custom item, using custom tag like Xray:1 will be better.
Do you mean that even normal survival players can obtain it by simply renaming the beacon?
im not sure is the stats command is gone or was put with executeand im not very good with 1.13, im trying to swap some commands to 1.13
/stats entity @a set SuccessCount @p XRayMulti
/stats entity @a clear SuccessCount
none of them 2 commands work
thanks for any help
(im in 1.13.1)
EDIT: if anyone could make those 2 commands in 1.13 that would be helpful
/execute as @a store success score @s XRayMulti run <The command you're detecting>
I'm not rly familiar with the /execute store command, but that should be roughly it.
Also, you can do the 2nd command by simply not running the 1st command.
can i run the command without the run part on the end? i just want to set the score XRayMulti to the sucsss count
and i do need to use the 2nd command
thanks for the help
I believe not.
Maybe this. I'm a bit confused what you're trying to do.
Do you mind telling me/us what you're trying to do? (If you don't want to spoil your map, just substitute the name or item/block with other stuff)
There might be a way of not using /stats, consider 1.13 is a huge command update.
i found a one command thing for xray so you drop a beacon called "XRAY" on the ground and it turns into a peice of white stained glass and when you hold it, all the stone arround you turns to barriers and when you let go it turn back to stone but i couldn't make it work in1.13
Sorry for the delay. I was working on this idea and testing it. Apparently my solution doesn't need /execute store at all.
Here's the full command:
Impulse
give @p beacon{Xray:1,display:{Name:"\"XRAY\""}} 1
Repeating
1. execute as @e[type=item,nbt={OnGround:1b,Item:{id:"minecraft:beacon",tag:{Xray:1}}}] run data merge entity @s {Item:{id:"minecraft:white_stained_glass"}}
2. tag @e[type=item,nbt={OnGround:1b,Item:{id:"minecraft:white_stained_glass",tag:{Xray:1}}}] add xray
3. tag @a[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] add xray
4. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] at @s run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace barrier
5. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] run give @s beacon{Xray:1,display:{Name:"\"XRAY\""}} 1
6. execute as @a[nbt={Inventory:[{id:"minecraft:white_stained_glass",tag:{Xray:1}}]}] run clear @s minecraft:white_stained_glass{Xray:1} 1
7. execute as @e[tag=xray] at @s run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
8. execute as @e[tag=xray] at @s run fill ~3 ~3 ~3 ~-3 ~-3 ~-3 barrier replace stone
9. execute as @a[tag=xray] at @s unless entity @s[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
10. execute as @a[tag=xray] unless entity @s[nbt={SelectedItem:{id:"minecraft:beacon",tag:{Xray:1}}}] run tag @s remove xray
Notes:
1. You can edit the nbt data of the beacon freely, you just need to keep it a beacon and has an nbt tag Xray:1
2. Currently the size of the x-ray is 7x7x7 in a cube, item/player as the center. If you want to increase it, do it on the /fill command. The stone /fill must have at least 2 blocks out to prevent players from bugging the system using Speed II-
3. The command must be in the order I showed you. Otherwise something will break.
4. It'll be better if you make it into a function file (.mcfunction)
If you insist of getting One Command, which is not popular after 1.13, find a generator on the Internet.
I would set the Xray tag of the glass to 2 so that I don't have to write it's ID whenever I want to detect.
What's the purpose of that command?
I would simplified the 5th command: execute as @a[nbt={Inventory:[{tag:{Xray:2}}]}] run give @s beacon{Xray:1,display:{Name:"\"XRAY\""}} 1
And the 6th: clear @a minecraft:white_stained_glass{Xray:2} 1
That commands can be simplified too: execute at @e run fill ~5 ~5 ~5 ~-5 ~-5 ~-5 stone replace minecraft:barrier
Again, why do you need that command?
Another command can be simplified: tag @e remove xray
ewe
It'll be best if you run the command yourself. Or did you...
And yeah, I agree that Xray:2 is better than typing the id... It's long...
i'll try this command and use the impulse command to give the beacon but i was going to use this in survival, would i be able to swap xray:1 to display:{name=XRAY}??
thanks for all the help, if you couldn't do the name=xray thing it's fine
I mean, if it's a custom item, using custom tag like Xray:1 will be better.
Do you mean that even normal survival players can obtain it by simply renaming the beacon?
also if i wanted to make the cube 10x10 which commands would i need to change?
It's just the /fill command. Change the 3 into 5 and the 5 into 7 (or more if you allow players with speed IV+).
That'll make it 11x11x11, but can't rly do anything if I want to keep this command easy.