mojira.dev
MC-132468

Bow will Auto Draw an remain drawn whilst trading with Custom NitWit Villager

The bug

Bow will auto draw an remain drawn whilst trading with Custom NitWit Villager, the Villager will be shot when finishing the trade

Steps to reproduce

  1. Place commandblock, impulse, always active with command

    /summon villager ~ ~0.5 ~ {Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,Rotation:[0f,0f],CustomName:"\"Block Trader\"",CustomNameVisible:1,Profession:5,Career:1,CareerLevel:0,Offers:{Recipes:[
    {buy:{id:gold_block,Count:1},sell:{id:brown_wool,Count:1},rewardExp:0b,maxUses:2147483647},
    {buy:{id:gold_block,Count:1},sell:{id:white_stained_glass_pane,Count:1},maxUses:2147483647}]}}
    /summon villager ~ ~0.5 ~ {Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,Rotation:[0f,0f],CustomName:"\"Block Trader\"",CustomNameVisible:1,Profession:5,Career:1,CareerLevel:0,Offers:{Recipes:[
    {buy:{id:gold_block,Count:1},sell:{id:brown_wool,Count:1},rewardExp:0b,maxUses:2147483647},
    {buy:{id:gold_block,Count:1},sell:{id:white_stained_glass_pane,Count:1},maxUses:2147483647}]}}
  2. Hold a Bow and Arrows in your Inv, whilst making sure the bow is active in main hand

  3. Trade with the summoned Villager

  4. Now you'll see the bow drawing and remain held

  5. Upong ending the trade the arrow will hit the Villager

Attachments

Comments 7

Cannot confirm neither in creative nor in survival game mode, see screenshots.
Only when trying to trade with a Nitwit the bow will draw.
Confirmed.

Yes, i can confirm that it seems this is limited to the nitwit villager

Uhm, the Nitwit cannot trade!

Im using him for custom trades, such as what is below

/summon villager ~ ~0.5 ~ {Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,Rotation:[0f,0f],CustomName:"\"Block Trader\"",CustomNameVisible:1,Profession:5,Career:1,CareerLevel:0,Offers:{Recipes:[
{buy:{id:gold_block,Count:1},sell:{id:brown_wool,Count:1},rewardExp:0b,maxUses:2147483647},
{buy:{id:gold_block,Count:1},sell:{id:white_stained_glass_pane,Count:1},maxUses:2147483647}]}}
/summon villager ~ ~0.5 ~ {Invulnerable:1,PersistenceRequired:1,Silent:1,NoAI:1,Rotation:[0f,0f],CustomName:"\"Block Trader\"",CustomNameVisible:1,Profession:5,Career:1,CareerLevel:0,Offers:{Recipes:[
{buy:{id:gold_block,Count:1},sell:{id:brown_wool,Count:1},rewardExp:0b,maxUses:2147483647},
{buy:{id:gold_block,Count:1},sell:{id:white_stained_glass_pane,Count:1},maxUses:2147483647}]}}

Is this still an issue in 20w22a or later?

I cannot reproduce this issue in 20w49a using the provided reproduction steps.

Cannot reproduce in 20w51a either. Tried both survival mode and creative mode.

Warren Liddell

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.12.2, Minecraft 1.13-pre5, Minecraft 1.13.1

Retrieved