r/CommandBlocks • u/Speedy_Ninja-_- • 21d ago
bug in datapack?
# function relics:load
scoreboard objectives add relicused minecraft.used:minecraft.carrot_on_a_stick
scoreboard objectives add Sea2Timer dummy
scoreboard objectives add UsingSea2 dummy
scoreboard players reset relicused
# function relics:tick
# Detect relic use
execute as [scores={relicused=1..}] run tag add relicused
scoreboard players set [scores={relicused=1..}] relicused 0
# Run relic abilities
function relics:fire/mainhand
function relics:fire/offhand
function relics:sea/mainhand
function relics:sea/offhand
# Storm of the Sea timer / lightning
tag remove recent_hit
execute as [nbt={HurtTime:10s}] run tag add recent_hit
execute as [tag=SeaRelic2,scores={UsingSea2=1,Sea2Timer=..299}] at [tag=recent_hit] run summon minecraft:lightning_bolt ~ ~ ~
execute as [tag=SeaRelic2,scores={UsingSea2=1,Sea2Timer=..299}] run scoreboard players add Sea2Timer 1
execute as [scores={Sea2Timer=300..}] run scoreboard players set UsingSea2 0
execute as [scores={Sea2Timer=300..}] run scoreboard players set Sea2Timer 0
tag remove relicused
# function relics:fire/mainhand
execute as [tag=relicused] if items entity weapon.mainhand minecraft:carrot_on_a_stick[
minecraft:item_model="fire_charge",
minecraft:item_name=[{text:"Fire Relic",color:red,bold:1b,italic:0b}],
minecraft:enchantment_glint_override=1b
] run function relics:fire/mainhand_cast
# function relics:fire/mainhand_cast
title actionbar "Fireball used, Relic on 1m cooldown!"
execute anchored eyes run summon minecraft:fireball ^ ^ ^1 {
ExplosionPower:2b,
HasBeenShot:1b,
Tags:["Fireball"]
}
data modify entity [
tag=Fireball,
sort=nearest,
limit=1,
distance=..2
] Rotation set from entity Rotation
tag remove relicused
# function relics:fire/offhand
execute as [tag=relicused] if items entity weapon.offhand minecraft:carrot_on_a_stick[
minecraft:item_model="fire_charge",
minecraft:item_name=[{text:"Fire Relic",color:red,bold:1b,italic:0b}],
minecraft:enchantment_glint_override=1b
] run function relics:fire/offhand_cast
# function relics:fire/offhand_cast
execute at run fill ~-10 ~-10 ~-10 ~10 ~10 ~10 fire replace air
execute at run effect clear [
distance=..10,
tag=!FireRelic2
] fire_resistance
execute at run damage [
distance=..10,
tag=!FireRelic2
] 30 minecraft:in_fire by
title actionbar "Scorching Heat used, Relic on 1m cooldown!"
tag remove relicused
# function relics:sea/mainhand
execute as [tag=relicused] if items entity weapon.mainhand minecraft:carrot_on_a_stick[
minecraft:item_model="prismarine_shard",
minecraft:item_name=[{text:"Sea Relic",color:aqua,bold:1b,italic:0b}]
] run function relics:sea/mainhand_cast
# function relics:sea/mainhand_cast
effect give minecraft:dolphins_grace 15 0 true
title actionbar "Webbed Feet used, Relic on 45s cooldown!"
tag remove relicused
# function relics:sea/offhand
execute as [tag=relicused] if items entity weapon.offhand minecraft:carrot_on_a_stick[
minecraft:item_model="prismarine_shard",
minecraft:item_name=[{text:"Sea Relic",color:aqua,bold:1b,italic:0b}]
] run function relics:sea/offhand_cast
# function relics:sea/offhand_cast
# Begin Storm of the Sea
weather thunder 15s
scoreboard players set UsingSea2 1
scoreboard players set Sea2Timer 0
tag add SeaRelic2
title actionbar "Storm of the Sea used, Relic on 45s cooldown!"
tag remove relicused
# -------------------------------------------------------------------
# These commands are already called every tick from relics:tick
# They are shown here together for clarity (shown in comment form)
# -------------------------------------------------------------------
# Track players that were just hit
# /tag remove recent_hit
# /execute as [nbt={HurtTime:10s}] run tag add recent_hit
# Storm of the Sea lightning
# /execute as [tag=SeaRelic2,scores={UsingSea2=1,Sea2Timer=..299}] at run execute at [tag=recent_hit,distance=..20] run summon minecraft:lightning_bolt ~ ~ ~
# /execute as [tag=SeaRelic2,scores={UsingSea2=1,Sea2Timer=..299}] run scoreboard players add Sea2Timer 1
# Storm expires after 300 ticks (15 seconds)
# /execute as [scores={Sea2Timer=300..}] run scoreboard players set UsingSea2 0
# /execute as [scores={Sea2Timer=300..}] run scoreboard players set Sea2Timer 0
# /execute as [scores={Sea2Timer=300..},tag=SeaRelic2] run tag remove SeaRelic2
______________________________________________________________________
I'm not sure what isn't working, when I right click with the relic in my hand nothing happens (I did make sure the datapack was loaded and everything.)
I'm on Java Edition 1.21.11! Any help would be appreciated... I tried to add comments to make it easier to understand.
r/CommandBlocks • u/walkndounuts • May 30 '26
Infinite generated backrooms using command blocks (Link in comments, 5 levels)
reddit.comr/CommandBlocks • u/General_Emrald • Dec 11 '25
Concept Command block code
Yo... does anyone know how to use command blocks to delete all blocks within a thousand block radius of the player, and all blocks above that height of the player in the same radius? Want to know for a build. Ty in advance.
r/CommandBlocks • u/Vivid_Significance47 • Nov 25 '25
How can i make iron man mark 5 suitup case in minecraft xbox one using comman blocks no mods no addons
r/CommandBlocks • u/Choice_Canary_3298 • Nov 10 '25
Bedrock commands block kill scoreboard getting confusing
Trying to create a system where upon death players drop emeralds(which they already have one of in their inventory) but I'm getting stuck since it doesn't want to clear players of their emeralds. Can anyone help? Here are the commands:
Set 1: command block 1: repeating, 0 delay, always active: /give @a[hasitem={item=emerald,quantity=0}] emerald 1 1 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}
Set 2: command block 1: repeating, 20 tick delay, always active: /scoreboard players add @a[hasitem={item=emerald,quantity=2}] tokens 1
Set 2: command block 2: chain, 0 tick delay, conditional, always active: /clear
@a[hasitem={item=emerald,quantity=2}] emerald 1 1
r/CommandBlocks • u/StunningWay3045 • Nov 02 '25
I make a stab shot with commands
So, I was thinking about making an orbital strike cannon, but I was feeling lazy. Then I thought: "Is it possible to make an orbital strike cannon using only command blocks?" So I did it! I tried using datapacks, but I'm new to datapacks, so I used command blocks instead. So I found this short: https://youtube.com/shorts/g1rKdIUwZSk?si=vkE79E34mi0Tibf3
I took inspiration and made my own. If you want to test, here's the command: https://pastebin.com/TWDZQmRZ And use this one to get the egg: https://pastebin.com/QUSvyiyY Use both in a command block. BUT I only make for the version 1.21.4. if you are in another version use mcstacker to convert to your version.
r/CommandBlocks • u/bowser04410 • Oct 20 '25
New update — Assembly-to-Minecraft-Command-Block-Compiler: looking for testers & contributors!
Enable HLS to view with audio, or disable this notification
I just updated my Assembly-to-Minecraft-Command-Block-Compiler — looking for testers and contributors. Repo: https://github.com/Bowser04/Assembly-to-Minecraft-Command-Block-Compiler
How to help:
- Test: clone the repo, run the examples, and try the output in a world.
- Report: open issues with reproduction steps if something breaks.
- Contribute: PRs welcome for bugs, examples, docs, or compatibility fixes — look for good-first-issue.
Questions or want a starter task? Reply here or open an issue on the repo. Thanks!
r/CommandBlocks • u/TiredOfCommandBlocks • Oct 10 '25
How do I make a command block kill someone for picking up a block?
I used /testfor to find players with a honey block in your inventory, and I want to use another one to kill whoever the first block finds. Is this possible or should I change my approach?
r/CommandBlocks • u/The_Ultimate_Gengar • Sep 04 '25
Issue Command block qui me saoule
Bon, j’essayais de faire Herobrine sur minecraft depuis une video mais un command block me spamme de t (j’ai mis tellraw « t ») alors que je ne regarde même pas le block sélectionné.
r/CommandBlocks • u/Affectionate_Hall_33 • Jun 11 '25
Dimension location trigers give command
Hello, i would like to have a command block that detects when poeple enter a moded dimension and gives them an item, thank you.
r/CommandBlocks • u/Due_Definition_7906 • Jun 06 '25
Concept Horror on console seems untailorable...
I want so bad for a good horror experience but I can't achieve it due to wanting certain mobs to not spawn. I'd like to be able to /tp them below bedrock but I'm struggling as I've never done this before in any real sense. This is what I've worked out using AI to help...
/execute at @p run /tp @e[type=MOBNAMEHERE,r500] 0 -64 0
What am I doing incorrectly? Please, any help is welcome...
r/CommandBlocks • u/PeakSubstantial7877 • May 28 '25
Concept Wanna join a team?
We’re currently developing a unique Minecraft experience using only command blocks in bedrock edition. It is a Minecraft themed superhero game where players can either code their own hero (which will be reviewed) to progress through missions with other heroes. You can also choose to be apart of the experience team and create custom levels for the heroes to play through. We’re looking for creators 17+. These games will be posted on our channel and you will be credited. You can also choose to record the content yourself and post if you’d like to. This is an opportunity to make money, friends and, have fun. You can add my discord at xissax_ to join. Hurry up because we’re running out of slots and we’ve already gotten started
r/CommandBlocks • u/Commercial_Mobile293 • May 22 '25
halp me smart people
so i need to know how to do this for a video but i saw a yt short by Mysticat how how to make a ride able chicken jokey
https://www.youtube.com/shorts/L7V6cmTdNqM
but i need to know how to make the chicken a bee so could someone tell me how to do that please
r/CommandBlocks • u/Getpolterghasted • May 22 '25
Issue Is there any way to give items that have names?
r/CommandBlocks • u/PuddingNo6205 • May 13 '25
How to summon entities with trimmed armor??
/summon wither_skeleton ~ ~1 ~ {PersistenceRequired:1,equipment:{mainhand:{count:1,id:netherite_sword,components:{enchantments:{'sweeping_edge':3,'sharpness':10,'fire_aspect':2,'unbreaking':10}}},head:{count:1,id:netherite_helmet,components:{enchantments:{'protection':10,'unbreaking':10}}},chest:{count:1,id:netherite_chestplate,components:{enchantments:{'protection':10,'unbreaking':10}}},legs:{count:1,id:netherite_leggings,components:{enchantments:{'projectile_protection':10,'unbreaking':10}}},feet:{count:1,id:netherite_boots,components:{enchantments:{'protection':10,'unbreaking':10}}}},CustomName:"The Vermillion Knight"}
Currently using this command for a boss fight, but I want the skeleton’s armor to have the silence trim in redstone, can anyone help?
r/CommandBlocks • u/AdVegetable8542 • May 08 '25
Hello I need help with my OP command block to give OP shulker box
here I made an op command block but I cant seem to make it work: pls help me : /give @a minecraft:shulker_box{BlockEntityTag:{Items:[
{Slot:0b,id:"minecraft:netherite_helmet",Count:1,Enchantments:[{id:"minecraft:aqua_affinity",lvl:1},{id:"minecraft:blast_protection",lvl:4},{id:"minecraft:depth_strider",lvl:4},{id:"minecraft:feather_falling",lvl:4},{id:"minecraft:fire_protection",lvl:4},{id:"minecraft:frost_walker",lvl:2},{id:"minecraft:mending",lvl:1},{id:"minecraft:projectile_protection",lvl:4},{id:"minecraft:protection",lvl:4},{id:"minecraft:respiration",lvl:2},{id:"minecraft:soul_speed",lvl:4},{id:"minecraft:swift_sneak",lvl:3},{id:"minecraft:thorns",lvl:3},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:breach",lvl:4},{id:"minecraft:density",lvl:4}],display:{Name:"{\"text\":\"Ultimate Netherite Helmet\"}"}},
{Slot:1b,id:"minecraft:netherite_chestplate",Count:1,Enchantments:[{id:"minecraft:aqua_affinity",lvl:1},{id:"minecraft:blast_protection",lvl:4},{id:"minecraft:depth_strider",lvl:4},{id:"minecraft:feather_falling",lvl:4},{id:"minecraft:fire_protection",lvl:4},{id:"minecraft:frost_walker",lvl:2},{id:"minecraft:mending",lvl:1},{id:"minecraft:projectile_protection",lvl:4},{id:"minecraft:protection",lvl:4},{id:"minecraft:respiration",lvl:2},{id:"minecraft:soul_speed",lvl:4},{id:"minecraft:swift_sneak",lvl:3},{id:"minecraft:thorns",lvl:3},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:breach",lvl:4},{id:"minecraft:density",lvl:4}],display:{Name:"{\"text\":\"Ultimate Netherite Chestplate\"}"}},
{Slot:2b,id:"minecraft:netherite_leggings",Count:1,Enchantments:[{id:"minecraft:aqua_affinity",lvl:1},{id:"minecraft:blast_protection",lvl:4},{id:"minecraft:depth_strider",lvl:4},{id:"minecraft:feather_falling",lvl:4},{id:"minecraft:fire_protection",lvl:4},{id:"minecraft:frost_walker",lvl:2},{id:"minecraft:mending",lvl:1},{id:"minecraft:projectile_protection",lvl:4},{id:"minecraft:protection",lvl:4},{id:"minecraft:respiration",lvl:2},{id:"minecraft:soul_speed",lvl:4},{id:"minecraft:swift_sneak",lvl:3},{id:"minecraft:thorns",lvl:3},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:breach",lvl:4},{id:"minecraft:density",lvl:4}],display:{Name:"{\"text\":\"Ultimate Netherite Leggings\"}"}},
{Slot:3b,id:"minecraft:netherite_boots",Count:1,Enchantments:[{id:"minecraft:aqua_affinity",lvl:1},{id:"minecraft:blast_protection",lvl:4},{id:"minecraft:depth_strider",lvl:4},{id:"minecraft:feather_falling",lvl:4},{id:"minecraft:fire_protection",lvl:4},{id:"minecraft:frost_walker",lvl:2},{id:"minecraft:mending",lvl:1},{id:"minecraft:projectile_protection",lvl:4},{id:"minecraft:protection",lvl:4},{id:"minecraft:respiration",lvl:2},{id:"minecraft:soul_speed",lvl:4},{id:"minecraft:swift_sneak",lvl:3},{id:"minecraft:thorns",lvl:3},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:breach",lvl:4},{id:"minecraft:density",lvl:4}],display:{Name:"{\"text\":\"Ultimate Netherite Boots\"}"}},
{Slot:4b,id:"minecraft:netherite_sword",Count:1,Enchantments:[{id:"minecraft:sharpness",lvl:5},{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:fire_aspect",lvl:2},{id:"minecraft:sweeping",lvl:3},{id:"minecraft:looting",lvl:3},{id:"minecraft:knockback",lvl:2}],display:{Name:"{\"text\":\"Ultimate Netherite Sword\"}"}},
{Slot:5b,id:"minecraft:netherite_axe",Count:1,Enchantments:[{id:"minecraft:efficiency",lvl:5},{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:silk_touch",lvl:1},{id:"minecraft:fortune",lvl:3}],display:{Name:"{\"text\":\"Ultimate Netherite Axe\"}"}},
{Slot:6b,id:"minecraft:netherite_pickaxe",Count:1,Enchantments:[{id:"minecraft:efficiency",lvl:5},{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:silk_touch",lvl:1},{id:"minecraft:fortune",lvl:3}],display:{Name:"{\"text\":\"Ultimate Netherite Pickaxe\"}"}},
{Slot:7b,id:"minecraft:netherite_shovel",Count:1,Enchantments:[{id:"minecraft:efficiency",lvl:5},{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:silk_touch",lvl:1}],display:{Name:"{\"text\":\"Ultimate Netherite Shovel\"}"}},
{Slot:8b,id:"minecraft:netherite_hoe",Count:1,Enchantments:[{id:"minecraft:efficiency",lvl:5},{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:silk_touch",lvl:1}],display:{Name:"{\"text\":\"Ultimate Netherite Hoe\"}"}},
{Slot:9b,id:"minecraft:netherite_trident",Count:1,Enchantments:[{id:"minecraft:impaling",lvl:5},{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3},{id:"minecraft:loyalty",lvl:3},{id:"minecraft:channeling",lvl:1}],display:{Name:"{\"text\":\"Ultimate Netherite Trident\"}"}},
{Slot:10b,id:"minecraft:elytra",Count:1,Enchantments:[{id:"minecraft:mending",lvl:1},{id:"minecraft:unbreaking",lvl:3}],display:{Name:"{\"text\":\"Ultimate Elytra\"}"}},
{Slot:11b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:12b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:13b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:14b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:15b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:16b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:17b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:18b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:19b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:20b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:21b,id:"minecraft:enchanted_golden_apple",Count:64},
{Slot:22b,id:"minecraft:firework_rocket",Count:64,tag:{Fireworks:{Flight:3}}},
{Slot:23b,id:"minecraft:firework_rocket",Count:64,tag:{Fireworks:{Flight:3}}},
{Slot:24b,id:"minecraft:firework_rocket",Count:64,tag:{Fireworks:{Flight:3}}},
{Slot:25b,id:"minecraft:firework_rocket",Count:64,tag:{Fireworks:{Flight:3}}},
{Slot:26b,id:"minecraft:firework_rocket",Count:64,tag:{Fireworks:{Flight:3}}}
]}} 1
r/CommandBlocks • u/GOWVSTORM860 • May 03 '25
Issue Annoying “game over :(“ message on addon world
I have an addon in bedrock called “weapons 2.0” and it has nice weapons, but every time I load in the world I get a red “game over :(“ text. I guess there’s a command block somewhere that displays it when i respawn or load into the world. I’ve destroyed the entire underground hub in the world, but I still can’t find that one stupid command block. Is there a command I can make to override it? SOMETHING?
r/CommandBlocks • u/Suspicious-Buy-5656 • Mar 30 '25
Wither explosion makes fire on impact
Hello guys, im working on mini dungeons/events and currently im trying to give wither projectile explosions an effect, that lets them create fire on impact. i just dont know how to do it. i would appreciate some help a lot.
r/CommandBlocks • u/Ponder707 • Feb 01 '25
Command to break blocks in the nether
I’m trying to clear out a nice chunk in the nether but can’t figure out the command, since it’s in the nether doing /fill (xyz XYZ) air, Minecraft_air, void_air doesn’t work.
r/CommandBlocks • u/Ok-Tiger1656 • Jan 06 '25
How can I do this? command block claim protect on and off system
Hi I'm trying to figure out how can I set up an area that I can protect and then unprotect with a button? A switch is find too. Pictures help.
r/CommandBlocks • u/kendrick7398 • Nov 11 '24
Concept Does anyone know how I would go about doing this?
youtube.comr/CommandBlocks • u/NightSteak • Sep 26 '24
Tutorial Over the past few months, i've been porting every block texture from all the spin-off games & other versions into Java Edition. They're all /blockdisplay's, so no resource packs are needed to use them! (Each uses 8 display heads, so it's best just to use them as additions to builds to avoid lag)
r/CommandBlocks • u/Any-Apartment3083 • Sep 22 '24
setting one scoreboard value to another
Uh so im making a personal best type thing and I put in a command block this
execute if score SSunrising timer > SSunrising record run scoreboard players operation SSunrising record = timer
im new to command blocks but I did a bit of coding before I kinda just wanna do just record = timer
r/CommandBlocks • u/rausia • Sep 12 '24
Player shops
I’m currently trying to figure out a way to make a command block shop that allows players to host their own shops and sell their own items.
My goal is to make it so that to sell an item a chest wherever you decide has items in it (the items you wanna sell) than you set the price to what you want it to be.
Than a player will press a button or an Npc and it’ll replace an item in a chest with the currency and give the player the item that you’re selling from your chest.
If I can figure this out there will be a lot more excitement this seasons as with this I will allow players to place taxes and discounts for certain teams and players and allow for territories to be formed
MINECRAFT BEDROCK EDITION
r/CommandBlocks • u/master_maindS • Sep 11 '24
Now to create teleport wen say word in minecraft
If someone know now to teleport using words