LazoYoung / CraftGames

Minecraft Paper plugin that enables you to make custom minigame scripts.
MIT License
2 stars 1 forks source link

Check Entity existence #54

Closed jupiter1390 closed 4 years ago

jupiter1390 commented 4 years ago
  1. Able to check Entitytype(mob type) and Name

  2. Association with Area; if not associated with area it will check every entities in game world

  3. Check entity number

LazoYoung commented 4 years ago
  1. You can check the specific mob's type and its name using Bukkit API:
    
    import org.bukkit.entity.*

Mob boss = MobModule.spawnMob("ZOMBIE", "tag123").get(0) EntityType type = boss.getType() String name = boss.getName()



2. Do you mean you need a function to retrieve the entire mobs inside the boundary of area?
Sure, I can make one if my guess is right.

3. Is this related to Q.2?
jupiter1390 commented 4 years ago

2 - yes 3- both (returning the number of entities)

LazoYoung commented 4 years ago

Got it. I'm working on this.