New Wither Boss Handling!

Discussion in 'Plugin Requests' started by MikaelOverby, Sep 9, 2021.

  1. Offline

    MikaelOverby

    Two ideas for my need:

    My first idea: "I don't want wither boss to be able to spawn or enter the overworld. There is always these players who want so ruin a big smp server before they are taken for their actions. Lots of builds and wither can easy destroy too much before killed. "

    * No wither boss spawn (or enter to the overworld through nether portal or end portal) in the overworld.
    * Wither can kill and destroy block as usual in nether and the end, but not in the overworld.

    My second solution idea: Wither can spawn in all dimensions as usual, but can only harm players.

    * Wither can spawn in all dimensions
    * Wither can not destroy blocks, sign, item frames, banner etc..
    * Wither can not kill animals but "players"

    I'm looking for one of those solutions. Need it very much and what is easiest to make is the same.

    Want the overworld to be safe and wither to be only spawnble in nether or the end.

    Name: No Wither Overworld?
    Version: 1.17.1 JAVA
    Command: An easy true/false command. could be /Witherboss - Overworld/nether/the end/reload - true/false. (reload the action from true to false or false to true). When its true the plugin is on, false is off and wither act like normal as vanilla.
     
    Last edited: Sep 12, 2021 at 5:00 PM
  2. Offline

    PastelRobots

    Wait so withers cannot be spawned in the overworld and when they're spawned in the nether or end they can't kill mobs or destroy blocks correct?

    Edit #1: Also please follow the format.
    I need to know what the name of the plugin will be?
    Commands or Permissions?
    Minecraft Version?

    For now, I'll do the latest version but let me know if you want it to be different.

    Edit #2: Bad news. bukkit API doesn't let withers trigger the entity change block event for some reason.

    So this:
    is unfortunately impossbile
     
    Last edited: Sep 10, 2021
    MikaelOverby likes this.
  3. Offline

    davidclue

  4. Offline

    MikaelOverby

     
    Last edited: Sep 12, 2021 at 12:40 PM
  5. Offline

    PastelRobots

    Well it's not exactly impossible but the current method I have isn't working so I'm able to stop it from damaging mobs but I can't stop it from breaking blocks. I have to find a work around
     
  6. Offline

    MikaelOverby

    Thank you very much sir for tanken your time to help!
     
  7. Offline

    ThomCrafter2511

    Hey, I made a plugin following your 1. idea. I called it WitherControland you can download it here: https://www.dropbox.com/s/bry132182wwfjav/WitherControl.jar?dl=0

    Commands:
    WitherControl on: Enables the WitherControl plugin
    WitherControl off: Disables the WitherControl plugin
    WitherControl Overworld: Toggles if you can spawn Withers in the overworld
    WitherControl Nether: Toggles if you can spawn Withers in the Nether
    WitherControl End: Toggles if you can spawn Withers in the End

    Permissions:
    WitherControl.admin: Let's you use all the WitherControl commands

    Additional Information:
    -This plugin only blocks the creation of Withers via the means of soulsand and wither skulls. You can still summon Withers in restricted areas with the /summon command.
    -Also keep in mind that for the restricted areas to take affect you have to run the command "/WitherControl on" at least once. On default no world is restricted and the plugin is disabled.

    That's about it. If you got any questions or found any bugs just let me know in this thread.
    Have fun.
     
  8. Offline

    PastelRobots

    You missed a few things! Mobs still can die to withers and blocks can still be broken
    OP requested these things below

    Also System#out#println() should be changed Bukkit#getLogger()#info()
     
  9. Offline

    ThomCrafter2511

    I indeed didn't miss those features, I left them out on purpose. The OP had 2 ideas but he also said that one of them would be enough.
    Quote: "I'm looking for one of those solutions. Need it very much and what is easiest to make is the same."
    Also you can't even put both his ideas in one plugin because the description of solution 1 says withers can't spawn in the overworld and in the second solution they can spawn everywhere which is a contradiction in it self.
    If the OP requests those features to be added I will of course add them gladly but I might need him to explain more clearly what he wants (because of the contradiction)

    On a different note: Why should I replace System.out.println() with Bukkit.getLogger().info()? I am used to the old 1.8 way of coding plugins and this seems rather new to me. What are the benefits of using that function?
     
  10. Offline

    timtower Administrator Administrator Moderator

    Because this one can be intercepted by other things and handled.
    The System.out.println should only be used for console applications.
    You could even use Plugin#getLogger
     
  11. Offline

    ThomCrafter2511

    Oh, I see. Thank you for your explenation timtower I will keep it in mind.
     
    MikaelOverby likes this.
  12. Offline

    MikaelOverby

    Thanks for the plugin, but its my fault for not beeing precise enough in what I meant.

    Wondered if anyone could create or know of a plugin for the mentioned question:

    My first idea: "I don't want wither boss to be able to spawn or enter the overworld. There is always these players who want so ruin a big smp server before they are taken for their actions. Lots of builds and wither can easy destroy too much before killed. "

    * No wither boss spawn (or enter to the overworld through nether portal or end portal) in the overworld.
    * Wither can kill and destroy block as usual in nether and the end, but not in the overworld.

    My second solution idea: Wither can spawn in all dimensions as usual, but can only harm players.

    * Wither can spawn in all dimensions
    * Wither can not destroy blocks, sign, item frames, banner etc..
    * Wither can not kill animals but "players"

    I'm looking for one of those solutions. Need it very much and what is easiest to make is the same.

    Want the overworld to be safe and wither to be only spawnble in nether or the end.

    Name: No Wither Overworld?
    Version: 1.17.1 JAVA
    Command: An easy true/false command. could be /Witherboss - Overworld/nether/the end/reload - true/false. (reload the action from true to false or false to true). When its true the plugin is on, false is off and wither act like normal as vanilla.

    If its needed to be two plugin that will work. im more a command writer guy and very new to plugin.
     

Share This Page