TransWikia.com

How to execute a command after eating an item with custom NBT?

Arqade Asked by Jester on November 27, 2020

I’m looking for a way to execute a command for any player on my server who eats this specific enchanted beetroot which gives them this effect that makes them feel like they are on drugs (screenshots attached)

The Beetroot

The Command

One Answer

You can use a repeating command block with testfor to detect if someone is holding the beetroot. If it passes true, it can detect if a command linked to stat.eat.beetroot (?) increases to one, reset it to 0, and execute whatever commands you would like. I'll post redstone and commands later when I can get on Minecraft.

Answered by Ethan Chapman on November 27, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP