Problem with less then 1% ore-gen #2


  • Enhancment
  • Accepted
Open
Assigned to _ForgeUser17368235
  • _ForgeUser8852983 created this issue Jun 9, 2015

    What steps will reproduce the problem?
    1. Alter the config and specify a resource with less the 1% chance to spawn (tried both "0.5" and "0,5")
    2.Reload the server, rebuild the world
    3.The resource in question does not spawn at all

    What is the expected output? What do you see instead?
    I expected to see ~ 0.5 % of the resource in question

    What version of the product are you using?
    0.1.0

    Do you have an error log of what happened?
    No errors, no logs (as far as I know)

    Please provide any additional information below.
    - The plugin works just fine when I stick to integer numbers
    - git-Spigot-dbe012b-63e28b1 (MC: 1.8.3)
    - I can provide any additional information you need!

  • _ForgeUser8852983 added the tags New Enhancment Jun 9, 2015
  • _ForgeUser8852983 posted a comment Jun 9, 2015

    According to the source code, pctGenerate is an "int", therefor 0.5 should translate to 1. I must remember wrong, perhaps the value I tested was "0.1" and "0,1"

  • _ForgeUser17368235 removed a tag New Jun 14, 2015
  • _ForgeUser17368235 posted a comment Jun 14, 2015

    Update 20150614_0953: In a typical chunk (16 wide x 16 across x 64 high), 0.5% would equate to approximately 80 blocks of the ore.  Since this (and even less blocks) is a reasonable amount, I will revisit the limitation that ore percentages are integers.

  • _ForgeUser17368235 added a tag Accepted Jun 14, 2015

To post a comment, please login or register a new account.