How to Detect Dropped Items Burning in Lava or Fire in Minecraft (Command Block)
Minecraft Java 1.21+ and 26+ β Item Detection Command Using Execute if Block Lava
In this tutorial, you will learn how to detect dropped items burning in lava or fire in Minecraft using command blocks.
This system works in Minecraft Java Edition 1.21+ and 26+, using execute commands to check if an item entity is inside lava or fire blocks.
You can detect items by ID, custom name, or custom_data tags, making it perfect for adventure maps, automatic events, and custom server systems.
First, let's get an item with the following tag
give @p minecraft:acacia_boat[minecraft:custom_data={Teste:1b}]
You can choose any tag you prefer, just donβt forget to update it in the other commands afterward
There are several ways to detect an item burned in fire or lava
Choose one of the methods below and place the command in a Repeat command block set to Always Active
Detect by ID
execute at @e[type=item,nbt={Item:{id:"minecraft:acacia_boat"}}] if block ~ ~ ~ lava run say Item burned in lava!
Detect by Name
execute at @e[type=item,nbt={Item:{components:{"minecraft:custom_name":"Teste"}}}] if block ~ ~ ~ lava run say Item burned in lava!
Detect by Tag
execute at @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{Teste:1b}}}}] if block ~ ~ ~ lava run say Item burned in lava!
Choose a command you want to execute and place it after run
You can also use a comparator on the command block that is running the detection