[SPIGOT-6104] Seeds in world-settings are parsed as ints and not longs Created: 26/Aug/20  Updated: 26/Aug/20  Resolved: 26/Aug/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: zombachu Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: Structures, generation, seed, world-settings

Attachments: PNG File intseed1.png     PNG File intseed2.png    
Version: This server is running CraftBukkit version git-Spigot-d65430a-bad55db (MC: 1.16.2) (Implementing API version 1.16.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

Seeds from the world-settings config are parsed as integers while in vanilla it may possible for them to be (and usually are) longs. This makes it impossible to use most seeds to predictably generate structures and have vanilla behavior. The attached pictures relate to the seed `-8520464341868628165`. A quad witch hut should spawn at approximately 4472, 2920 but this is not the case in Spigot as that seed is instead parsed as `227129147`.



 Comments   
Comment by zombachu [ 26/Aug/20 ]

Sorry, I think I was running into a different issue and misunderstood the purpose of the seeds as defined in spigot.yml and thought that was the cause. I was unable to reproduce this issue on a fresh world, guessing something was wrong with the level.dat of the world that I was trying to import from. I apologize for the inconvenience.

Comment by md_5 [ 26/Aug/20 ]

Structure seeds can only be ints not longs in Vanilla, so you're gonna have to be more specific about what the issue is

Comment by md_5 [ 26/Aug/20 ]

Which seeds specifically are you talking about?
Spigot.yml or server.properties?
The former are all ints by default in Vanilla and I'm pretty sure the latter work fine in Spigot.

Generated at Tue Apr 22 03:30:25 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.