BiomeTweaker

BiomeTweaker

13M Downloads

Script doesn't work

somebush opened this issue ยท 1 comments

commented

I wrote this code that should disable player spawning in all battles except biomesoplenty:prairie. But it doesn't work
Minecraft - 1.12.2, Mod - BiomeTweaker-1.12.2-3.2.369.jar, Forge - 14.23.5.2859

script (WorldSpawnBlackList.cfg):

allBlackList = forAllBiomes()
whiteList = forBiomes("biomesoplenty:prairie")

allBlackList.set("isSpawnBiome", false)
whiteList.set("isSpawnBiome", true)

BiomeTweaker.cfg:

# Configuration file

"output files" {
    # If true, BiomeTweaker will not generate any output files. [default: false]
    B:"Disable Output Files"=false

    # If true, BiomeTweaker will generate separate files for each item when creating the status report. [default: true]
    B:"Output Seperate Files"=true
}


scripting {
    # A list of script files to include that are not in the scripts folder. An example script file is created along with this configuration file. [default: ]
    S:"Script Files" <
        WorldSpawnBlackList.cfg
     >
}



dir:

19.04.2024  15:29    <DIR>          .
19.04.2024  15:29    <DIR>          ..
19.04.2024  15:28               570 BiomeTweaker.cfg
19.04.2024  14:27    <DIR>          output
19.04.2024  15:35    <DIR>          scripts
19.04.2024  15:37               157 WorldSpawnBlackList.cfg
commented

Thats work:

# Configuration file

"output files" {
    # If true, BiomeTweaker will not generate any output files. [default: false]
    B:"Disable Output Files"=false

    # If true, BiomeTweaker will generate separate files for each item when creating the status report. [default: true]
    B:"Output Seperate Files"=true
}


scripting {
    # A list of script files to include that are not in the scripts folder. An example script file is created along with this configuration file. [default: ]
    S:"Script Files" <
        "WorldSpawnBlackList.script", "DisableSomeTrees.script"
     >
}