Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-32172

Lure Levels 9 or Greater Prevent Fishing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 13w38c
    • Windows 7 64-bit
      Java 1.7.0_09
    • Unconfirmed

      Fishing rods with the lure enchantment level 9 or greater never start the fishing countdown.

      Steps to reproduce:
      1. Give a Fishing Rod with Lure level 9 using the command:

      /give [playername] 346 1 0 {ench:[{id:62,lvl:9}]}

      2. Attempt to fish.
      3. The fishing particles will never appear and the bobber will never trigger.

      Detailed Description of the Problem:
      There are two counters that are used for fishing which get updated each tick.

      If neither counter is greater than zero (i.e. the fishing line has been newly cast and fishing hasn't started yet), then the first gets set to an integer value between 100 and 900 which then has the level of Lure * 100 subtracted from it.

      This counter will then count down until it is less than zero or equal to zero at which point it will start the other counter, which when counted down to less than or equal to zero will allow the fish to be caught.

      The problem occurs due to the fact that with a Lure level of 9, both counters will always be less than or equal to zero, which will result in the game attempting, on the next tick, to set the first counter to a value less than or equal to zero ad infinitum or until the fishing is canceled.

      Proposed Solutions:
      If there is a desire to have levels greater than 9 continue to be useful as the level increases, the affect on the counter could be changed to a multiplier. Something like this...

      Pseudocode
      counter1 = randomInt(100,900);
      counter1 = counter1 * Math.pow(constantLessThanZero, LureLevel); 

      Another solultion would be to simply set the counter to 1 if it is less than or equal to zero, but this would prevent Lure from having an effect past level 9.

            Unassigned Unassigned
            kabopc Kabo
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: