Command Block Tutorial

Опубликовано: 12 Июнь 2026
на канале: RedstoneKnightX
1,048
30

In this video I will show how to make a special troll item that summon speical silverfish that attach themselves to any near by mob or player and deal damage to them, basically the behavior of a parasite.

Commands:

To get the Parasite Egg: /give @p minecraft:egg{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Parasite Egg\"}"}}

1. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:egg",tag:{display:{Name:'{"text":"Parasite Egg"}'}}}}] run execute as @e[type=egg] at @s run summon minecraft:area_effect_cloud ~ ~ ~ {Duration:2s,Tags:["mob_spawner"]}

2. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:egg",tag:{display:{Name:'{"text":"Parasite Egg"}'}}}}] run execute as @e[type=minecraft:area_effect_cloud,tag=mob_spawner] at @s unless entity @e[type=minecraft:egg,distance=..3] run summon minecraft:silverfish ~ ~ ~ {CustomName:"\"Parasite\"",CustomNameVisible:1}

3. Repeater Command Block: /execute at @e[type=minecraft:silverfish,name="Parasite"] run execute if entity @e[name=!"Parasite",distance=0..2] run execute if entity @e[type=!minecraft:snowball,distance=0..2] run effect give @e[name=!Parasite,distance=0..2] minecraft:wither 1 3 true

4. Repeater Command Block: /execute at @e[type=!item,name=!Parasite,type=!minecraft:silverfish] run tp @e[type=minecraft:silverfish,name="Parasite",distance=0..2,limit=1] ^ ^2 ^

Music:

1. Gaming Sound FX:

Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...