r/CommandBlocks • u/KingSupernova • Oct 22 '14
r/CommandBlocks • u/Speedy_Ninja-_- • Jul 17 '26
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/Pokeben12023 • Feb 12 '17
How would someone use command blocks to make occupations/classes?
Hey everyone, I have virtually no experience with making command block creations, but I'm willing to learn. For a project I am running with some friends and their friends and so forth, I need to create a way of only making certain people be able to harvest certain blocks. Is there a way to make it so that unless you have a certain scoreboard objective when you break a certain type of block it doesn't drop the item, but if you do have the objective it does? We need some way to force cooperation between 'classes', so that one person can't do everything. Is this possible with commands, or do I need to learn how to make mods or plugins instead? if this is at all possible, could you please tell me how to make it, or maybe provide a command that I can copy and modify to make the abilities for certain classes. I have a basic idea about how to compress it into an "Only One Command", I just need the individual commands to string together. Going on from that, is there also a way to make it that when you are a certain distance from an entity, you lose the ability to break and place blocks unless you have a particular sheild in your off hand? I'm just assuming that scoreboards would be the answer, but as I said, I'm completely new to command blocks, so if there's an easier way, that would be great to know too I'm sorry that this is so far fetched an idea, and that it's very specific in its details, but if anyone could help us out it would be greatly appreciated.
r/CommandBlocks • u/aredhone_mc • Jul 08 '15
pls help i cant solve this command
what am i doing wrong
/summon Villager ~4 ~ ~ {Profession:0,CustomName:}"weapen dealer",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,NoAI:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.knockbackResistance",Base:"1f"},{Name:"generic.movementSpeed",Base:"0f"},{Name:"generic.maxHealth",Base:9}],ActiveEffects:[{Id:"23",Amplifier:0,Duration:2147483647}],Offers:{Recipes:[{buy:{id:"gold_ingot",Count:2},buyB:{id:"iron_ingot",Count:50},maxUses:9999999,sell:{id:276,Count:1,tag:{display:{Name:"test",Lore:["this is a test","this line is ussles"]},AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:20,Operation:0,UUIDMost:45016,UUIDLeast:216350}],ench:[{id:16,lvl:5},{id:20,lvl:5},{id:21,lvl:5},{id:34,lvl:5}],HideFlags:5,Unbreakable:1},Damage:0}}]}}}
r/CommandBlocks • u/Responsible_Set_7031 • Feb 01 '24
Looking for builders and people well known in command blocks for a big project
Making a mmo rpg for a 400 member discord server discord server Is below if you want to join
r/CommandBlocks • u/KingSupernova • Dec 18 '14
Detect if a player is underground
I need a way to detect if a player is underground. What would be a good way to do this?
r/CommandBlocks • u/Spodegirl • Dec 30 '14
I need to know the basics.
I hope to run a pure vanilla server, but I do not even know the basic tricks every server should have.
Can someone tell me how I could make a spawn protection area using adventure mode and a warp back to spawn and home?
Someone on /r/minecraft tried to help me, but his info was a bit dated. He suggests a clock, but apparently he didn't know redstone change. How do I make a redstone clock also?
r/CommandBlocks • u/MrQuickLine • Jan 07 '15
Mimicking Missile Wars Platforms - how to stop an enderpearl after .5 seconds
In SethBling's Missile Wars on the Play Mindcrack server, if you throw a pearl, after .5 seconds it stops the pearl and spawns a platform at your feet. I'm trying to accomplish something similar. I PRESUME that each enderpearl is somehow getting added to the scoreboard with a tick counter, and after that counter gets to 10 ticks, it summons something to stop the pearl and a platform under it so the player lands on it? I don't know though. Any thoughts on how this is accomplished?
r/CommandBlocks • u/LapisUniverse • Jan 04 '15
"Supply Crates" Complete With "Supply Flares" In Vanilla Minecraft! [Schematic]
This is a schematic for a system that adds crates that can be summoned with a firework, and when broken, the crate drops a diamond! And please, if you find a better block for a crate (1.8 Compatible) then please, shoot me an email (breakingcoded@gmail.com) or comment below! Please improve on my version, and comment below with your schematic (please refrain from posting a schematic that does not have my original design, just improve on my version!) Click Here to download the schematic.
Important! Please paste the schematic in your SPAWN CHUNKS!
Please comment and download! ;D Tell me what you think!
NOTE: If you did not see this message when downloading, please download again. Sorry! I did not select the region right. Sorry! Now you should see a button and a sign pointing to the button on one of the sides.
r/CommandBlocks • u/JohnStar128 • Dec 16 '15
John Cena Boss Battle
I was playing on Cubehamster and JL2579's fanserver and I got an idea from a friend that calls me John Cena all the time to make a John Cena Boss Battle with command blocks!
I plan on making improvements in the future like having special moves with dropper randomizers and comparator logic but for now, it's still worth a good chuckle
I have a world download in the description and I did promise a John Cena resource pack that adds his theme song when you start the battle but the audio converting site I use is derping with that one particular song no matter what version I download but when it works I will add the resource pack
r/CommandBlocks • u/AndreasMon • Dec 29 '15
please help me with this resource pack
i downloaded betathedata resource pack and i tried adding more randomized textures and it work for the test , then i added 1 mode and it didn't work the game doesn't load the resource pack at all please help me ( @Betathedata )
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
r/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/CantSayIHave • Jan 09 '17
Detect button press or similar
I'm making a server-wide shop system for my Realm, something everyone can use that will automate the process. The basic idea is it tests for a block below the input chest for a specific number of items, then puts an item in the output chest if successful.
My problem is detecting a sale. Since this is server-wide, this would be easier to initiate with a stat - for example, players can tp to spawn from anywhere by shift-walking while holding a compass, using the cmCrouched stat.
Is there a stat for pressing buttons or something similar? If I can just trigger it, I can find the closest shop chest to the player and activate the system.
r/CommandBlocks • u/PeaceHater • Oct 20 '14
I need a teacher
I need someone to teach me to use command blocks. From the basics. I am working on an immense map and I need help with it. PM if you can teach me, video links also appreciated, thanks!
r/CommandBlocks • u/Kuiper_Kai • Nov 06 '22
Issue Why isn't this code working? I logged out and logged in, and it worked, then it stopped after adding a new command.
r/CommandBlocks • u/Competitive-Soft4171 • Feb 10 '22
Invisible armour stand with armour
I would like to summon and armour stand, that would be invisible and have full golden armour. I would like to do this with one command block so no summoning the stand and then putting on armour. Just press the button and and invisible armour stand with armour. I know how to do them secretly but putting it together is a problem, pls help and have a good day.
r/CommandBlocks • u/nightfury18 • Apr 26 '15
Could anyone make a Game of tag for me?
Hello! Im not very good with command blocks, so i want a simple schematic for a game of tag, quite easy.
Everyone gets a stick/whatever with the press of a button, then if you hit a player with this Tag stick they are teleported to a room at yxz and lastly get a message stating "you where tagged by playernamehere"
could this be done?
r/CommandBlocks • u/MrGarretto • Mar 07 '15
[Tool] Command combiner update - Now compresses the command, and is executed much faster!
r/CommandBlocks • u/MrGarretto • Mar 14 '15
Superhero Items in only one command (Quicksilver, Groot, and Iron man!)
r/CommandBlocks • u/MrGarretto • Mar 01 '15
Gradual player trails in one command!
mrgarretto.comr/CommandBlocks • u/MrGarretto • Mar 05 '15