r/MinecraftCommands

One of the rooms for my multiplayer game (asymmetrical) and one of the tasks you have to do as a crew member (survivor)

If you are confused on how i know the right option to click, right ones are a bit darker green. It was bright red before i thought it lacked challenge :d

u/GloxoST — 19 hours ago

HELP, im trying to make a custom raid boss arena with a boss and everything, no mods or anything.

so im running 2 different command blocks to make it so players who get within a certian radius of the arena, go into adventure mode, so they cant place or break blocks, but can still fight the raid boss (which is made with js command blocks. when i finished this project, it was working JUST FINE, and i decided to spread the same 2 command blocks around a bit to specific areas yknow? so the areas couldnt be griefed. but today, a player joined the realm, and suddenly the command block to put players into adventure mode doesnt work. the realm can hold 20 people and only 8 have joined. i dont know why its not working. ive tried 30 different commands to figure out why this isnt working, i even made seperate command blocks to target that specific player, it worked for a single moment, and then stopped working. i dont know whats going on. i here are the commands im running to put players into survival and adventure mode.
/gamemode adventure @ a[name=!Chaotic_God,distance=..100]
/gamemode survival @ a[name=!Chaotic_God,distance=101..]

reddit.com
u/Afraid-Shop-5699 — 22 hours ago

I made a two block tall one command creation cause why not

I was bored

The command is

summon falling_block ~ ~0.5 ~ {BlockState:{Name:command_block},TileEntityData:{auto:1,Command:"setblock ~ ~ ~ activator_rail[powered=true] strict"},DropItem:0,Passengers:[{id:command_block_minecart,Command:"say Success"},{id:command_block_minecart,Command:"setblock ~ ~-1 ~ repeating_command_block{auto:1,Command:\"fill ~ ~ ~ ~ ~1 ~ air\"} strict"},{id:command_block_minecart,Command:"kill @e[type=command_block_minecart,dx=0]"}]}
u/GG1312 — 1 day ago

I know how to make entities have custom drops by putting things in their armor slots, but how can I make it drop it even if it's not a player that kills it?

I noticed that when I give mobs custom drops through armor slots, these things only drop if they are explicitly killed by a player: making it so if, say, a player uses a projectile summoning spell to kill it instead, it's not considered a kill, and it doesn't drop the thing.

How can I make it so that it actually drops the item no matter how it dies?

reddit.com
u/StrangeSystem0 — 22 hours ago

Reset the player's velocity

I'm trying to make a double jump enchantment with the
"apply_impulse" used for lunge, but that doesnt overwrite velocity so if you fall it doesnt work.
any ideas on how I could solve this?

Eyes shutting?

I want to make a story based game where the main character will pass out at some point. I have an idea of eyes shutting like you would see in movies and was wondering if anybody has any idea how to make something like that. I tested both darkness and blindness and neither give the right vibe. Failing eyes shutting i would gratefully appreciate other ideas to substitute this.

EDIT: thank you for the suggestions but i found part of the camera command that fades the screen out to black

reddit.com
u/Ok-Clock-9288 — 1 day ago

enchantment check for score/advancement/literally anything that could help me

i've been desperately trying to make an enchantment only work if you have a specific advancement, it doesnt HAVE to be an advancement, but i gotta be able to set it after you get that advancement

the goal is making it so players who havent reached a certain point of progression, cant use this enchant

the .json i currently have is this:

{
"exclusive_set": [
"minecraft:infinity"
],
"anvil_cost": 1,
"description": {
"text": "Enchantment"
},
"effects": {
"minecraft:ammo_use": [
{
"effect": {
"type": "minecraft:set",
"value": 0
},
"requirements": {
"condition": "minecraft:all_of",
"terms": [
{
"condition": "minecraft:entity_scores",
"entity": "direct_attacker",
"scores": {
"journey": 1
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:arrow",
"minecraft:spectral_arrow",
"minecraft:tipped_arrow"
]
}
},
{
"condition": "minecraft:random_chance",
"chance": {
"type": "minecraft:enchantment_level",
"amount": {
"type": "minecraft:lookup",
"values": [
0.2,
0.25,
0.33
],
"fallback": {
"type": "minecraft:linear",
"base": 0.25,
"per_level_above_first": 0.05
}
}
}
}
]
}
}
]
},
"max_cost": {
"base": 50,
"per_level_above_first": 0
},
"max_level": 3,
"min_cost": {
"base": 20,
"per_level_above_first": 0
},
"slots": [
"mainhand"
],
"supported_items": [
"minecraft:bow",
"minecraft:crossbow"
],
"weight": 1
}
reddit.com
u/ICADreamer — 1 day ago

New to generating structures with datapacks: Why is my guy one block below the terrain?

I've been looking at the wiki code, trying to understand the parameters and how can I change it but no result is ideal. Right now my solution was to turn off terrain adaptation and raise the guy one more block but I would love for my guy to not clip through the terrain adaptation.

Is there something I did wrong? Maybe the structure itself? I saved it through a structure block..

u/Afar3D — 1 day ago

Sound effect while jumping, but able to be turned on/off

So, as for the sound effect itself, I'm pretty sure I can just custom-import it into the game with mods

The issue is playing it. I want to make it so that when I get teleported into an area, every time I jump, it plays a specific sound effect.

I want it to play the sound effect when activated for these rooms, but then turned off once the player has left.

