[LIB] [1.7] Remote entities - Next generation NPC library [No support]

Discussion in 'Resources' started by kumpelblase2, Nov 10, 2012.

Thread Status:
Not open for further replies.
  1. macguy8 Nope, only through trying out or looking at nms code.
     
  2. Offline

    DevRosemberg

    kumpelblase2 Kump, is it possible to turn every pet into a Baby, like Sheep, Pig, Wolf, Chicken, Ocelot etc, i have a PetManager, Pet Interface and an abstract class BasePet to handle this but i want to do it like you would normally with ((Chicken)entity.getBukkitEntity()).setBaby();

    But just getting the type of the entity if it is possible to automatically make the pet a baby.
     
  3. Offline

    DevRosemberg

  4. Offline

    iFamasssxD

    Is the API working for the 1.6.4 movement? Enderdragons really dont seem to respond to any of my code and the withers respond a bit better than the dragons.
     
  5. Offline

    acecheesecr14

    Amazing lib! Is there a way we can set Armour? Sorry if I have missed something.
     
  6. acecheesecr14 You can use the bukkit api as usual.

    iFamasssxD Because both don't use the normal movement api, so pathfinders won't work. This might change in the next minecraft release though, as far as I can see.
     
  7. Offline

    iFamasssxD

    kumpelblase2 What is the best way to make the EnderDragon move? Im looking to make it more aggressive so it doesnt just fly around the top of players and never really swoop in.
     
  8. iFamasssxD Create your own one that mimics it.
     
  9. Offline

    darkness1999

    Hello kumpelblase2

    I'm getting an error (although my code does only exist of two lines so far :O)

    Code:
                EntityManager manager = RemoteEntities.createManager(this);
                RemoteEntity entity = (RemoteEntity) manager.createEntity(RemoteEntityType.Zombie, Bukkit.getWorld("world").getSpawnLocation());
    I use the latest build (#128)
     
  10. Am I supposed to hack into your server to get the logs and then read the error or how do you think I should fix it without the actual error?
     
  11. Offline

    darkness1999

  12. Fixed in new snapshot.
     
  13. Offline

    Quaro

  14. Offline

    darkness1999


    Thanks.

    I wonder how I can save my remote entity so that it is not removed, whenever I unload the chunk my remote entity is in.

    I tried to use .save(); but that doesn't help. I'm not sure if this is a bug... so some additional information: there is no error.

    EDIT: (Idk but maybe the end causes problems, because my remote entities are spawned there)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  15. Offline

    lewysryan

    I can't get it to work in 1.7 It will not load. It remains red in the plugin list. Please help :(
     
  16. Offline

    Bart

    lewysryan likes this.
  17. Offline

    lewysryan

  18. Offline

    darkness1999

    kumpelblase2

    Can you please help me with my problem kumpelblase2 (look above)?
     
  19. Offline

    572

    Where can I find the 1.6.4 version?
     
  20. Offline

    Scizzr

    Just did a test, and made a simple command handler and in it, I have
    Code:
    EntityManager em = new EntityManager(this);
    em.createEntity(RemoteEntityType.Pig, player.getLocation());
    
    which results in
    Code:
    [23:10:01 WARN]: java.lang.NoSuchFieldException: d
    [23:10:01 WARN]:        at java.lang.Class.getDeclaredField(Unknown Source)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.utilities.ReflectionUtil.getOrRegisterField(ReflectionUtil.java:240)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.entities.RemotePigEntity.<init>(RemotePigEntity.java:35)
    [23:10:01 WARN]:        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [23:10:01 WARN]:        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    [23:10:01 WARN]:        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    [23:10:01 WARN]:        at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.entities.RemoteBaseEntity.spawn(RemoteBaseEntity.java:277)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.ChunkEntityLoader.spawn(ChunkEntityLoader.java:124)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.ChunkEntityLoader.queueSpawn(ChunkEntityLoader.java:114)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.EntityManager.createEntity(EntityManager.java:137)
    [23:10:01 WARN]:        at de.kumpelblase2.remoteentities.EntityManager.createEntity(EntityManager.java:113)
    [23:10:01 WARN]:        at co.atrophy.pets.commands.Cmd_Pet.execute(Cmd_Pet.java:35)
    [23:10:01 WARN]:        at co.atrophy.pets.commands.Cmd_Pet.onCommand(Cmd_Pet.java:27)
    [23:10:01 WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    [23:10:01 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199)
    [23:10:01 WARN]:        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:547)
    [23:10:01 WARN]:        at com.earth2me.essentials.EssentialsPlayerListener$5.run(EssentialsPlayerListener.java:607)
    [23:10:01 WARN]:        at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:58)
    [23:10:01 WARN]:        at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
    [23:10:01 WARN]:        at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:612)
    [23:10:01 WARN]:        at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273)
    [23:10:01 WARN]:        at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:560)
    [23:10:01 WARN]:        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:467)
    [23:10:01 WARN]:        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)
    
    Is this a known issue and if not, where can I report this?
    It doesn't break the entity creation, but it's definitely not good. Assuming that 'd' method is something related to path finding...

    Thanks for a nice plugin/API. :)



    Edit: Appears to only affect pigs.
     
  21. Offline

    chikenlitle99

    It is just perfect, it will update to 1.6.4 or 1.7? :)
     
  22. Offline

    Bart

  23. darkness1999 I don't know what causes it, haven't had that much time to look at such things.

    Scizzr Should be fixed in the latest snapshot(s)
     
  24. Offline

    SuperOriginal

    I'm trying to use your library to make peaceful mobs attack players when they attack them. Could you set me up on that?
     
  25. Offline

    qlimax5000

    kumpelblase2
    Title says: "1.6.4 | 1.7.2 compatible"
    Changelog says: "Updated to 1.6.4"
    Error when loading plugin on server says: "Server not 1.6.4, disabling"
     
  26. Offline

    macguy8

  27. Offline

    qlimax5000

  28. supercube101 A mob needs two desire to be or at least fighting back: a targetting desire and an attacking desire.
    The targeting desire is the one which selects an appropriate target and the other one does the movement and the actual attack.
    To select the attacking entity you could use DesireFindAttackingTarget and for the attacking part DesireMoveAndMeleeAttack should be fine.
     
Thread Status:
Not open for further replies.

Share This Page