scoreboard objectives add scalingwear dummy scalingwear
execute @e[tag=Scaled,tag=!scalewear] ~ ~ ~ function scalewear

execute @e[tag=ScalingFire] ~ ~ ~ fill ~-1 ~-1 ~-1 ~1 ~1 ~1 fire 0 replace air
execute @e[tag=ScalingLava] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ flowing_lava 1 replace air
execute @e[tag=ScalingWater] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ flowing_water 1 replace air