[FIX]EnderSMP v1.1 - Provoke endermen by looking at them [1337]

Discussion in 'Inactive/Unsupported Plugins' started by matejdro, Sep 30, 2011.

  1. Offline

    Pixiio

    This fucking plugin is AWESOME! :D
     
  2. Occasionally, although I've not yet found a 'trigger' for it ........
     
  3. Offline

    SilentStray

    Seems to be occasionally so far.
     
  4. Offline

    Orcem12

    @matejdro

    Good work. ^.^


    (1000th message.)
     
  5. Offline

    pivotgamer84

    Could you make it so they come after you if, and only if you look away?
     
  6. Offline

    SilentStray

    How do they react in the new 1.0? Haven't had the time to test (besides testing the 1.0 minecraft server which is very buggy atm)
     
  7. Offline

    pivotgamer84

    I haven't played 1.0
    I'm staying at 1.8.1 because Mojang destroyed Minecraft after 1.8.1 with the NPCs and altering the enchantments, and by adding an "end" to the game.

    The way they should be reacting in 1.8.1 is this:
    1) Look directly at endermen, they freeze
    2) Look away after, and they teleport towards you (Provided you weren't wearing a pumpkin helmet)
    3) They hit you until you die

    The way you would find if the enderman is under the cursor is this:

    Iterate through the blocks using the player's line of sight.

    If their is an enderman near the player (within 50 blocks) , check his location.

    If his block x and block z are equivalent to the player's line of sight block x and z, continue, else, stop checking with this entity.

    Now, if the line of sight y is greater than or equal to the enderman's block y, and the line of sight y is less than or equal to the enderman's block y plus his height, proceed to the freezing.

    Store the enderman's object as a variable, and when the player changes his location (including pitch and yaw), run another block iteration. If the stored enderman is found, the player is still looking at the enderman otherwise, the enderman should attack, unless the player has a pumpkin helmet on, in which case they should just un-freeze.
     
  8. Offline

    matejdro

    Endermen appears to work in 1.0,. so I think I can call this plugin discontinued.

    @pivotgamer84 It's working similarly to your description
     
  9. Offline

    Deleted user

    Fantastic. An error!
    Code:
    [WARNING] Task of 'EnderSMP' generated an exception
     java.lang.IllegalStateException: Start block missed in BlockIterator
         at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:167)
         at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:254)
         at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:289)
         at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:94)
         at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:116)
         at com.matejdro.bukkit.endersmp.EnderSMP$1.run(EnderSMP.java:36)
         at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
         at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
         at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
         at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    [WARNING] Task of 'EnderSMP' generated an exception
     java.lang.IllegalStateException: Start block missed in BlockIterator
         at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:167)
         at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:254)
         at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:289)
         at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:94)
         at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:116)
         at com.matejdro.bukkit.endersmp.EnderSMP$1.run(EnderSMP.java:36)
         at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
         at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
         at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
         at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    I agree with you soo much.

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

    Taketheword

    Simple, effective plugin! Worth the download and drop.
     
  11. Offline

    mario00037

    Error in Console.
    Code:
    22:22:46 [WARNING] Task of 'EnderSMP' generated an exception [0m
    java.lang.IllegalStateException: Start block missed in BlockIterator [0m
    at org.bukkit.util.BlockIterator.(BlockIterator.java:167) [0m
    at org.bukkit.util.BlockIterator.(BlockIterator.java:254) [0m
    at org.bukkit.util.BlockIterator.(BlockIterator.java:289) [0m
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:85) [0m
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:107) [0m
    at com.matejdro.bukkit.endersmp.EnderSMP$1.run(EnderSMP.java:33) [0m
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) [0m
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) [0m
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) [0m
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) [0m
    22:22:46 [WARNING] Task of 'EnderSMP' generated an exception [0m
    java.lang.IllegalStateException: Start block missed in BlockIterator [0m
    at org.bukkit.util.BlockIterator.(BlockIterator.java:167) [0m
    at org.bukkit.util.BlockIterator.(BlockIterator.java:254) [0m
    at org.bukkit.util.BlockIterator.(BlockIterator.java:289) [0m
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:85) [0m
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:107) [0m
    at com.matejdro.bukkit.endersmp.EnderSMP$1.run(EnderSMP.java:33) [0m
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) [0m
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) [0m
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) [0m
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) [0m
     
  12. Offline

    PatrickFreed

    Has this been patched in vanilla mc or is this plugin still required?
     
  13. Offline

    matejdro

    I'm not completely sure. Endermen seems to work much better, but sometimes, they still don't respond properly.
     
  14. Offline

    5000 People

    ok ill guess ill remove it.

    - 5000 people did this
     
  15. Offline

    Bligzar

    Awesome plugin! Working great. Is moving to BukkitDev an option? :p
     

Share This Page