What's new

Does PreventRandomEquipment work?

penswen

New Member
Joined
Dec 22, 2016
Messages
14
I'm having trouble with some of my mobs on my server. Some of them spawn with the items of the mobs they replace instead of nothing. I have tried using 0, air, and a dummy item in the equipment slots but none have worked every time. Here is an example of a mob with this issue. I tried using the ADD function in RandomSpawns, but it failed to work for me and I was confused about how to use the bugfix.

Code:
MagmaWraith:
  Type: SKELETON
  Display: '&cMagma Wraith'
  Health: 20
  Damage: 1
  Armor: 0
  Options:
    Despawn: true
    FollowRange: 25
    MovementSpeed: 0.22
    PreventOtherDrops: true
    PreventRandomEquipment: true
    AttackSpeed: 0
    Silent: true
  Modules:
    ThreatTable: true
    ImmunityTable: true
  AIGoalSelectors:
  - 0 clear
  - 1 meleeattack
  - 2 randomstroll
  - 3 lookatplayers
  - 4 movetowardstarget
  - 5 float
  AITargetSelectors:
  - 0 attacker
  - 1 players
  Drops:
  - exp 30 1
  - MagmaBody 1 0.1
  - 385 1 1
  - 385 1 0.5
  - 377 2 1
  - 377 1 0.5
  DropsPerLevel:
  - exp 10 1
  - 385 1 1
  - 377 2 1
  DamageModifiers:
  - DROWNING 5
  - BLOCK_EXPLOSION 2
  - ENTITY_EXPLOSION 2
  - MAGIC 1.5
  - THORNS 0.25
  - LAVA -1
  - FIRE_TICK -1
  - FIRE -1
  - HOT_FLOOR -1
  - CONTACT 0
  Equipment:
  - 0:0
  - 0:1
  - 0:2
  - MagmaBody:3
  - MagHead:4
  - 0:5
  LevelModifiers:
  - Health: 5
  - Armor: 1
  - MovementSpeed: 0.01
  Skills:
  - potion{type=INVISIBILITY;duration=2000000;l=1} @self ~onSpawn
  - skill{s=MagmaBall} @target ~onEnterCombat
  - skill{s=MagmaBall} @target ~onTimer:130
  - ignite{ticks=100} @target ~onAttack 0.5
 
Top