I could technically change the jump sound effect with a texture pack, but then it would play everywhere when the player jumps, and I just wanted to know if it'd be possible with command blocks, so I wouldn't have to do that.

I'm just someone with not much command experience, so any suggestions or help is appreciated!

reddit.com
u/Jrstepos07 — 1 day ago

Summoning Mobs from command blocks onto specific players with tags

Basically for a PvP Kit idea, there is a Kit that summons a Zombie, Creeper, Spider and Skeleton around every Enemy every 45 seconds (900 Ticks). However, I want the Mobs to "surround" the Enemies like 1 in front, 1 behind, 1 to the left and 1 to the right

My issue is I am not sure this is even possible but if it is, I do not know how to do it. If you know a way or workaround please say

reddit.com
u/AnonymousGamerLime — 1 day ago

Can I allow players to sleep during the day without overwriting the overworld dimension type?

& If it’s not possible… can I fake it using trickery to make players be visually lying down? Don’t mind if it’s finicky, I just want this datapack to not be flagged as experimental.

reddit.com
u/jahnotreal — 1 day ago

help a newbie out.

i generated this world with chunky (terratonic). I kid you not when i say this is my first time trying to dip my heels into server stuff, usually thats done by my other friend. What i want to know is if there is any command/set of commands which allows everyone to have a single elytra (perhaps with unbreaking) and a single firework at all times in their inventory. This ss is from yesterday, ive generated 2048x2048 chunks by now and traversing is pretty much impossible without elytra. Backstory: We are all going off to diff unis/colleges this year I want this to be like a long term server with my friends where we can log in and hang out even if we dont get to meet irl. Any help would be much appropriated. Sorry in advance if this is a silly question (for me it isnt!)

u/Pitiful-Release-2776 — 2 days ago
▲ 1 r/MinecraftCommands+1 crossposts

Bau Hilfe Bei einem Riesen Projekt (Höhlen Bauen ohne mods aber Commands)

Ger: Ich Baue im Moment die gesamte Poppy Playtime Map von chapter 1 bis 6, 6 ist nur noch ned draussen. Im Moment bin ich bei Kapitel 3 und baue an der Playcare, ich suche mindestens 1 maximal 4 die mir Helfen diese Höhle zu bauen mit comands oder ohne comands die diese Playcare mit der Karte Verbindet. Ich werde wenn ihr Interessiert seid mir zu helfen frog sein wenn ihr direkt in die komis euren insta Namen schreibt oder einfach schreibt ob ihr interessiert seid oder nicht. Ich währe froh, dass wenn jemand interessiert ist, sich bei mir meldet, danke euch

Eng: I'm currently building the entire Poppy Playtime map from chapters 1 to 6; chapter 6 isn't out yet. I'm currently on chapter 3 and working on the Playcare area. I'm looking for at least one, but no more than four people to help me build this cave, with or without commands, that connects the Playcare area to the map. If you're interested in helping me, I'd appreciate it if you could write your Instagram name in the comments or simply let me know if you're interested. I'd be happy if anyone interested would contact me. Thank you!

reddit.com
u/Religionhk — 3 days ago

Need help with making a system to pick values out of a pool

My problem might seem weird but I'll try to explain it as best as I can
To sum it up, I want a function that will roll 3 values between 1 and 8, but I absolutely need them to be mutually exclusive, meaning I don't want any repeating numbers.
This system should also be scalable (meaning that I can roll 7 numbers from my pool of 8 possible values and it should still work with no duplicates)

I have managed to make it work for 2 values with a not very clean solution, however it is not scalable at all and is causing me issues to make it work with 3 values picked.

If anyone have an idea or could explain me how to make this cleanly (and if possible, without any recursions), I would be very grateful!

Here is my current code so far:

# Random rolls (for effect count and type)
execute store result score #hoshi.exodeath.spider_effect_count hoshi.random run random value 2..3


execute store result score #hoshi.exodeath.spider_effect_1 hoshi.random run random value 1..8
execute store result score #hoshi.exodeath.spider_effect_2 hoshi.random run random value 1..7
execute if score #hoshi.exodeath.spider_effect_count hoshi.random matches 3.. store result score #hoshi.exodeath.spider_effect_3 hoshi.random run random value 1..6


execute if score #hoshi.exodeath.spider_effect_2 hoshi.random >= #hoshi.exodeath.spider_effect_1 hoshi.random run scoreboard players add #hoshi.exodeath.spider_effect_2 hoshi.random 1
reddit.com
u/Healthy_Assistance60 — 2 days ago

How can I add words to a zombie's name?

I want to make a function that randomises a chance for a zombie to get a custom name and ability, similar to **Risk Of Rain 2 Elite Enemies**.

I've tried this sign method but to no avail. Help, please?

reddit.com
u/Plasmatic1698_again — 2 days ago

I figured out how to make homing boat projectiles

I made the boat teleport down 300 blocks since its hidden 300 blocks above, and while its down It faces the nearest zombie and then tps back up 300 blocks. I used a timer made from scoreboards so that it has a homing rate.

Im surprised that seemingly no one has thought this, unless its actually not efficient and theres a better way to do this...

u/Adium-A — 2 days ago

Why are block displays always too dark compared to surrounding blocks no matter what sky brightness and block brightness are set to? This drives me crazy and I don't hear about this anywhere

u/HardAlmond — 4 days ago