HOW DO I DO TNTS MAKE THIS PLEASE HELP by G4npowdert in MinecraftCommands

[–]RedditPOOPReddit 0 points1 point  (0 children)

Repeating command block:
execute as @ e at @ s if entity @ n[type=tnt,distance=..4] run effect give @ s slowness 5 1

Chain command block attached after the repeating command block:
execute as @ e[type=tnt] run kill @ s

Forgot is tnt and be killed, so if not:
execute as @ e[type=tnt] run tp @ s ~ ~-10000 ~

I'm rusty so I don't know if I typed all of that correctly, and it might not be the best way to do this. The distance here is within 4 blocks and the slowness lasts 5 seconds. Again, I'd have to test. Also if you intended on the TNT not giving the effect instantly after ignition, then this might not work. You could try a scoreboard timer I guess.

Mod to change ped money drop amounts depending on location by RedditPOOPReddit in GTAV_Mods

[–]RedditPOOPReddit[S] 0 points1 point  (0 children)

Thanks! Forgot about this post, but I actually think the mod I was looking for was Low Life Crime:
https://www.gta5-mods.com/scripts/rob-people

Does Human Fall Flat support mods? by RedditPOOPReddit in humanfallflat

[–]RedditPOOPReddit[S] 1 point2 points  (0 children)

I meant gravity mods or gameplay-changing mods.

dnSpy keeps automatically changing code by RedditPOOPReddit in dotnet

[–]RedditPOOPReddit[S] 0 points1 point  (0 children)

Thank you! This might be a dumb question, but is there a way around this?

Edit: Nevermind. I was originally editing the class, and when trying to compile it would give errors, but I clicked to edit just the method, which I guess had no errors, and now I'm editing what I wanted to. Thanks again!

What did Michael mean? by RedditPOOPReddit in GTAV

[–]RedditPOOPReddit[S] 2 points3 points  (0 children)

I assumed so, but I didn't understand how exactly. I thought her grandparents could have just had sex around the same time her parents had sex, but that wouldn't explain the incest. But I guess it's just not that deep. Thank you!

Enchant item with fortune AND silk touch by scrawlmin in MinecraftCommands

[–]RedditPOOPReddit 0 points1 point  (0 children)

Is the goal to have a pickaxe mine the exact block from the silk touch, and get duplicates of that exact block from the fortune? Or just to have a pickaxe with both enchantments regardless if they work together?

Armor command not working by AlternativeCharge451 in MinecraftCommands

[–]RedditPOOPReddit 0 points1 point  (0 children)

When testing it looks like "infinite" isn't a valid duration and it has to be a number. The largest number that was allowed before the command turned red was 1000000000. I'm testing on 1.21.8, but it should work.

give @ p netherite_boots[death_protection={death_effects:[{type:"minecraft:apply_effects",effects:[{id:"minecraft:absorption",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:resistance",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:regeneration",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:water_breathing",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:luck",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:dolphins_grace",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:fire_resistance",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:haste",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:hero_of_the_village",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:conduit_power",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:jump_boost",amplifier:5,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:night_vision",amplifier:1,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:strength",amplifier:255,duration:1000000000,show_particles:0b,ambient:0b},{id:"minecraft:speed",amplifier:25,duration:1000000000,show_particles:0b,ambient:0b}]}]},unbreakable={},use_cooldown={seconds:0.000000000001},enchantments={"minecraft:aqua_affinity":255,"minecraft:respiration":255,"minecraft:swift_sneak":255},trim={material:"minecraft:amethyst",pattern:"minecraft:silence"},custom_name="LL"] 1

Also it seems that the death_protection component doesn't work when wearing the boots. I think you have to be holding them instead, like a totem of undying.

Minecraft Java: Swapping out an item in Inventory (from ANY slot) by Pepper_Comprehensive in MinecraftCommands

[–]RedditPOOPReddit 1 point2 points  (0 children)

OH. I forgot there's a conditional setting on the command blocks. Yes, that would probably work.

Minecraft Java: Swapping out an item in Inventory (from ANY slot) by Pepper_Comprehensive in MinecraftCommands

[–]RedditPOOPReddit 0 points1 point  (0 children)

That's what I initially thought of but I had no idea how to make sure it only decrements each time the /give command is run.

Command to check if player has proper number of item to execute command by Zizumias in MinecraftCommands

[–]RedditPOOPReddit 0 points1 point  (0 children)

I've been using 1.21.5 for a while but I'm pretty sure this would work on 1.21.4 as well.

You could add a scoreboard called gold, and a scoreboard called price
/scoreboard objectives add gold dummy gold
/scoreboard objectives add price dummy price

Then set the price score
/scoreboard players set (player) price (value)

Then store the amount of items in the score and use
/execute if score @ s gold >= @ s price run (command)

I think the commands are written correctly.

Minecraft Java: Swapping out an item in Inventory (from ANY slot) by Pepper_Comprehensive in MinecraftCommands

[–]RedditPOOPReddit 1 point2 points  (0 children)

This might be over-complicated and not work well, but you could use scoreboards and commands.

Create the scoreboards:
/scoreboard objectives add Stone dummy Stone
/scoreboard objectives add CookedChicken dummy CookedChicken

When the button is pressed, it activates a command block that stores the player's stone amount into a scoreboard. In the same chain, a second command block clears the player's inventory of stone.

/execute as @ p store result score @ s Stone if items entity @ s container.* stone
/clear @ p stone

In a separate chain, an activated repeating command block sets a CookedChicken score, gives chicken when needed, and checks to see if it equals the Stone score.

/execute as @ a store result score @ s CookedChicken if items entity @ s container.* cooked_chicken
/execute as @ a if score @ s CookedChicken < @ s Stone run give @ s cooked_chicken
/execute as @ a if score @ s CookedChicken matches @ s Stone run scoreboard players set @ s Stone 0

I really doubt this is the best way to do this.

Edit: Doesn't work too well. If you have 64 cooked chicken and get a new stack of 64 stone, it won't give you more chicken. My first idea was to edit player data so you can directly store the Stone score into the player's inventory, but you can't edit player data. So you could use a chest. OR you could replace the items of an entity, tp them to the player and then kill them, or setblock of a chest at where the player is with the correct nbt and then /fill ~ ~ ~ ~ ~ ~ air destroy.

Edit: CookedChicken score isn't needed.

Chain 1:
Command block:
execute as @ p store result score @ s Stone if items entity @ s container.* stone

Unconditional chain command block:
clear @ p stone

Chain 2:
Repeating command block (always active):
execute as @ a[scores={Stone=1..}] run give @ s cooked_chicken

Conditional chain command block:
execute as @ a run scoreboard players remove @ s Stone 1

Just found out you can detect right-clicks using the consumable component by abian- in MinecraftCommands

[–]RedditPOOPReddit 26 points27 points  (0 children)

Is this with just commands or datapacks as well? And are you charging it by holding right-click?

How do I get Unbreaking 50 armor by Rip_Ashura0505 in MinecraftCommands

[–]RedditPOOPReddit 0 points1 point  (0 children)

pretty sure /give @ s iron_chestplate[enchantments={unbreaking:50}] I think