#(newNuriset) No way
31 messages · Page 1 of 1 (latest)
(newNuriset) No way
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
@low ingot if you enable debug mode there will be more answers
...
[13:50:05 INFO]: [Citizens] Retrying spawn of 63{TestZombie, HUSK} later, SpawnReason.PLUGIN. Was loaded true is loaded true
[13:50:05 INFO]: [Citizens] Stored 63{TestZombie, HUSK} for respawn from NPCNeedsRespawnEvent
...
what does Was loaded true is loaded true means
also tried to re-spawn them with NPCNeedsRestartEvent but npc keep go state of 'need respawn'
@low ingot looks like they couldn't be added to the world
maybe a plugin conflict or world settings issue?
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.level()" because "handle" is null
now this occurs
seems i put wrong cluses on entity remove
nothing but calling NPC.spawn();
sorry, I am not able to help with zero context
you need to provide more context
tried to spawn npc with API by my plugin's command
amd there was no specific error or warning in log
@low ingot please try to debug yourself then. I don't have access to your code
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@low ingot
or can i post some of them here you need to debug?
I don't have time to look through a whole lot of code but sure
Bukkit.getLogger().info("EntityType: " + ae.getEntityType()); // WITHER_SKELETON
NPC npc = CitizensAPI.getNPCRegistry().createNPC(ae.getEntityType(), ae.getClass().getSimpleName()); // NPC spawned with null EntityType
boolean spawn = npc.spawn(location);
Bukkit.getLogger().info("Spawned: " + spawn); // false
for some reaseon EntityType forced to null
ok thanks
Thread closed as resolved.
was my issue xd
Thread was manually reopened by @low ingot.