#Detect if a conduit block is active
12 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
For reference, here is a draft of what I have as a server script:
BlockEvents.rightClicked('minecraft:conduit', e => {
const item = e.player.mainHandItem;
if (e.player.block.biomeId != 'minecraft:deep_ocean') return
if(item.id != 'minecraft:heart_of_the_sea') return
item.count--;
e.server.runCommand(`summon elder_guardian ~30 ~ ~30 {PersistenceRequired:1}`)
})
According to the minecraft wiki, it seems like it only has a waterlogged (true/false) block state
Unsure then, unless it has nbt you might have to check for the entire structure