Hot Summer Deals are Here!
Celebrate with up to 90% off on 15,300 resources
04
Days
12
Hours
29
Mins
55
Secs

Need dev to cancel creature spawn event

Status
This thread has been locked.

Kevan

Premium
Feedback score
3
Posts
403
Reactions
177
Resources
0
I am having massive issues trying to stop mobs from spawning naturally. World guard cant even seem to do the job. Ive already tried changing all the possible settings in spigot, bukkit, and paper to disable natural mobs, but they still spawn as if in Minecraft vanilla.

I need someone to create a plugin (or modify the server jar itself) to simply cancel the CreatureSpawnEvent with spawn reason natural. From what Ive heard, it shouldnt take more than two minutes. I think $5 is fair, however if I find it works first time you send it ill pay $7.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

SpeedyDev

Feedback score
0
Posts
13
Reactions
2
Resources
0
Hello, I am making a plugin called MobManager, it is GUI based, once in, you can enable or disable natural mob spawning and spawner mob spawning, as well as toggle mobs individually on or off.

Is this what you are looking for?

Speedy Development.
 

Kevan

Premium
Feedback score
3
Posts
403
Reactions
177
Resources
0
Hello, I am making a plugin called MobManager, it is GUI based, once in, you can enable or disable natural mob spawning and spawner mob spawning, as well as toggle mobs individually on or off.

Is this what you are looking for?

Speedy Development.
not quite, looking for a very basic and lightweight solution
Ah okay when I get back tonight or tomorrow I'll do it for ya for free just pm me in about 6 or so hours
thanks, that's very nice of you. it would end just about all of my issues if you could get it working.
 

Shadow

Dev
Premium
Feedback score
2
Posts
424
Reactions
308
Resources
0
It is made for 1.8.8 spigot, tell me if you need it for another version.
 

Attachments

  • NoMobSpawn.zip
    2 KB · Views: 20

WillFTW

Feedback score
2
Posts
219
Reactions
98
Resources
0
literally it is something like:

@EventHandler
public void onMobSpawn(MobSpawnEvent e) {
if (!e.getReason().equals(SpawnReason.CUSTOM){
e.setCancelled(true);
}
}
 

YourPanda

Retired Moderator
Supreme
Feedback score
34
Posts
3,287
Reactions
1,310
Resources
0
Can't you just do /gamerule doMobSpawning false? That should be natural mobs only, I think...
 

WillFTW

Feedback score
2
Posts
219
Reactions
98
Resources
0
He wants just natural mob spawning gone, that gamerule disables all mob spawning.
 

Tylerzz

Premium
Feedback score
13
Posts
959
Reactions
515
Resources
0
Change the SpawnReason to what ever reason you want blocked.
Code:
 @EventHandler
    public void onCreatureSpawnEvent(CreatureSpawnEvent e) {
        if (e.getSpawnReason() == CreatureSpawnEvent.SpawnReason.SPAWNER) {
            e.getEntity().remove();
        }
    }
 

Kevan

Premium
Feedback score
3
Posts
403
Reactions
177
Resources
0
Can't you just do /gamerule doMobSpawning false? That should be natural mobs only, I think...
either way, ive tried that yes and it does not work at all. Ive tried doing this to stop mobs on a fresh server I made to test these things to see if it was something on the main server that was conflicting with it, but mobs still spawn regardless.[DOUBLEPOST=1478822196][/DOUBLEPOST]
Remember devs there are 10s of different reasons that mobs can spawn (chunk loading, spawners, other plugins etc) so just checking for one spawn reason might not cut it.

Either way the plugin that Shadow made should work. Also the fact that OP hasn't replied implies it did as he would have come back if there was a problem.
It doesnt. Ive messaged him about it but havent gotten anything back yet.[DOUBLEPOST=1478822305][/DOUBLEPOST]
Change the SpawnReason to what ever reason you want blocked.
Code:
 @EventHandler
    public void onCreatureSpawnEvent(CreatureSpawnEvent e) {
        if (e.getSpawnReason() == CreatureSpawnEvent.SpawnReason.SPAWNER) {
            e.getEntity().remove();
        }
    }
yes, that is what I think Shadow did but Im not entirely sure. If it was what he did, that didnt work. If it wasnt, Id love to try it. Do I need a separate plugin to do that or could I change it somewhere else ?
 
Last edited:
Status
This thread has been locked.
Top