Sculk sensors are not activated upon sheep being dyed
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Place down a sculk sensor and summon a sheep nearby by using the command provided below.
/summon minecraft:sheep ~ ~ ~ {NoAI:1b} - Apply any kind of dye to the sheep, and watch the sculk sensor closely as you do this.
- Take note as to whether or not sculk sensors are activated upon sheep being dyed.
Observed Behavior:
Sculk sensors aren't activated.
Expected Behavior:
Sculk sensors would be activated.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn.
public class DyeItem extends Item { ... public InteractionResult interactLivingEntity(ItemStack $is, Player $p, LivingEntity $le, InteractionHand $ih) { if ($le instanceof Sheep) { Sheep sheep = (Sheep)$le; if (sheep.isAlive() && !sheep.isSheared() && sheep.getColor() != this.dyeColor) { sheep.level.playSound($p, sheep, SoundEvents.DYE_USE, SoundSource.PLAYERS, 1.0F, 1.0F); if (!$p.level.isClientSide) { sheep.setColor(this.dyeColor); $is.shrink(1); } return InteractionResult.sidedSuccess($p.level.isClientSide); } } return InteractionResult.PASS; } ...
If we look at the above class, we can see that sheep being dyed simply isn't registered as a game event as the gameEvent() method is never called, thus not detecting this action as a vibration.
Potential Fix:
Simply calling the gameEvent() method where appropriate within this piece of code should resolve this problem. I feel as if a new game event tag would be expected to be used here as none of the currently existing ones seem to fit this action accordingly.
Linked Issues
relates to4
Created Issue:
Sculk sensors are not activated upon dyeing a sheep
The Bug:
Sculk sensors are not activated upon dyeing a sheep.
Steps to Reproduce:
- Dye a sheep.
→Notice how the sculk sensor does not activate upon doing this.
Additional Information:
Quote from the 20w49a Changelog, "A vibration is anything that causes physical motion". I would definitely consider this as physical motion, as you are physically performing this task.
The Bug:
Sculk sensors are not activated upon
dyeing a sheep.Steps to Reproduce:
- Dye a sheep.
→Notice how
thesculk sensordoesnot activate upondoing this.Additional Information:
Quote from the 20w49a Changelog, "A vibration is anything that causes physical motion". I would definitely consider this as physical motion, as you are physically performing this task.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep.
- Apply and kind of dye to it.
- →
Notice how sculk sensors are not activated upon sheep being dyed.
Sculk sensors are not activated upondyeing a sheepSculk sensors are not activated upon sheep being dyed
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep.
- Apply and kind of dye to it.
- →
Notice how sculk sensors are not activated upon sheep being dyed.
Expected Behavior:
The expected behavior would be that sculk sensors are activated upon sheep being dyed.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep.
- Apply and kind of dye to it.
- →
Notice how sculk sensors are not activated upon sheep being dyed.
Expected Behavior:
The expected behavior would bethat sculk sensors areactivated upon sheep being dyed.The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep.
- Apply and kind of dye to it.
Observed Behavior:
Sculk sensors are not activated upon sheep being dyed.
Expected Behavior:
Sculk sensors would be activated upon sheep being dyed.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep.
Apply and kind of dye to it.Observed Behavior:
Sculk sensors are not activated upon sheep being dyed.
Expected Behavior:
Sculk sensors would be activated upon sheep being dyed.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep and place down a sculk sensor nearby.
- Apply any kind of dye to the sheep.
- Take note as to whether or not sculk sensors are activated upon sheep being dyed.
Observed Behavior:
Sculk sensors are not activated upon sheep being dyed.
Expected Behavior:
Sculk sensors would be activated upon sheep being dyed.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Summon a sheep and place down a sculk sensor nearby.
- Apply any kind of dye to the sheep.
Take note as to whether or not sculk sensors are activated upon sheep being dyed.Observed Behavior:
Sculk sensors are
not activatedupon sheep being dyed.Expected Behavior:
Sculk sensors would be activated
upon sheep being dyed.The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Place down a sculk sensor and summon a sheep nearby.
/summon minecraft:sheep ~ ~ ~ {NoAI:1b}
- Apply any kind of dye to the sheep.
- Take note as to whether or not sculk sensors are activated upon sheep being dyed.
Observed Behavior:
Sculk sensors aren't activated.
Expected Behavior:
Sculk sensors would be activated.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn.
net.minecraft.world.level.item.DyeItem.javapublic class DyeItem extends Item { ... public InteractionResult interactLivingEntity(ItemStack $is, Player $p, LivingEntity $le, InteractionHand $ih) { if ($le instanceof Sheep) { Sheep sheep = (Sheep)$le; if (sheep.isAlive() && !sheep.isSheared() && sheep.getColor() != this.dyeColor) { sheep.level.playSound($p, sheep, SoundEvents.DYE_USE, SoundSource.PLAYERS, 1.0F, 1.0F); if (!$p.level.isClientSide) { sheep.setColor(this.dyeColor); $is.shrink(1); } return InteractionResult.sidedSuccess($p.level.isClientSide); } } return InteractionResult.PASS; } ...If we look at the above class, we can see that sheep being dyed simply isn't registered as a game event as the gameEvent() method is never called, thus not detecting this action as a vibration.
Potential Fix:
Simply calling the gameEvent() method where appropriate within this piece of code should resolve this problem. I feel as if a new game event tag would be expected to be used here as none of the currently existing ones seem to fit this action accordingly.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Place down a sculk sensor and summon a sheep nearby.
/summon minecraft:sheep ~ ~ ~ {NoAI:1b}
- Apply any kind of dye to the sheep.
- Take note as to whether or not sculk sensors are activated upon sheep being dyed.
Observed Behavior:
Sculk sensors aren't activated.
Expected Behavior:
Sculk sensors would be activated.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn.
net.minecraft.world.level.item.DyeItem.javapublic class DyeItem extends Item { ... public InteractionResult interactLivingEntity(ItemStack $is, Player $p, LivingEntity $le, InteractionHand $ih) { if ($le instanceof Sheep) { Sheep sheep = (Sheep)$le; if (sheep.isAlive() && !sheep.isSheared() && sheep.getColor() != this.dyeColor) { sheep.level.playSound($p, sheep, SoundEvents.DYE_USE, SoundSource.PLAYERS, 1.0F, 1.0F); if (!$p.level.isClientSide) { sheep.setColor(this.dyeColor); $is.shrink(1); } return InteractionResult.sidedSuccess($p.level.isClientSide); } } return InteractionResult.PASS; } ...If we look at the above class, we can see that sheep being dyed simply isn't registered as a game event as the gameEvent() method is never called, thus not detecting this action as a vibration.
Potential Fix:
Simply calling the gameEvent() method where appropriate within this piece of code should resolve this problem. I feel as if a new game event tag would be expected to be used here as none of the currently existing ones seem to fit this action accordingly.
The Bug:
Sculk sensors are not activated upon sheep being dyed.
Steps to Reproduce:
- Place down a sculk sensor and summon a sheep nearby by using the command provided below.
/summon minecraft:sheep ~ ~ ~ {NoAI:1b}- Apply any kind of dye to the sheep, and watch the sculk sensor closely as you do this.
- Take note as to whether or not sculk sensors are activated upon sheep being dyed.
Observed Behavior:
Sculk sensors aren't activated.
Expected Behavior:
Sculk sensors would be activated.
Code Analysis:
Code analysis by [Mod] Avoma can be found below.
The following is based on a decompiled version of Minecraft 1.18.2 using MCP-Reborn.
net.minecraft.world.level.item.DyeItem.javapublic class DyeItem extends Item { ... public InteractionResult interactLivingEntity(ItemStack $is, Player $p, LivingEntity $le, InteractionHand $ih) { if ($le instanceof Sheep) { Sheep sheep = (Sheep)$le; if (sheep.isAlive() && !sheep.isSheared() && sheep.getColor() != this.dyeColor) { sheep.level.playSound($p, sheep, SoundEvents.DYE_USE, SoundSource.PLAYERS, 1.0F, 1.0F); if (!$p.level.isClientSide) { sheep.setColor(this.dyeColor); $is.shrink(1); } return InteractionResult.sidedSuccess($p.level.isClientSide); } } return InteractionResult.PASS; } ...If we look at the above class, we can see that sheep being dyed simply isn't registered as a game event as the gameEvent() method is never called, thus not detecting this action as a vibration.
Potential Fix:
Simply calling the gameEvent() method where appropriate within this piece of code should resolve this problem. I feel as if a new game event tag would be expected to be used here as none of the currently existing ones seem to fit this action accordingly.
The Bug:
Sculk sensors are not activated upon a sheep changing from blue to red, through the use of an evoker.
Steps to Reproduce:
- Summon an evoker.
- Summon a sheep.
- Dye the sheep blue.
→
Notice how when the sheep changes colour, the sculk sensor does not activate.
Additional Information:
Quote from the 20w49a Changelog, "A vibration is anything that causes physical motion". I would definitely consider this as physical motion, as the sheep is physically changing colour. This is most likely a Won't Fix, or a Feature Request, since this feature is an Easter Egg within the game. However, I just wanted to report this, to let the team decide. Closely relates to MC-210334.
Related to MC-210334
Sculk sensors don't detect players using dyes on sheep.
How to Reproduce
- Place down a sculk sensor and spawn a sheep in a 1x1 hole
- Apply any kind of dye to the sheep.
- Check as to whether or not sculk sensors detects it.
Observed Result
Sculk sensors don't detect players using dyes on sheep.
Expected Result
Sculk sensors should detect it.
Events not detected in Bedrock but detected on java after preview 1.20.10.20:
- Stripping oak, spruce, birch, jungle, acacia and dark oak woods (strip logs and other woods emits vibrations correctly)
- Close chest boats/rafts and minecart (
MC-210707) - Horses Kicking (
MC-207522) - Collecting fishes, axolotls and tadpoles with water buckets (
MC-212503) - Cleaning items in water cauldrons (
MC-212428) (They also don't detect dying leather armor on cauldrons, use dyes to change water cauldron coloration and use cauldrons with potions to type arrows) - Minecarts in movement (without any entity riding it)
- Nametags being used (
MC-213585fixed as WAI but cause vibrations on java) - Directly breaking fire (
MC-207417) - Throwing eyes of ender
Should not be detected while sneaking:
- Stop charging crossbow
- Stop using spyglass
- Stop using brush
- Stop charging bow
- Stop charging trident
- Stop using fishing rod
Fully Fixed:
Use goat horns (MC-250940)Composter interactions (MC-209929)Villagers working with composters (MC-237879)Villagers placing crops (MC-208759)Attaching or removing leads from entities (MC-210715)Attaching or removing leads from fences (MC-209907)Respawn anchor charging (MC-209896)Breaking shulker bullets (MC-210816)Use dyes to color sheeps (MC-210334)Item frame / glow item frame interactions (MC-209622)Harvesting glow berries (MC-213803)Endermans/shulkers teleporting (MC-213387)Tramping farmland (MC-210276)Bees entering or leaving bee hives / nests (MC-210278)Use a spawn egg on a spawnerUse hoe to turn rooted dirt into dirtChicken laying eggs (MC-210277)Turtles laying an egg (MC-215767)Frogs laying frogspawn (MC-251934)

Can confirm in 21w37a.
Can confirm in 21w40a.
Interestingly, dyeing wolf collars does produce vibrations.