Topic category: Help with modding (Java Edition)
I'm working on a mod for elemental materials on 1.16.5, and one of the parts needs to be splashed on blocks with specified splash or lingering potions to infect blocks, but I don't know how to detect the type of potion used .
I've tried using NBT detection (detect "
Potion") and the /data command (
/data get entity @s), but I can't figure out how to output the /data command.
I'm using a "
when entity spawned" trigger.
(I tried for a long time)
(Sorry for bad english^^)