-

Discussion in 'Resources' started by Deleted user, Jul 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Deleted user

    -
     
    Last edited by a moderator: Jan 20, 2015
    Skyost, Scullyking, jpjunho and 2 others like this.
  2. Offline

    Deleted user

    -
     
    Last edited by a moderator: Jan 20, 2015
    ampayne2 likes this.
  3. Offline

    Scullyking

    Random stuff, yayay
     
  4. Offline

    malandrix_bunny

    Add stuff to main post instead of making another?
     
    NonameSL and KingFaris11 like this.
  5. Offline

    Deleted user

    -
     
    Last edited by a moderator: Jan 20, 2015
  6. Offline

    xTrollxDudex

    Recognize that there's no one that will do this...

    -

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 9, 2022
    Garris0n, Skyost and TheSpherret like this.
  7. Offline

    ChipDev

    Love this random post, it gets peoples creativity on.

    Code:Java
    1. getServer().getPluginCommand("Test").
    2. setPermissionMessage(ChatColor.BLUE + "No!");

    Set permission message ^^

    Oh no almost out of ideas. Be back in a jiffy when i check teh JD'z. and teh internetz.
    :D

    Code:java
    1. Entity bat = e.getPlayer().getWorld().
    2. spawn(e.getLocation, Bat.class);
    3.  
    4. bat.setPassenger(e.getPlayer());

    Fly around on a bat ^^

    Code:java
    1. //when player types /troll (args)... (Don't want to have to do onCommand :p)
    2.  
    3. if(args.length == 1) {
    4. if(args[0] != null) {
    5. Location loc = getServer().getPlayer(args[0]).getLocation().subtract(0,1,0);
    6. Block block = args[0].getWorld().getBlockAt(loc);
    7. block.setTypeId(9); //Lava!
    8. }
    9. }
    10.  

    ^^ Don't want to know.

    These are stupid ideas, that have no testing. Don't get mad if they don't work, I just put them down. :p
     
    codex01 likes this.
  8. Offline

    Jalau



    Don't want to say thats useless, but actually this is just code which doesn't require a post in the resource section, also this thread is meant for nms = net.minecraft.server = no Bukkit API Code :)
     
  9. Offline

    ChipDev

    Jalau
    Didn't see [NMS] oops :p
     
  10. Offline

    Necrodoom

    Wouldnt setFireTicks be prefered here though? Being non-NMS and accepting a time argument.

    -

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 9, 2022
  11. Offline

    RawCode

    everything rendered clientside, it will be much more effective to sent entity update packet to specific player, then setting global state of entity.
    this allows to "make endermen\wolf\anything angry\change color\animation\collar" without actually changing internal state and behaivior of entity.
     
  12. Offline

    Deleted user

    -
     
    Last edited by a moderator: Jan 20, 2015
  13. Offline

    Qukie

    You can refresh the stroll path of a Entity that inherits from EntityCreature by invoking the (Snapshot: 1.7.10-R0.1) method "bQ". It'll try 10 times to find a random point (max distance: 6 blocks horizontally and 3 blocks vertically) and weight the cost to walk there. If a point was found a new path will be calculated, which will be your new stroll path... I guess that no one will ever use this(Can you beat the useless level? ;)).
     
  14. Offline

    xTrollxDudex

    Object useless = entity.a;
     
    Skyost likes this.
  15. Offline

    Garris0n

    Object useless;
     
    Skyost and xTrollxDudex like this.
  16. Offline

    Deleted user

    -
     
    Last edited by a moderator: Jan 20, 2015
    Skyost, Jalau and Garris0n like this.
  17. Offline

    Plugers11

    How can i do more range go to location of mob ? with NMS
     
Thread Status:
Not open for further replies.

Share This Page