[MADE]Sky changer

Discussion in 'Archived: Plugin Requests' started by ceoepts, Jul 16, 2012.

  1. Offline


    I have been if it is or will be a sky changer plugin
    that makes that you can change the sky in worlds to end or nether like red sky in a normal world
    will be freaking AWESOME! :) Please replay.
  2. Offline


    Don't think you can do this with a plugin...? Not 100% sure as I'm still new to Bukkit.

  3. Offline


    Why you no format???
    Read the sticky!!
    **[READ ME FIRST]**

  4. Offline


    I did'nt know if it was one im sorry in if i am wanting to make a plugin i want the command my self. I dont see why that would be needed i think that modders want to be creative but is that wrong?
  5. I think you can use WorldEdit.
  6. Offline


    Just out of curiosity but how would you do this with world edit? The closest thing I can think of is biome changing, But I don't know if the nether classifies as a biome?

  7. Look it up idk
  8. Offline


    I looked it up Nether is a biome but as i can see it is only changing the grass/other changing stuffs i want to set the color in the sky to End/Normal/Nether like
    /setsky {Nether|End|Normal} {world}
  9. Offline


    Y U SO MAD?
    Format is an example post, not required.
    Its just easier to read and understand what the person wants.
  10. Offline


    please remove [req]

    Also you cant change the sky color. its a texture, probs ab able to be done with spout.
  11. Offline


    It would be good i you could read the hole post before saying that it does'nt work... As i said i want to set the sky to
    not change it to green or somthing
  12. Offline


    But It's client side, so you can't change it
  13. Offline


    Hmm No i think its possible! Only change the world to a nether world and make the generation still normal.
    Im sure it works!
  14. Offline


    Won't work, you would have to do this with a texture pack. A plugin wont change anything image wise.
  15. Offline


    Actually, this is possible, it could be done just how orebfuscator does it, sending the client fake packets, but instead of blocks, biome...

    The sky changes in between biomes... send the client fake packets saying its a "hell" biome or whatever...

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


    That's still nothing in the api, you see with orebfuscator it sends fake blocks to the server. You can't send pictures of fake sky to the server and expect it to change.
  17. Offline


    This is possible, but every other texture(except for the sky) would be change to default, as you'd need to modify their texture pack using packets.
  18. Offline


    Lol. That seems like a lot of coding work, I'm out. :(
  19. Offline


    i dont think sky is included in texture pack.
  20. Offline


    At least the end sky should be, or else it would only work if someone uses MCPatcher/Optifine.
  21. Offline


    Ok, stop with the bad knowledge.
  22. Offline


    Does that mean that... You'll do it? :D
  23. Offline


    Multiworld gives you the option of making three type of worlds;
    "Normal", "Nether" and "End".
    If you want sky black, like in End just make a End world, than use world edit + a biome changing plugin
    to change the biome to normal, eg; "desert", "swamp" or "forest".

    Than do what ever you want,
    one thing that may work, not sure if it will as I never got into using this command is using World Edit
    do //regenerate (Or something like that) that makes trees etc. So re-forest a Forst biome.
  24. Offline


    And do it in 50 lines.

    package de.bananaco.change;
    import net.minecraft.server.*;
    import org.bukkit.*;
    import org.bukkit.command.*;
    import org.bukkit.craftbukkit.entity.CraftPlayer;
    import org.bukkit.entity.Player;
    import org.bukkit.event.*;
    import org.bukkit.event.player.PlayerJoinEvent;
    import org.bukkit.plugin.java.JavaPlugin;
    public class WorldChanger extends JavaPlugin implements Listener {
        public void onPlayerJoin(PlayerJoinEvent event) {
            Player player = event.getPlayer();
            if(getConfig().get(player.getWorld().getName()) != null) {
                setDimension(player, getConfig().getInt(player.getWorld().getName(), 0));
        public void onEnable() {
            getServer().getPluginManager().registerEvents(this, this);
        public boolean onCommand(CommandSender sender, Command command,
                String label, String[] args) {
            if(args.length == 2) {
                if(Bukkit.getWorld(args[0]) == null) return false;
                org.bukkit.World w = Bukkit.getWorld(args[0]);
                for(Player p : w.getPlayers()) setDimension(p, getDimension(args[1]));
                getConfig().set(w.getName(), getDimension(args[1]));
                sender.sendMessage("Set world: "+w.getName()+" to dimension "+getDimension(args[1]));
                return true;
            return false;
        public int getDimension(String input) {
            try {
                int i = Integer.parseInt(input);
                if(i == 0 || i == -1 || i == 1) return i;
            } catch (Exception e) {}
            return 0;
        public void setDimension(Player player, int dimension) {
            CraftPlayer cp = (CraftPlayer) player;
            Packet9Respawn packet = new Packet9Respawn(dimension, (byte) 1, net.minecraft.server.WorldType.NORMAL, player.getWorld().getMaxHeight(), EnumGamemode.a(player.getGameMode().getValue()));
            org.bukkit.Chunk chunk = player.getWorld().getChunkAt(player.getLocation());
            for(int x=-10; x<10; x++)
                for(int z=-10; z<10; z++)
                    player.getWorld().refreshChunk(chunk.getX()+x, chunk.getZ()+z);
  25. Offline


    MobDisguise in 50 lines now! :D
    arcade_droid likes this.
  26. Offline


    gtfo :p
  27. Offline


  28. Offline


    Nevermind. sky <world> -1 is nether. sky <world> 0 is normal. sky <world> 1 is the end.

    When you die then respawn the sky is normal..

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


    I installed this plugin using the link from codename, and I used the plugin /sky world 1. The problem is that this command interferes with Essentials' command for /sky which changes the weather. Is there any way that you could change the command, or make it configurable in a text file?
  30. Offline


    Modify the plugin

Share This Page