Jump to content

Recommended Posts

Posted (edited)

Tried with the last Forge releases for Minecraft 1.10.2 and 1.11.2 ( Forge-12.18.3.2221 and  Forge-13.20.0.2226 respectively).

 

After death, you always respawn on negative X and Z coordinates (always northwest of the world spawn).

 

How to reproduce the bug:

 

1. Start a new game.

 

2. Type the command /gamerule spawnRadius 5000 (for example).

 

3. Kill your character.

 

4. You respawn northwest of the world spawn on negative X and Z coordinates.

 

Probably this has something to do with this issue:

https://github.com/MinecraftForge/MinecraftForge/issues/2624

Edited by ivanovic77
  • 2 weeks later...
Posted (edited)

Hmmm... Strange... Did you set the world spawn at x:0, z:0 manually using the command /setworldspawn ?

 

I ask you because of this statement:

 

On 4/2/2017 at 2:45 PM, diesieben07 said:

Ok, I just tried it out. World spawn at 0, 0, spawn radius 5000. After death I spawned at -1924, 2166. Seems reasonable to me...

 

The day I tested it, I used the command /gamerule spawnRadius 5000, without manually setting the world spawn at 0,0 with other commands. In fact, if you need to set the world spawn at 0,0 manually to avoid the bug, I don't think the gamerule is working properly. I'll check it out right now.

Edited by ivanovic77
Posted (edited)

I just tried again, with the last Forge releases for Minecraft 1.10.2 and 1.11.2 (12.18.3.2221 and 13.20.0.2228 respectively) and after updating Java (just in case), and the bug is still present. 

 

Just start a new game, type /gamerule spawnRadius 5000, and kill your character. You always respawn on negative coordinates.

 

Edit: Oh LexManos, ok, thanks!

Edited by ivanovic77
Posted

Nevermind, I just woke up and figured i'd drop a fix real quick. But no I was wrong, There is no explination for your bug besides bad luck.

rand(Half) - Full is the right formula.

rand(0->50) - 100 == -50 -> 50 (Well technically -50 -> 49 because rand is non-inclusive but hey)

 

Sould like to me that you're either doing your math wrong based on your spawn point, or you have some other mod interfearing, Specific numbers would be useful.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted (edited)

Needless to say I'm doing the tests without any mods. Only Forge. Do you really cannot reproduce the bug?

 

My spawn point is for example around x:100 y:70 z: -50, and after /gamerule spawnRadius 5000, I always respawn on coordinates like x:-4120 y:80 z:-3810. I tried like 50 times, so I'm 100% sure that the coordinates are negative. I did the same test in Minecraft vanilla and it works correctly as intended.

Edited by ivanovic77
Posted (edited)
10 minutes ago, diesieben07 said:

Still trying to understand which bug you mean. 

Please give exact data: What is the world spawn point, what is spawn radius set at and where do you spawn and why is that not right in your opinion?

 

Ok, steps to reproduce:

 

1. Install the latest Forge release for Minecraft 1.11.2 ( 13.20.0.2228 ).

 

2. Make sure you don't have any mod in the mods folder.

 

3. Start a new default game.

 

4. By default you'll spawn near the x:0, z:0 coordinates, but not exactly there (maybe it will be something like x:120, z:-210).

 

5. Type /gamerule spawnRadius 5000.

 

6. Kill your character (either by typing the command /kill your_nick, or drowning yourself, or jumping off a cliff).

 

7. After respawning, press F3 and look at the coordinates. Now you are on negative x and z coordinates (it may be something like x:-4120 z:-3565) That means always northwest of the world spawn.

 

8. Kill your character again. And so on.

Edited by ivanovic77
Posted

Found the issue, I can't seem to do math today. I blame my head ake.

However, the formula SHOULD be: fuzzHalf - rand(Fuzz)

50 - [0->100] = [50 - 0 = 50] -> [50 - 99 = -49]

  • Like 1

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted (edited)

Will this fix be backported to 1.10.2? We want to start a server but finally we decided to stay on 1.10.2 to have a few more mods.

Edited by ivanovic77
Posted

Probably not as nobody really cares. We don't typically backport non-critical things.

You should make a 1.11.2 server.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted (edited)

Well, I wouldn't say nobody cares. Me and many people on my server love the random spawn location that the gamerule spawnRadius provides. It's perfect for hardcore games when combined with the gamerule reducedDebugInfo and disabled beds. There are many people interested in hardcore features.

Edited by ivanovic77

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This is the last line before the crash: [ebwizardry]: Synchronising spell emitters for PixelTraveler But I have no idea what this means
    • What in particular? I barely used that mod this time around, and it's never been a problem in the past.
    • Im trying to build my mod using shade since i use the luaj library however i keep getting this error Reason: Task ':reobfJar' uses this output of task ':shadowJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. So i try adding reobfJar.dependsOn shadowJar  Could not get unknown property 'reobfJar' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. my gradle file plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' id 'com.github.johnrengelman.shadow' version '7.1.2' id 'org.spongepowered.mixin' version '0.7.+' } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.spongepowered.mixin' apply plugin: 'com.github.johnrengelman.shadow' version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) //jarJar.enable() println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { mappings channel: mapping_channel, version: mapping_version copyIdeResources = true runs { configureEach { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' arg "-mixin.config=derp.mixin.json" mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { workingDirectory project.file('run-data') args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { flatDir { dirs './libs' } maven { url = "https://jitpack.io" } } configurations { shade implementation.extendsFrom shade } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation 'org.luaj:luaj-jse-3.0.2' implementation fg.deobf("com.github.Virtuoel:Pehkui:${pehkui_version}") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' minecraftLibrary 'luaj:luaj-jse:3.0.2' shade 'luaj:luaj-jse:3.0.2' } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), "TweakClass" : "org.spongepowered.asm.launch.MixinTweaker", "TweakOrder" : 0, "MixinConfigs" : "derp.mixin.json" ]) } rename 'mixin.refmap.json', 'derp.mixin-refmap.json' } shadowJar { archiveClassifier = '' configurations = [project.configurations.shade] finalizedBy 'reobfShadowJar' } assemble.dependsOn shadowJar reobf { re shadowJar {} } publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } my entire project:https://github.com/kevin051606/DERP-Mod/tree/Derp-1.0-1.20
    • All versions of Minecraft Forge suddenly black screen even without mods (tried reinstalling original Minecraft, Java, updating drivers doesn't work)
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.