• 8/16/26 5:44 am
- 4 views
- 1
- 1
68
This tutorial will be updated over time with more command tutorials, tips and tricks, examples and more!
So make sure to subscribe to get notified about future updates!
In this blog I will share everything I learned about minecraft commands and datapacks from the past couple of years that I've been posting on this page. I will begin with basic minecraft commands first and then move along to more complicated commands and then how a datapack is better than pure command blocks. I will also mostly mention how you can use these for minigames as it is what I mostly create.
Day 1
Today I will focus on small simple commands that are very useful while also showing some other basic commands that are not so useful.
/clear
Really simple use and syntax, this command is used to remove items from the player's inventory, while also tracking how many items it removed.
Syntax: /clear <user> <item> <amount of items>
By just typing /clear on a user it will remove their whole inventory. If you specify the item it will only remove that item and by specifying the amount it will only remove that amount
Example:
/clear : removes all items from the inventory of the person who ran the command
/clear geosivridis : removes all items from the inventory of player geosivridis
/clear geosivridis iron_ingot : removes every iron ingot from the inventory of player geosivridis
/clear geosivridis diamond 3 : removes only 3 diamonds from the inventory of player geosivridis
Tip: you do not have to specify one specific player, you may use @a and target all players online.
I mentioned you can use this to track how many items you removed from the player, but I will show how to when we get to /execute store.
/effect
This command is used to clear and add effects on a player or entity.
Syntax: /effect clear <user> <effect> OR /effect give <user> <effect> <time in seconds> <amplifier> <hide particles>
hide particles is optional with it being false by default
Examples: /effect clear : clears all effects of the person who ran the command
/effect clear geosivridis : clears all effects of the player geosivridis
/effect clear geosivridis speed : only clears the speed effect from the player geosivridis
/effect give geosivridis speed 10 1 : gives speed 1 for 10 seconds to the player
/effect give geosivridis regeneration infinite 3 true : gives regeneration 3 forever to the player while also hiding particles
Same here too, you can target multiple players and entities
Which brings me to the next thing that is somewhat related
Target selectors (part 1)
Very important, they are not exactly commands but any command that targets an entity or player uses target selectors. They include:
@a : All players
@p : Nearest player
@r : Random player
@n : Nearest alive entity
@s : Current entity
@e : All entities
Target selectors also include extra arguments that make them target more specific entities or players, this is why this is split into multiple parts. You can add them by adding square brackets [] after the selector
Some arguments include distance=, type=, scores=, tag= and more but for now we only focus on type=.
type= is only used in @e, it targets specific entities
So for example: /kill is a command that kills entities
If you type /kill @e : it will be chaos because it will kill every single entity and player
But if you type /kill @e[type=chicken] : it will only kill every chicken
You can also use type= and other argument to NOT target something by including a ! in the beginning
So if we had /kill @e[type=!chicken] : this would now kill every entity EXCEPT chickens
You can use type=! multiple times to exclude different mobs, but you can not use type= multiple times, if you have one type= you can not add another type= or type=!
/enchant
Now this is NOT useful since it is way to limited. You can understand that this command enchants your item but it is limited to what you can do in survival, and also fails if you hold the wrong item so I do not recommend it.
Syntax: /enchant <user> <enchantment> <level>
Example: /enchant geosivridis sharpness 5 : enchants your sword with sharpness 5, you can not go over 5 in sharpness as it follows the normal enchantments
If you are lazy and want to enchant your item in a creative world you can use this, but otherwise it is simply more efficient to /give the item instead
So make sure to subscribe to get notified about future updates!
In this blog I will share everything I learned about minecraft commands and datapacks from the past couple of years that I've been posting on this page. I will begin with basic minecraft commands first and then move along to more complicated commands and then how a datapack is better than pure command blocks. I will also mostly mention how you can use these for minigames as it is what I mostly create.
Day 1
Today I will focus on small simple commands that are very useful while also showing some other basic commands that are not so useful.
/clear
Really simple use and syntax, this command is used to remove items from the player's inventory, while also tracking how many items it removed.
Syntax: /clear <user> <item> <amount of items>
By just typing /clear on a user it will remove their whole inventory. If you specify the item it will only remove that item and by specifying the amount it will only remove that amount
Example:
/clear : removes all items from the inventory of the person who ran the command
/clear geosivridis : removes all items from the inventory of player geosivridis
/clear geosivridis iron_ingot : removes every iron ingot from the inventory of player geosivridis
/clear geosivridis diamond 3 : removes only 3 diamonds from the inventory of player geosivridis
Tip: you do not have to specify one specific player, you may use @a and target all players online.
I mentioned you can use this to track how many items you removed from the player, but I will show how to when we get to /execute store.
/effect
This command is used to clear and add effects on a player or entity.
Syntax: /effect clear <user> <effect> OR /effect give <user> <effect> <time in seconds> <amplifier> <hide particles>
hide particles is optional with it being false by default
Examples: /effect clear : clears all effects of the person who ran the command
/effect clear geosivridis : clears all effects of the player geosivridis
/effect clear geosivridis speed : only clears the speed effect from the player geosivridis
/effect give geosivridis speed 10 1 : gives speed 1 for 10 seconds to the player
/effect give geosivridis regeneration infinite 3 true : gives regeneration 3 forever to the player while also hiding particles
Same here too, you can target multiple players and entities
Which brings me to the next thing that is somewhat related
Target selectors (part 1)
Very important, they are not exactly commands but any command that targets an entity or player uses target selectors. They include:
@a : All players
@p : Nearest player
@r : Random player
@n : Nearest alive entity
@s : Current entity
@e : All entities
Target selectors also include extra arguments that make them target more specific entities or players, this is why this is split into multiple parts. You can add them by adding square brackets [] after the selector
Some arguments include distance=, type=, scores=, tag= and more but for now we only focus on type=.
type= is only used in @e, it targets specific entities
So for example: /kill is a command that kills entities
If you type /kill @e : it will be chaos because it will kill every single entity and player
But if you type /kill @e[type=chicken] : it will only kill every chicken
You can also use type= and other argument to NOT target something by including a ! in the beginning
So if we had /kill @e[type=!chicken] : this would now kill every entity EXCEPT chickens
You can use type=! multiple times to exclude different mobs, but you can not use type= multiple times, if you have one type= you can not add another type= or type=!
/enchant
Now this is NOT useful since it is way to limited. You can understand that this command enchants your item but it is limited to what you can do in survival, and also fails if you hold the wrong item so I do not recommend it.
Syntax: /enchant <user> <enchantment> <level>
Example: /enchant geosivridis sharpness 5 : enchants your sword with sharpness 5, you can not go over 5 in sharpness as it follows the normal enchantments
If you are lazy and want to enchant your item in a creative world you can use this, but otherwise it is simply more efficient to /give the item instead
7022138
6


Have something to say?