Command Block Tutorial #147: Special Villager Bell Commands in Minecraft (1.18+)
In this video I will show how to give yourself two special items that when ring a bell at a village or anywhere you will be grant certain perks depending which item your holding while ring a bell.
Commands:
* To get the Iron Golem Poppy: /give @p minecraft:poppy{HideFlags:1,Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Iron Golem Poppy\"}"}} 64
* To get the Lucky Coin: /give @p minecraft:gold_nugget{HideFlags:1,Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Lucky Coin\"}"}} 64
* Bell Scoreboard Command:
To Add: /scoreboard objectives add Bell_Ringer minecraft.custom:minecraft.bell_ring
To Remove: /scoreboard objectives remove Bell_Ringer
-----------------------------------------------------------------------------------------------------------------------
Remember to follow the steps in the video before activating the commands here:
-----------------------------------------------------------------------------------------------------------------------
* For the Iron Golem Poppy:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:poppy",tag:{display:{Name:"{\"text\":\"Iron Golem Poppy\"}"}}}]}] run execute as @r at @s if entity @s[scores={Bell_Ringer=1..}]
2. Chain Command Block: /execute at @p run summon minecraft:iron_golem ^ ^ ^-1.5
3. Chain Command Block: /clear @p minecraft:poppy{HideFlags:1,Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Iron Golem Poppy\"}"}} 1
* For the Lucky Coin:
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:gold_nugget",tag:{display:{Name:"{\"text\":\"Lucky Coin\"}"}}}]}] run execute as @r at @s if entity @s[scores={Bell_Ringer=1..}]
2. Chain Command Block: /give @p minecraft:emerald 5
3. Chain Command Block: /effect give @p minecraft:hero_of_the_village 120 1 true
4. Chain Command Block: /clear @p minecraft:gold_nugget{HideFlags:1,Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Lucky Coin\"}"}} 1
* For both (last command):
- Repeater Command Block: /scoreboard players reset @a Bell_Ringer
Music:
1. Gaming Sound FX:
* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42azVZi3o
Other Videos By RedstoneKnightX
Other Statistics
Minecraft Statistics For RedstoneKnightX
RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.