Apply Potion Effects to Any Block! | Minecraft Java 1.14+ Tutorial

Apply Potion Effects to Any Block! | Minecraft Java 1.14+ Tutorial

Channel:
Subscribers:
4,240
Published on ● Video Link: https://www.youtube.com/watch?v=P3rm89rGt6o



Minecraft
Game:
Minecraft (2011)
Category:
Tutorial
Duration: 12:34
21,465 views
418


The overdue wait is over. This is an updated tutorial on how you can apply the kill command or any potion effect to any block, using a single repeating command block. THIS TUTORIAL IS FOR JAVA EDITION ONLY. For use in Bedrock editions (Xbox One, Nintendo Switch, iOS, Android, Windows 10, and PlayStation 4), refer to the old tutorial, here: https://youtu.be/xJlzwvth1K0 The old tutorial does NOT work for Java 1.14 and forward, as the execute command structure changed, and the changes have not been moved to Bedrock versions yet. Here is the command you'll need to start:

execute at @p if block ~ ~-1 ~ minecraft:cobblestone run kill @p

Setting that up in a repeating command block that's set to always active will make all cobblestone in the world act as if you entered the kill @p command. As stated, it can be used to apply potion effects as well:

execute at @p if block ~ ~-1 ~ minecraft:cobblestone run effect give @p minecraft:jump_boost 5 10

This modified command will instead make all cobblestone give you jump boost x 10 for 5 seconds. You can also make any single block provide multiple potion effects. Just set up a second repeating command block:

[RCB 1]
execute at @p if block ~ ~-1 ~ minecraft:cobblestone run effect give @p minecraft:jump_boost 5 10
[RCB 2]
execute at @p if block ~ ~-1 ~ minecraft:cobblestone run effect give @p minecraft:luck 5 10

This set up will instead make cobblestone give you jump boost x 10 for 5 seconds, AND luck x 10 for 5 seconds. I have not tested with more than two effects at a time, but I imagine it works just fine with three or more. If you want to remove an effect from a block, simply break the respective repeating command block or add something to it to make the command invalid.

In order to make these Repeating Command Blocks work no matter where you are in the world, you'll need to set them up in the area around your spawn chunks, which is wherever you spawned into the world. They never unload. You can move this area by using the /setworldspawn command.

Questions? Comment them. All block IDs are in the predictive search when typing in the command, but in case you still can't find what you need, here's a link to all block IDs, with the "minecraft:" prefix omitted. The game will add it for you if you type in the block name. Link:

https://minecraft.gamepedia.com/Java_Edition_data_values







Tags:
minecraft
redstone
command block
tutorial
1.14
potion effect
/kill
java
pocket edtion
console edition
simple
easy
1.15
1.16
1.16.1



Other Statistics

Minecraft Statistics For Shady Inktail

Shady Inktail presently has 67,128 views for Minecraft across 30 videos, with approximately 2 hours of Minecraft video on his channel. This is less than 0.88% of the total video content that Shady Inktail has uploaded to YouTube.