Home›Java›Mods›WartController
WartController
ModsJava

WartController

Java mod listed for Minecraft 1.7–1.9. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Description:
I'm uploading this because someone asked me to.
It is a extremely simple one to stop nether warts growing on non nether world.

Installation:
Simply put WartController.jar in your plugins folder.

Source:
Code (Text):
package com.vk2gpz.wartcontroller;

/*
    This file is part of WartController

    WartController is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

import org.bukkit.*;
import org.bukkit.block.*;
import org.bukkit.event.*;
import org.bukkit.event.block.*;
import org.bukkit.plugin.*;
import org.bukkit.plugin.java.*;

public class WartController extends JavaPlugin implements Listener {
    public void onDisable() {
        PluginDescriptionFile pdFile = getDescription();
        getLogger().info(pdFile.getName() + " version " + pdFile.getVersion() + " is Disabled");
    }

    public void onEnable() {
        getServer().getPluginManager().registerEvents(this, this);
        PluginDescriptionFile pdfile = getDescription();
        getLogger().info(pdfile.getName() + " version " + pdfile.getVersion() + " is Enabled");
    }

    @EventHandler(priority = EventPriority.MONITOR)
    public void onNetherWartGrow(BlockGrowEvent e) {
        Block block = e.getBlock();

        if (block.getType() == Material.NETHER_WARTS && block.getBiome() != Biome.HELL) {
            e.setCancelled(true);
        }
    }
}
 

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

WartController is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 198 times (via Spigot). Download it and open it directly in the game.

Explore more