i have this script here which applies radiation to a player when they get near a certain distance, i tried but didnt find a way on how to make it nbt specific, only working version is with item ids
onEvent("player.tick",event => {
let player = event.player
if (player.ticksExisted % 20 != 0) return
if (player.headArmorItem == 'tconstruct:slime_helmet' && player.chestArmorItem == 'tconstruct:slime_chestplate' && player.legsArmorItem == 'tconstruct:slime_leggings' && player.feetArmorItem == 'tconstruct:slime_boots') return
let radioactiveBlockPos = BlockPos.findClosestMatch(player.block.pos, 3, 3, pos => event.level.getBlock(pos).hasTag("forgedingears:radioactive"))
radioactiveBlockPos.ifPresent(() => player.potionEffects.add('kubejs:radiation', 21, 2, false, true))
if (player.inventory.find("#forgedingears:radioactive") > -1) player.potionEffects.add('kubejs:radiation', 201, 3, false, true)
})