Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6618

Bucketed axolotls and fish count to mob cap

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Windows 10

    • 3161-Spigot-f773da8-f81f-499 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
    • Yes

      Axolotls and fish that are picked up in a bucket then re-placed still count to the mob cap despite being persistent, this is not consistent with vanilla behavior. This breaks for example, https://www.youtube.com/watch?v=5bzWtA6Fy4o which relies on the bucketing mechanic to remove axolotls from the mob cap.

      Server config: spigot default

      Tested with fresh server, no plugins

       

      Reason for this bug:

       In set from bucket in these mobs, ie for axoltol:

       

      @Override public void setFromBucket(boolean flag) { 
          this.entityData.set(Axolotl.FROM_BUCKET, flag);
          this.persistenceRequired = this.isPersistent(); // ...
      }
      

       

       which doesn't set the persistence to true which it should be.

       

      Steps to reproduce:

      1. Make a void world, make a hollow tinted glass cube and fill it with water. Make the floor out of stone so glow squid and axolotls can spawn.
      2. Spawn at least 5 axolotls from buckets, using /data you can verify these have the bucket spawn tag but are not marked as persistent. Kill all the mobs in the water cube and note no more will spawn because the underground aquatic mob cap is full even though it shouldn't be.

            Unassigned Unassigned
            Bowserinator Bowserinator
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: