@FisheyLP Yeah, I just cancelled the event if a custom spawned entity is within it. Works perfectly :) Thanks for the help guys!
@CraftCreeper6 Is there some way to keep it loaded with bukkit?
Ok, so for my plugin, I made it so I could create custom entities by adding an entity to a hashmap, and assigning it an id. When I spawned the...
I remember in 1.7.10, this function made it so the mobs name would be always visible no matter what.
Even though I did mob.setCustomNameVisible(true), the custom name only shows if I hover over the mob. My bukkit version is 1.8.3, and my client is...
@teej107 It's ok, I just finished my custom mob spawning mechanic.
Ok, I think I'll go with a custom mob spawning system. But the thing is, if I want to add multiple locations to a configuration file, how would I...
@Hawktasard I know there's an event called CreatureSpawnEvent, but that event is only triggered when a creature actually spawns in. I want an...
@Konato_K Is it possible that there's something like a MobPrespawnEvent?
Is there any way to allow mobs to spawn in broad daylight, or a well lit area? I'm trying to make it so monster spawners can spawn mobs anywhere.
You're saying I should do e.setHealth(0D)?
You can only set a mob's health anywhere from 0 to 20. Also, the (currentHP - hp) thing is for customHP, not its actual health.
@teej107 Ok, so I found out that this only occurs if the mob is wearing armor. If the mob isn't, then it automatically dies. Is this a bug?...
@teej107 No.... what's really weird is that the mob dies if I run the code a second time.
For SOME reason, when I set a mob's HP to 0, it's still alive. e.setHealth(0);...
Line 13 in my first block of code. I already created an instance of hpmanager in my onEnable. public void onEnable(){...
Well... I'm making a plugin where you can spawn mobs with custom hp, and in my command class, there seems to be an error when adding a newly...
Here are some problems I found. package me.euromancy2; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.Command;...
Just make it so whenever a player hits another player with that sword, it checks the player's health. If the player's health is lower than n, then...
Yep. Booleans that are available to your entire class can be toggled by any player on the server who has access. Using a HashMap or an ArrayList...
Separate names with a comma.