[FUN/FIX] SlimeChunk v1.1 - Did you know this is not a slimechunk ? Then make it to one [1000-1060]

Discussion in 'Inactive/Unsupported Plugins' started by JoshuaBehrens, Jul 20, 2011.

  1. Offline

    JoshuaBehrens

    SlimeChunk
    Version: 1.0
    Official Website (updated first) : SlimeChunk

    This plugin makes it easy to find slime-spawning chunks without any client-side mods. This is only working on worlds, that are generated by the default world-generator, or on worlds generated by generators using the same slime-chunk definition.
    You'll get a message when you enter and leave a slime-chunk and can request it again with the slimechunk-command.
    Since version 1.1 you can adjust the spawnrate and chunks where slimes can spawn. In addition to that slimechunk-images will be created in the plugin/SlimeChunk/-folder (adjustable) to have a look where the chunks are.
    There is also a support for different ways for permissions. In all plugins of mine using devbukkit 770+ will have a property called permissions with four different options :
    1. CONFIG - Only use the plugin's configuration-file
    2. BUKKIT - Use bukkit's build-in permission-system
    3. PLUGIN - Use the permissions plugin
    4. OP - Only operators can use the plugin
    To change the messages and the required item(default is slimeball) edit the '/plugins/SlimeChunk/config.yml'. Original file:
    Show Original Configuration
    Code:
    permissions: OP # way to check permissions
    all_get_message: true # whether all recieve a message when they enter/leave a slimechunk
    all_can_command: true # whether all can use the commands (permissions = CONFIG only)
    all_need_item: true # whether you need an item to use the functions (permissions = CONFIG only)
    itemid: 341 # the must-have item
    # all config-items starting with "trans_" are translations for the messages
    # change them if you like. if there are params there are all given (and obvious what the mean)
    trans_chunkenter: You entered a slime-spawning chunk
    trans_chunkleave: You left a slime-spawning chunk.
    trans_falseitem:  You don't got the specified item (%i%).
    trans_spawns: This chunk spawns slimes.
    trans_spawnsnot: This chunk doesn't spawn slimes.
    trans_noperms: You don't got any permissions to use this command.
    #added in 1.1
    image: # image section
        directory: ./plugins/SlimeChunk/ # directory where to save the slimechunkmaps
        type: png # file-ending/encoding type. the possible encodings are depending on your java
        worlds: # the world lists
            <worldname>: # the world name and the explored areas in chunks
                minx: -10
                maxx: 10
                minz: -10
                maxz: 10
    chance: 1 # chance is explained in the video
    unaffected_types: # monster types which are not affected by the morphing into a slime
    - CREEPER
    - GHAST
    - PIG_ZOMBIE
    afftected_worlds: # list of worlds which get affected by the above configuration
    - <worldname>
    Watch the video for version 1.1.
    Show Video
    Show Permission Nodes

    • slimechunk.message - Ability to get the message instantly
    • slimechunk.needitem - Ability to need a special item to use the instant-message and command
    • slimechunk.command - Ability to use the command

    Version 1.1 (Download)
    • Added natural slimechunk expanding
    • Added mob-morphing (explained in the video)
    • Compiled with references on devBukkit 770 and Permissions 3.1 for Craftbukkit 1000
    Version 1 (Download)
    • Permission-Nodes added
    • Any item as tool to detect slime-chunks
    • Added file for messages and other configurations
    • Compiled with references on devBukkit 770 and Permissions 3.1 for Craftbukkit 1000

    I compared this with the client-side mod and an online tool, but I never digged out a cave and watched out for slimes. Maybe you can make a short video or screenshot to prove it ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
    Fido488 likes this.
  2. Offline

    JoshuaBehrens

    It should otherwise generate it by yourself. Possible configuration and it's path is in the first Post.
     
  3. Offline

    Teldelariel

  4. Offline

    recon88

    Running 1060


    On Start

    Code:
    2011-08-20 03:32:47 [INFO] [SlimeChunk] Enabled.
    2011-08-20 03:32:47 [INFO] [SlimeChunk] You are running version 1.1.
    2011-08-20 03:32:47 [INFO] [SlimeChunk] Only OPs got permissions to use this plugin.
    2011-08-20 03:32:47 [SEVERE] Error occurred while enabling SlimeChunk v1.1 (Is it up to date?): null
    java.lang.NullPointerException
        at joshuabehrens.plugins.slimechunk.SlimeChunk.afterEnable(SlimeChunk.java:60)
        at joshuabehrens.plugins.slimechunk.PermissionPlugin.onEnable(PermissionPlugin.java:79)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    after trying to use the command:

    Code:
    2011-08-20 03:33:31 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'slimechunk' in plugin SlimeChunk v1.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at java.util.Arrays$ArrayList.<init>(Arrays.java:2842)
        at java.util.Arrays.asList(Arrays.java:2828)
        at joshuabehrens.plugins.slimechunk.SlimeChunk.isSpawningSlimes(SlimeChunk.java:187)
        at joshuabehrens.plugins.slimechunk.SlimeChunk.isSpawningSlimes(SlimeChunk.java:182)
        at joshuabehrens.plugins.slimechunk.SlimeChunk.isSpawningSlimes(SlimeChunk.java:178)
        at joshuabehrens.plugins.slimechunk.SlimeChunk.onCommand(SlimeChunk.java:159)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
     
  5. Offline

    JoshuaBehrens

    I'll have a look.

    Please post your configuration (in code-tag would be best). Did you change something by yourself ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  6. Offline

    Nikademus

    I would like all the players to be able to know if a chunk can spawn slimes. How do I do this without Permissions installed?
     
  7. Offline

    JoshuaBehrens

    Use the configuration file and set the 'permissions' to 'CONFIG'. More information in the first post. Please read carefully.
     
  8. Offline

    da_boom

    uh y does ur config reset itself?
     
  9. Offline

    JoshuaBehrens

    It's not resetting. It's rewriting the content of the settings it read at the startup (and maybe changed during the gameplay).
     
  10. Offline

    TCLG6x6

    Thanks thats what i need! :D Slimes sind so Süüüüüüß :3 [​IMG]
    :D
     
    JoshuaBehrens likes this.
  11. Any chance we get a command list and explanations for what the variables mean in the config file ? I mean, not in a video.
     
  12. Offline

    JoshuaBehrens

    Sure, thought the names were obvious enough. I'm adding comments.
     
  13. Offline

    micdoodle8

    Nice! Been looking for something like this, because everyone complains about slime spawn rates.

    Does it support #1240 ?
     
  14. Offline

    JoshuaBehrens

    Sure it's working with 1240. And it'll work for a lot of the next releases, but I don't know the new seed for the slimechunk-random instance so I have to look it up (this means I have to search through the whole minecraft.jar). So only new values for the spawnrate will use my seed and so the slimechunk-detection will work properly.
     
  15. Nice Job! You have really turned this into a successful plugin!
    -Fido488
     
  16. Offline

    OrtwinS

    I dont understand, does it work with 1.8 generated maps (1240+) or not?
    Did the calculation that defines if a chunk spawns slimes or not change from 1.7 -> 1.8?
     
  17. Offline

    JoshuaBehrens

    Hope I can explain it better :
    I don't know but I think the calculation changed from 1.7 to 1.8, but if you use my feature to use my calculation (it's when you set chance to anything than 1) so all features are working right.
     
  18. Offline

    jespertheend

    So... what ís the command?

    I tried /slimechunk but that only tells if the chunk is a slimechunk
    But how can I make a chunk a slime chunk?
     
  19. Offline

    JoshuaBehrens

    There is currently no way to specify a chunk to spawn chunks but there is a "natural" way by increasing the rate. I don't know how to save the chunks set by player without spamming a second file with information. Maybe I'll add this.
     
  20. Offline

    CDJ445544

    I'm still not sure what commands to use.... :(
     
  21. Offline

    JoshuaBehrens

    There is one command. This just checks wether the chunk you are in can spawn slimes.
     
  22. Offline

    CDJ445544

    then how the hell do u make it a slime chunk?
     
  23. Offline

    JoshuaBehrens

    I use the given rate out of the configuration (chance) and a world-seed related algo which returns whether slimes can spawn there.
    A specified command for this is not implemented yet.
     
  24. Offline

    galbatoo

    Code:
    all_can_command: true
    all_need_item: true
    permissions: OP
    image:
        directory: ./plugins/SlimeChunk/
        worlds:
            World:
                minz: -3
                maxx: 13
                maxz: 25
                minx: -8
            World One:
                minz: -3
                maxx: 32
                maxz: 35
                minx: -3
            Halloween:
                minz: -11
                maxx: 3
                maxz: 26
                minx: -42
        type: png
    affected_worlds: []
    chance: 10
    itemid: 341
    all_get_message: false
    unaffected_types:
    - CREEPER
    - GHAST
    - PIG_ZOMBIE
    trans_falseitem: You don't got the specified item (%i%).
    trans_spawnsnot: This chunk doesnt spawn slimes.
    trans_chunkenter: You entered a slime-spawning chunk.
    trans_chunkleft: You left a slime-spawning chunk.
    trans_spawns: This chunk spawns slimes.
    
    But not every chunk is a slime chunk!
    How i can make every one a Slime chunk
     
  25. Offline

    JoshuaBehrens

    Your configuration is right but you missed one point : affected_worlds. This is a list where all worlds which have to follow this config are in. Then it must work. In the next update it'll be easier.
     
  26. Offline

    galbatoo

    So?
    Ok now it said : "This chunk spawns Slimes"
    But i cant finde some

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  27. Offline

    JoshuaBehrens

    Slimes only spawn beneath y = 16 or your specified height.
     
  28. Offline

    galbatoo

    Sorry i dont understand can you pls post de config for spawn slimes everywere
     
  29. Offline

    galbatoo

    So? pls reply
     
  30. Offline

    JoshuaBehrens

    Why is there a ' ? '' ' Please post your configuration in a code-tag next time.

    And yes this should work.
     
  31. Offline

    CommanderGizmo

    It would appear that the trans_chunkleave option in the config file is ignored. I get the default text even after changing it. The others work properly however. I changed them all at the same time with the server down.

    You really might want to look at only saving the config data if it does not already exist. As it stands now, I cannot use the reload command with your mod but have to fully stop the server. This is a major handicap.
     

Share This Page