Search results

  1. S

    code not working (null pointer exception)

    so I got an idea to make type of a block shuffle for me and my cousin, I tried methods and it gives me this error: [FATAL] Unhandled exception executing command "blockshufflestart" in blockshufflestart: java.lang.ClassCastException: class cn.nukkit.command.ConsoleCommandSender cannot be cast to...
  2. S

    Setting compass to player to get their area

    Hey guys, I am making a plugin which will set compass target to a near player, I know you can do tp and stuff, but not everyone has permission, thats why I want to do a compass so they can go to other people and review their stuff, there were no options for the target thing? Thank you!
  3. S

    Creating gui

    I am trying to create a gui for when a player left or right clicks a compass, I created a var for the gui and stuff but can't get a way to create the gui? Thank you! Code: @EventHandler public void onLeftClickBlockCompass(PlayerInteractEvent e){ Player p = e.getPlayer(); if...
  4. S

    test for a specific block under player

    hey guys(again) im making a plugin which tests the block under the player and then sets it to air, I have a problem with it this works: @EventHandler public void onunder(PlayerMoveEvent e){ Player p = e.getPlayer(); Block under = p.getLevelBlock().subtract(0, 1, 0).getLevelBlock()...
  5. S

    Bad world generation

    I only yesterday saw that the Nukkit world generation isn't so great, I got broken textures, unfinished biomes, and boy, dont even ask me about the nether, that was horrible!! Have this happened to anyone else? I hope they fix it because Nukkit can really become something big!!
  6. S

    [sorry this will be my last for a while] giving entities armor and ItemDamageEvent

    ok, this will be my last for a while, I just wanna know, I tried @EventHandler public void GiveEntityArmor(EntityDamageEvent e){ Entity ent = e.getEntity(); if (!(ent instanceof Player)){ // I tried stuff like ent.getInventory and getArmor and stuff but it doesn't work, thank you!! } } last, Is...
  7. S

    Get nearby entities

    Hi everyone again, sorry for posting AGAIN!! I just want to know is there a way to get nearby entities like in bukkit? In bukkit it is p.getNearbyEntities(4, 4, 4).forEach(e -> { //code here }); I cant find a way on Nukkit? Thank you!!
  8. S

    changing block type

    is there anyway to change the type of a block for example @EventHandler public void onPlace(BlockPlaceEvent e){ Block placed = e.getBlock(); placed. ?? } nothing works, I used to make Bukkit plugins but cant fin
  9. S

    get entity from creature spawn event

    Hey guys, sorry for asking again, i am now Trying to use creature spawn event, let me show you: @EventHandler public void onSpawn(CreatureSpawnEvent e){ Entity ent = e.getEntityType(); if (ent instanceof Zombie){ } } it says operator types isn't correct which I understand, but how can I match...
  10. S

    Nukkit 2.0 Alpha

    Hey everyone, Does anyone know where I can get Nukkit 2.0 alpha, I downloaded it a few days ago, but accidentally deleted it, When I try to download it now it gives me error 404, not found, it has more features than Nukkit 1.0 snapshot. Thanks!
  11. S

    Changing block

    Hey people of Nukkit, I just started making Nukkit plugins, I know Java, I've also created Alot of bukkit plugins, But I now have a problem changing a block type, I tried Block b = p.getTargetBlock(50); //this works and then I tried stuff like b.setType and stuff but it doesn't recognize it, do...
Top