MRPGNPC

MRPGNPC 1.2.5

new skill SectorAttack

- SectorAttack;distance-10-10/Mob;15;2;10

The mob faces the fan-shaped area with the midpoint line.
This part means: SectorAttack;the entites within 10 meters of the mob ,limit amount 10,and the only type affected is ’Mob‘ ;The Angle of the left and right sides of the sector is 15,radius is 2, damage is 10


Target chooser :
if you want independent target chooser with one skill, you can write a list in skill line:
ex:
- Lightning;distance-10-5/Players,Mob,Camp:NPC


Summon lightning to radius 10&midpoint is mob's circle,to 5 Player/Mob/Camp is NPC's mob 's positions
if you want to use different version skin, the geometry id should be geometry.mrpgnpc
like this:
1623897884089.png

Attachments

support 1.10&1.12 version skin/geometry
MoveLimitDistance: 16
then if your mob move out the circle with 16 radius and the point is it's spawnpoint,it will clear it's hate/damage pool and go back to his spawnpoint
Skill 's split fomat is not : now it is ; now!





Skills:
- Effect;distance-0-1-10/Player;2;100;2
- Effect;distance-0-1-10/Camp:Kingdom;1;100;5

Use / To split target simplifier and creature type simplifier.
If you want this skill(Like effect,burn,damage) will just use on Player,You can add /Player after the target simplifier,Like line 1.
If you want use on Camp:Kingdom and SpawnPoint is Kingdom,add /Camp:Kingdom, Point:Kingdom
Better ai checkJump(I used copy mobplugin's , now i make some change of this method.

It can walk on the single layer snow/wood carpet or something
include the can through block and if the location's chunk is not loaded,it won't spawn!
There's a new file in plugin folder named 'worldRandomSpawn.yml'

If you want to spawn mob randomly in a world,use this.

Ex:
YAML:
world:
 - HumanSlayer:10:50:50:60:2:10000
It means the level named world.Will spawn humanslayer mob.Every player's nearby will spawn.The max amount for every player's nearby is 10.The detect amount distance is 50(player is the centre).The spawn distance is 50(the number bigger,the distance of mob spawn may the far).If the mob of randomSpawn's nearby has no player(Distance is 60),it will kill it self and despawn.The spawn cooldown is 2s.The probability of this mob is 100.00(Here is 10000 = 100.00%,50.00% is 5000)
Fix bugs and change the type of command
the old format is use ':' to split
for some commands need ':' like give special damage item
now use ';' to split
When player join the server or change level to npc's level.the npc's skin will disappear..so weird.
And i add teleport x+1 z+1 then it works.Idk why!!!!

In a word,bug fixed,so happy!!!!
Top