randomuser922
  • Member for 1 year, 3 months
  • Last seen more than a month ago
How can I prevent players from having a specific item in their inventory?
15 votes

Alternate Method: Use a datapack to run the /clear command. This works since datapack functions are always loaded, no matter where you are in the world. You can just reference a function in the ...

View answer
How do I kill a slime without it splitting?
5 votes

You could teleport it far away or into the void. You could also preform multiple kill commands. Those are two ways of solving it. If you want the death animation then kill it then teleport all the ...

View answer
How can I modify an item while it is inside the player's inventory?
3 votes

1.16− An interesting workaround to change NBT of a custom item is to copy it to a chest, modify it in the chest (where it can be modified) and then use /loot in replace mode to replace the item slot. ...

View answer
How can I teleport someone to spawn based on team and position?
3 votes

With selectors, all filters(or the values in the square brackets) go in one array(square brackets). It would be in the form of name=value,name=value,name=value and it keeps going until you don't have ...

View answer
How do I create an unbreakable bow in Minecraft Java Edition vanilla?
3 votes

Your Problems You have one problem and I have one suggestion. Problem: You put the count before the nbt the syntax for the give command is the following. /give <selector> <item>{<nbt>...

View answer
How can I block people getting onto the roof of the Nether in Minecraft?
3 votes

My method uses scoreboards for detecting position. Since with scoreboards you can execute if a score is in a range. Note: This will work in a infinite area, and may cause less lag then some other ...

View answer
How do I get some other entity to rotate as me?
2 votes

Assuming you are in the latest version(1.16.5), the following methods should work. For a single entity(excluding players), you could do: data modify entity <selector with limit=1> Rotation set ...

View answer
How to deal a specific amount of damage using commands?
Accepted answer
2 votes

1.16+ Note: This data pack is in beta, and is in the works. If you have any bugs please let me know, and I'll add it to the known bugs list. Also, this is not tested in any version other then 1.16.4 ...

View answer
Setblock replace door without particle
Accepted answer
2 votes

You said that the setblock command emits particles when replacing a door. The fill command can also replace blocks. The fill command doubly can replace whole doors and other blocks that uses ...

View answer
How to detect when the player is at half a heart with command blocks 1.16.3
Accepted answer
2 votes

For this method you need a scoreboard for health. You can make it with the following command. scoreboard objectives add health health To test if a player has a certain amount of health, you can do it ...

View answer
How to teleport to a specific place but near player
Accepted answer
2 votes

You could do execute as <player selector> at @s positioned ~<x offset> ~<y offset> ~<z offset> run tp <husk selector> ~ ~ ~ The positioning offset is based on x y and z ...

View answer
Is there a way to get the behavior pack out of a MCworld file?
1 votes

Extracting Just open the .mcworld file with an archiver e.g. WinRAR. Then go to the behavior_packs folder and extract your behavior pack. If the behavior pack requires a resource pack, then you will ...

View answer
How can you make a infinity damage sword?
1 votes

Try setting the amount to 1.79769313486232E+308d To make this command. give @p netherite_sword{Unbreakable:1b,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic....

View answer
How do you modify the attack speed NBT in Minecraft 1.16?
Accepted answer
1 votes

The following command was generated from MCStacker using the give command generator. /give @p diamond_sword{AttributeModifiers:[{AttributeName:"generic.attack_speed",Name:"generic....

View answer
How do I replace blocks around me as I move?
Accepted answer
1 votes

Just put in a Repeating Command Block set to Always Active or in a Ticking function, the following command. execute at <selector eg @p> run fill ~-5 ~-5 ~-5 ~5 ~5 ~5 <what block you want to ...

View answer
How to teleport player 5 blocks in front of them with command blocks
Accepted answer
1 votes

Your command is the following. execute as <selector> at @s run tp ^ ^ ^5 That will teleport you 5 blocks in front of you. The ^ are used for cords relative to what your head rotation is. The ...

View answer
How do I add enchants along with name in command block
1 votes

It seems to me that you have malformed nbt. In all the commands you’ve tried, you opened an array and never closed it. What you’ve done. Enchantments:[{id:"minecraft:knockback",lvl:1000s} ...

View answer
How to apply damage to entities without instant damage effect?
1 votes

1.16+ Note: This data pack is in beta, and is in the works. If you have any bugs please let me know, and I'll add it to the known bugs list. Also, this is not tested in any version other then 1.16.4 ...

View answer
How do you set a player's health to a specific amount of HP in minecraft?
1 votes

1.16+ Note: This data pack is in beta, and is in the works. If you have any bugs please let me know, and I'll add it to the known bugs list. Also, this is not tested in any version other then 1.16.4 ...

View answer
how to run random command through datapack?
1 votes

1.15+ My solution uses an nbt array, grabs a random number, takes the value at index that was generated, and runs the command in a command block. Preparation in Minecraft So in preparation, you will ...

View answer
How do I make a circle with particles?
Accepted answer
1 votes

You could use this. That is a particle plotter by Cloud Wolf on YouTube that generates a function for Minecraft. The website has a video on how to use it (link is broken at the time of answer). To ...

View answer
Is there any way to get a random item without naming every item in minecraft?
1 votes

If you can use datapacks, then the following method is a possibility. The method can take a lot of time to make, but requires a few commands to run. So in a datapack make a loot table with every ...

View answer
How to detect a player’s x coordinate and teleport them to the other side of the map in 1.15.2?
1 votes

For my method, we will use scoreboards. First you must make a scoreboard with a dummy critera we'll name it xpos. Then you have to put it in a repeating command block or in a ticking function (a ...

View answer
Get head from world coordinate and give it to player
1 votes

You could do loot replace entity <player selector> <slot> mine <cords> minecraft:stick That should work unless I messed up the command syntax. If it doesn’t work for you comment it ...

View answer
minecraft- how to stop the voices that sing underwater?
Accepted answer
1 votes

You can change the sound of it with a resourcepack. You could change it to an empty sound file and that would get rid of it. To do this you have to know which sound it is in Minecraft. To change it ...

View answer
Teleport randomly an entity vertically
Accepted answer
1 votes

You could randomly generate 2 numbers with a range of your choice and modify the armor stand's x and y position to that number if there is enough space at that location. You can do random number ...

View answer
Display text and score above players character (mc 1.16.3)
Accepted answer
1 votes

You could either use teams or the marker tag for the armor stand. The marker tag removes the hitbox. For the teams you can have prefixes and suffixes. You can do it with mcstacker at https://...

View answer
How do I backup my Minecraft world on Xbox to a flash drive without realms?
Accepted answer
0 votes

I've found an inexpensive way of backing up your Minecraft world. For this method you will need: My Files Explorer installed on your Xbox (available in a 24 hour trial or for >$3), An external ...

View answer
How do I detect if there are any mobs in a specific area and execute a command when they are no longer present in that area?
0 votes

This method uses a scoreboard to track the mobs on a floor, and executes a command when the scoreboard is 0. Important: This method works only in versions 1.13+ Preparation First off, you need a ...

View answer
How to get the power to break blocks without tools in adventure mode
0 votes

If you are in 1.13+ and can use datapacks then I have a solution. Although this isn’t the best solution it is a decent solution. First off you are going to need a block tag of all the blocks you ...

View answer