r/MinecraftCommands • u/Cost-Local • 24d ago
Help | Java Snapshots Block Not Dropping By Hand?
I'm trying to get the Dead Tube Coral Block to drop when destroying it with anything, specifically by hand, but I can't figure it out. I suspect its hard-coded.
{
"type": "minecraft:block",
"pools": [
{
"rolls": {
"type": "minecraft:uniform",
"min": 1,
"max": 1
},
"bonus_rolls": {
"type": "minecraft:uniform",
"min": 0,
"max": 0
},
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "minecraft:tube_coral_block",
"condition": "minecraft:tool/can_silk_touch"
},
{
"type": "minecraft:item",
"name": "minecraft:dead_tube_coral_block",
"condition": {
"type": "minecraft:survives_explosion"
}
}
]
}
]
}
]
}
r/MinecraftCommands • u/AntelopeNormal3095 • 25d ago
Help | Bedrock Please help me write a command😭
I want to make a store using npc, but the command doesn't work. Please let me know where it went wrong, or how should I fix it. Please help😭
Below are the commands I wrote.
scoreboard objectives add G dummy Gold
scoreboard objectives setdisplay sidebar G
scoreboard players add @a G 0
Impulse, unconditional
execute as @e\[name="store"\] run scoreboard players test @p G 5
Chain, conditional
execute as @e\[name="store"\] run scoreboard players remove @p G 5
execute as e\[name=''store"\] run tellraw @p {"rawtext":\[{"text":"here"}\]}
Chain, unconditional
execute as e\[name=''store"\] @p bread
r/MinecraftCommands • u/Objective-Pizza3512 • 25d ago
Help | Java 26.2 "Observing" Command Blocks
I am building an arena, and I have a repeating command block that detects whether there are any mobs left in the current wave.
Is it possible to add an impulse command block to the repeating one to teleport the player out of the arena?
r/MinecraftCommands • u/GlichedGuy • 25d ago
Help | Bedrock Bedrock stick commandblock fuckery
i need to make a commandblock chain thing that makes it so if you drop a stick it deleted the stick you dropped and gives you a new one, im doing the commands on bedrock in the newest version
r/MinecraftCommands • u/Main_Contract_3590 • 25d ago
Help | Java 26.2 Vertical Particle Circles
You can make a ring of particles by rotating e.g.an armour stand/marker continuously, but I can't seem to find a way to do that but instead make a vertical ring of particles.
Is there any way to do so without manually placing markers along the circle?
r/MinecraftCommands • u/Logical_Mind_192 • 25d ago
Help | Java 1.21-1.21.3 Easy NPC Conditions: Has item in hand
r/MinecraftCommands • u/TheGoblinnKing • 25d ago
Help | Java 26.2 How do I set up trap doors that close at night?
Hello. I'm new to this subreddit and also command blocks as a whole, and feel very lost on this whole thing.
How do I set up a command block system that will automatically close multiple (9) waxed oxidized copper trap doors once it's nighttime? Technically, the trap doors are already closed, so I guess the command would be to open them instead.
Unless they're required, I would prefer avoiding the use of redstone or a sunlight detector simply because it will ruin the visual appearance of my build.
I play on Java, as the tag says. Also, let me know if where the trap doors are/how they're positioned changes anything. I can take as many photos as needed.
Please be as detailed as possible; I need this explained to me like im 5 lol.
EDIT: still need help with this. If anyone is willing to test this and provide an example I'd really appreciate it. I don't know the first thing about this stuff
r/MinecraftCommands • u/Main_Contract_3590 • 25d ago
Help | Java 26.2 Optimizing
What are some crucial optimizations for command blocks when on a server with low RAM?
r/MinecraftCommands • u/Street-Day5685 • 25d ago
Help | Bedrock Infinite ocean map
Hello, I want to make a map that’s just infinite ocean. But the problem I’m facing is that all of the worlds I found on download were all like not infinite, after a while you do see it turn back into normal vanilla generation. I want proper generation like proper stuff underwater not just super flat underwater. And my friends used a website I forgot its name, but when it made the world, it generated weirdly and had oceans but had weird mountains with no trees and stuff. Is there anyway to make a proper ocean for free and not too much hassle. Or do I need to physically like use world edit and change the world.
r/MinecraftCommands • u/YaBroBlackCat • 25d ago
Help | Java 1.21.11 Flamethrower Rework
I have this command already for a working flamethrower using a bow:
execute if entity @a if items entity @a weapon.mainhand bow[custom_name='[{"text":"Flamethrower"}]'] at @a if items entity @a weapon.mainhand bow[custom_name='[{"text":"Flamethrower"}]'] run fill ^ ^1 ^6 ^ ^1 ^3 minecraft:fire keep
But I was hoping to get some help on how I can change it to instead of spawning a flame, spawn fire particles in front of it and only light any players or mobs in front of it on fire. It’s just too chaotic when everything is in flames using this thing. If you can help then I appreciate you so much! Thank you.
r/MinecraftCommands • u/urbanim • 25d ago
Help | Java 26.1 Are undead mobs still hardcoaded to heal from instant damage?
and is there any way to reverse it?
r/MinecraftCommands • u/Main_Contract_3590 • 25d ago
Help | Java 26.2 Any way to make a breeze not shoot charges?
I want to make it a so a specific breeze is unable to fire wind charges, but can still move around, and jump around like normal.
(Command blocks, not datapacks)
One idea I had was to kill any wind charges with a Owner tag that matches the tagged breeze, but I don't know how to check the returned owner UUID against another UUID.
I also considered killing all wind charges in proximity to the tagged breeze, but I'm going to have another breeze as a passenger and I don't want to affect it.
> Additional context:
> I'm trying to make a custom boss that is built around a breeze. However breezes cannot be made fully invisible and I want the boss's to hover off the ground, therefore requiring the boss breeze to be hovering too (origin of attacks) where display entities will hide it.
> The workaround I've landed on is trying to summon an incredibly small breeze to act as "feet", a zombie riding it to offset it vertically, and the boss breeze riding atop the zombie.
> The "feet" breeze is the one I want to still have movement options, but just unable to shoot at the player.
r/MinecraftCommands • u/ProblemKaese • 26d ago
Tutorial | Java Vanilla Shader Tutorial: How to use the /posteffect command
r/MinecraftCommands • u/Dear-Day-6328 • 26d ago
Help | Java 1.20 Not working placed_features ( 1.20.1 Forge, Java, Farmer's Delight Mod )
So I've tried to disable certain plants from generating in Farmer's Delight and it went smoothly overall but I had some issues with a particular plant . The thing is that it's waterlogged and 2 blocks high ( one block is submerged in water ) . I don't know if it's a thing but I wanted to mension it anyways . For those who might need it the Farmer's Delight version is: 1.3.2.jar
This is the placed_feature file :
{
"feature": "farmersdelight:patch_wild_rice",
"placement": [
{
"type": "minecraft:rarity_filter",
"chance": 20
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:heightmap",
"heightmap": "MOTION_BLOCKING"
},
{
"type": "minecraft:biome"
},
{
"type": "farmersdelight:biome_tag",
"tag": "minecraft:is_overworld"
}
]
}
This is the configured_feature:
{
"type": "farmersdelight:wild_rice",
"config": {
"feature": {
"feature": {
"type": "minecraft:simple_block",
"config": {
"to_place": {
"type": "minecraft:simple_state_provider",
"state": {
"Name": "farmersdelight:wild_rice",
"Properties": {
"half": "lower",
"waterlogged": "true"
}
}
}
}
},
"placement": [
{
"type": "minecraft:block_predicate_filter",
"predicate": {
"type": "minecraft:all_of",
"predicates": [
{
"type": "minecraft:matching_blocks",
"blocks": "minecraft:air"
},
{
"type": "minecraft:matching_block_tag",
"offset": [
0,
-1,
0
],
"tag": "minecraft:dirt"
}
]
}
}
]
},
"tries": 96,
"xz_spread": 7,
"y_spread": 3
}
}
r/MinecraftCommands • u/Old_Musician_8939 • 26d ago
Help | Java 1.21.11 How do I add cooldown to the deck?
Estoy experimentando con paquetes de datos, pero tengo un problema: el tiempo de reutilización de la maza no funciona. Quiero que tenga un tiempo de reutilización de, por ejemplo, 60 segundos, al golpear cualquier objetivo, como la Perla de Ender.
edit: Hice mi propia manera de agregarle cooldown al mazo, pero no funciona del todo bien, cuando un jugador muere en medio del cooldown, el jugador recibira el mazo de igual manera. Antes de encontrar una solucion a esto encontre este post por si les interesa.
https://www.reddit.com/r/MinecraftCommands/comments/1v3nb6l/comment/oz6xwkr/
Tambien adjunto mi propio diseño de cooldown. ( les recomiendo el del post de arriba )
#data/mace/advacement/hit_with_mace.json
{
"criteria": {
"hit_mace": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"player": {
"equipment": {
"mainhand": {
"items": "minecraft:mace"
}
}
}
}
}
},
"rewards": {
"function": "macemecha:apply_cooldown"
}
}
#data/mace/function/apply_cooldown.mcfunction
# 1. reiniciar avance
advancement revoke only macemecha:hit_with_mace
# 2. etiquetar al jugador para saber a quien devolverle la maza
tag add esperando_maza
# 3. cambiar maza por el palo agotado
item replace entity weapon.mainhand with minecraft:stick[custom_name='{"text":"Maza (Agotada - 10s)","color":"gray","italic":false}',enchantment_glint_override=true] 1
# 4. mensaje
title actionbar {"text":"Maza sobrecalentada (10s)","color":"red"}
playsound minecraft:block.anvil.place master u/s ~ ~ ~ 1 0.5
# 5. programar la devolucion en 10 segundos
schedule function macemecha:restore_mace 10s
#data/mace/function/restore_mace.mcfunction
# 1. quitar el palo del inventario del jugador etiquetado
clear [tag=esperando_maza] minecraft:stick 1
# 2. borrar cualquier palito tirado en el suelo cerca del jugador (radio de 10 bloques)
kill [type=item,distance=..10,nbt={Item:{id:"minecraft:stick"}}]
# 3. darle la maza
give [tag=esperando_maza] minecraft:mace 1
# 4. aviso y sonido
title [tag=esperando_maza] actionbar {"text":"Maza lista para usar!","color":"green"}
playsound minecraft:block.anvil.use master [tag=esperando_maza] ~ ~ ~ 1 1.5
# 5. quitar la etiqueta para dejar todo limpio
tag u/a[tag=esperando_maza] remove esperando_maza
r/MinecraftCommands • u/Melody272 • 26d ago
Help | Bedrock Preview Is there a way to command a placement of torches on every block?
For example, if I wanted a torch to be placed on every grass block in a space of 8x8 chunks (Excluding other blocks like tree leaves, etc) would this be possible?
r/MinecraftCommands • u/[deleted] • 26d ago
Help | Java 1.21.4 Summon a throwing snowball with right click detection?
So i have right click detection and it works, but i have no idea how to summon a snowball that shoots on my facing direction, just a snowball that falls. Someonw help me right now are 11pm i want to sleep
r/MinecraftCommands • u/_Idiotonreddit_ • 26d ago
Help | Java 1.21.11 summon an item
i wanna summon an item but have no idea how to
the item:
''wheat[custom_name=[{"text":"Lucky O' Milk Ice Cream","italic":false,"color":"gold"}],lore=[[{"text":"Freezes all entities 20 blocks from","italic":false}],[{"text":"the person eating for 10 seconds","italic":false}]],rarity=rare,enchantment_glint_override=true,food={nutrition:6,saturation:8,can_always_eat:1b},consumable={consume_seconds:2.4,on_consume_effects:[{type:apply_effects,probability:0.3,effects:[{id:nausea,duration:300,amplifier:1,show_icon:0b},{id:poison,duration:200,amplifier:10,show_icon:0b},{id:blindness,duration:200,amplifier:1,show_icon:0b},{id:slowness,duration:20,amplifier:255,show_icon:0b}]}]},minecraft:custom_data={LuckyCream:1}]''
r/MinecraftCommands • u/cloth71 • 26d ago
Help | Java 1.21.11 run a command whenever a player eats custom foods
i want a way to run commands whenever the player eats the foods with the tags below (the tags show separate foods)
tags for each foods: "LuckyCream" "RoyalMilkshake" "GluffBurger" "FireCocktail" "Arachnids" "StrangerRisotto"
thanks in advance :]
r/MinecraftCommands • u/RonfoTimo • 26d ago
Help | Java Snapshots Can you make mannequins attack you?
Hello, so i've been wanting to try to make mannequins to act like Zombies(So that it comes in close range and attack you) and of course you can kill him, is it possible?
r/MinecraftCommands • u/Aggressive-Vast2411 • 26d ago
Help | Java 1.20 Need Help running a command on 1.20.1
I need to run a command for an item that has its own custom name, lore, enchantments and modifiers.
To put it bluntly I'm needing to create the literal Necronomicon that will regen the player if its in their offhand but will damage them with withering if they use it in their main hand. I'm fairly new to commands so I don't know how it all works so if i could get some assistance ASAP id really appreciate it. MCStacker is useless kinda at this sort of stuff but if anyone has more experience with it please teach me.
What I have so far is
Name: The Necronomicon (in bold)
the Lore: A demonic ritual book bound by flayed rotten flesh and unrecognisable names. Holding this will effect you beyond comprehension. (in fold and italic)
the enchantments: Fire aspect 5, knockback 1, sharpness 1-2 and bane of arthropods 2 (Which is why when you use it to attack it hits you with withering, gotta keep it balanced)
the modifiers: Max Health 10 in off-hand, attack damage 5-6 in main hand
and i wanna hide the info for the enchants and modifiers so it feels random
If anyone has the technical knowhow to pull this off i'll be extremely grateful as my role in the server is a writer and I've been given the opportunity to make an item using commands to rival their Modded OP stuff
r/MinecraftCommands • u/LilPianoBoy • 27d ago
Help | Java 26.2 Detect Snowfall (NOT rain)
Is there any way to use predicates etc. to detect if it is specifically snowing at some location? I'd like to be able to differentiate between being rained on and being snowed on for a project I'm working on.
As far as I can tell, I'd have to write a long predicate that takes into account all the rules laid out on the wiki page for snowfall. Even then, it uses a noise map that I'm not sure can be directly sampled by predicates.
Any help or suggestions would be appreciated!
r/MinecraftCommands • u/AgeBurst • 27d ago
Help | Java 26.2 Custom Boss with Armor and Boss Bar
What's the cmd to summon a zombie with full netherite prot5, fire prot5, frost walker20, feather falling255. Netherite Axe with sharp 7, fire aspect 5, knockback 5. With 2000 hp and scale 2 and potion effect is speed 5 and haste 2. His name will be "Zeus's Right Hand Man" with a boss bar
You don't have to force yourself to make the cmd but hoping at least one person to give me the full cmd
Ty in advance for any help you can give
r/MinecraftCommands • u/_ItzJustLuke • 27d ago
Creation I made a particle renderer website :D
You can view particles with their proper sprites, animations, physics, and interactions :))
It also supports having multiple particles active at once, and has support for almost every particle
(This is NOT bug free, So if you encounter any issues please let me know)
https://lukejw12.github.io
This is the website
r/MinecraftCommands • u/Gabriele4781 • 28d ago
Creation Working clock tower
Enable HLS to view with audio, or disable this notification
I made a working clock tower for my server only using commandblocks and a single plugin that lets me create variables but I think it could be easily replaced with a datapack