Tutorials
I apologize for the mess. But this is the lite version of the site. Here you can.
What is the difference between Null and Void: Void is dangerous in contrast to Null
A selector that looks for a diamond in the player's inventory 🅱️
@p[hasitem={item=Diamond,quantity=62..,location=slot.hotbar}]
@p[hasitem={item=Diamond,quantity=62..,location=slot.weapon.mainhand}]
Dunamic Light 1.20
execute at @a run fill ~-5~-5~-5~5~5~5 air replace light_block["block_light_level":5]
Delay: 5
execute at @a[hasitem={item=torch,location=slot.weapon.mainhand}] run fill ~~~~~~ light_block["block_light_level":5] replace air
Delay: 0
Moneys 🅱️
Do you want to create a currency?
1. Create a scoreboard.
/scoreboard objectives add Money dummy Money
/scoreboard objectives setdisplay list Money
All coins in the list of players.
2. Adding coins.
/scoreboard players add @s Money 1
3. Command block. Shop.
A selector parameter that searches for a player with coins of 5 or more: @p[scores={Money=5..}]
4. How to take away 5 coins from a player.
/scoreboard players add @s Money -5
More teams: https://mcmysticwiki.simdif.com/
Using Diamonds as a Currency in Minecraft
Create any command (e.g. /give) to buy. Selector parameter:
@p[hasitem={item=Diamond,quantity=2..,location=slot.hotbar}]
Subtract 2 diamonds if there are more than 1:
/clear @p[hasitem={item=Diamond,quantity=2..,location=slot.hotbar}] Diamond 0 2
Output message 🅱️
/titleraw @a actionbar {"rawtext":[{"text":"line 1 \n"},{"text":"line 2 (with value) "}],["score":{"objective":"scoreboard name","name":"scoreboard name"}}]}
Search for an item in the player's inventory 🅱️
Java Edition:
execute as @a[nbt={SelectedItem:{id:"minecraft:emerald"}}] at @s run effect give @s minecraft:levitation 1 1 true
Item locking 🅱️
/give SUBJECT QUANTITY 0 {"item_lock":{"mode":"lock_in_inventory"}}
/give SUBJECT QUANTITY 0 {"item_lock":{"mode":"lock_in_slot"}}
Servers:
Server Java Edition
mcfunny.su
mc.playmine.ru
Mnarokoyt6667bvr.aternos.me
51679
TEXHO.aternos.me
_____________________________________
_____________________________________
Effects, Items effects 🅱️
effect @p[hasitem={item=stick,location=slot.weapon.mainhand}] regeneration 1 1 true
execute as @a[nbt={SelectedItem:{tag:{Tags:["tested"]}}}] at @s run effect give @s minecraft:regeneration 1 1 true
/give @s minecraft:stick{Tags:["tested"]}
Message by command 🅱️
/titleraw @a {"rawtext":[{"text":"Приготовьтесь!"}]}
/titleraw @a actionbar {"rawtext":[{"text":"here is the text"},{"score":["objective":"bat","name":"bat"}}]}
/tellraw @a {"rawtext":[{"text":" messenge"}]}
Item breaks some blocks 🅱️
/give @p stick 1 0 {"minecraft:can_destroy":{"blocks":["dirt","grass"]}}
Sounds 🅱️
playsound music_disc.pigstep master @p[r=12]
Execute
Java Edition
/execute at #player run #command
Bedrock Edition
/execute #player ~~~ #command
Coordination
Instead of ~, you can use ^.
No spam
/gamerule commandblockout false
/gamerule sendcommandfeedback false
TP
/tp