Loot from Boss in "Chest"

Discussion in 'Show Off' started by Kuragrad, Aug 17, 2017.

  1. Kuragrad

    Kuragrad New Member

    Joined:
    Aug 14, 2017
    Messages:
    1
    Likes Received:
    0
    I modified this simple mob which I found on the net.

    Now after the boss's death a ender crystal is created which you can open RMB or kill using sword with loot3 for higer drop chance.

    It can be also used for spawning random item loot on serwer.

    Maybe someone will use it

    Required ProtocolLib and Lib's Disguises (work with free Lib's Disguises 9.1.2)

    Tested on spigot 1.11.2

    [​IMG]

    Mobs:
    TestBoss and lootchest

    Code:
    TestBoss:
      Type: WITHER_SKELETON
      Display: '&6Kosciej'
      Health: 1000
      Damage: 15
      BossBar:
        Enabled: true
        Range: 60
        Color: YELLOW
      AIGoalSelectors:
      - 0 clear
      - 1 meleeattack
      - 2 RandomLookAround
      - 3 LookAtPlayers
      - 4 RandomStroll
      - 5 Float
      AITargetSelectors:
      - 0 clear
      - 1 hurtbytarget
      - 2 players
      Skills:
      - message{cooldown=20;m="<mob.name><&co> None may challenge the Skeleton King!"} @PlayersInRadius{r=40} ~onCombat >0 0.2
      - message{m="<mob.name><&co> Ahahahahah! Die, <trigger.name>!"} @PlayersInRadius{r=40} ~onPlayerKill >0 1
      - skill{s=SummonSkeletons} @Self 0.1
      - skill{s=SmashAttack} @Target >0 0.2
      - message{m="&bBoss <mob.name>&r zostal zabity przez &a<trigger.name>&r"} @PlayersOnServer ~onDeath
      - delay 15
      - summon{mob=loottest;amount=1;noise=5} @Self ~onDeath #Enter loot mob name in "mob=loottest"------------------------------------------------------------------------
      Equipment:
      - KingsCrown:4
      - SkeletonKingSword:0
      Drops:
      Options:
        AlwaysShowName: true
        MovementSpeed: 0.2
        MaxCombatDistance: 60
        FollowRange: 60
        PreventOtherDrops: true
    
    loottest:
      Type: silverfish
      Display: '&6-=[&5Boss Loot&6]=-'
      Health: 50
      DamageModifiers:
      - FIRE 0
      - FIRE_TICK 0
      - LAVA 0
      Faction: Guard
      Options:
        NoAI: true
        Despawn: false
        Silent: true
        AlwaysShowName: true
        Disguise: ender_crystal
        MovementSpeed: 0.002
        PreventOtherDrops: true
      Skills:
      - suicide ~onInteract
      - effect:particlesphere{p=witchMagic;a=40;radius=1;y=0.5} @Self ~onTimer:5
      - skill{s=looteffect} @self ~onSpawn
      - sendactionmessage{m="<mob.name><&sp>&6<mob.hp>&8/&6<mob.mhp>"} @Trigger ~onDamaged
      Drops:
      - TestDrops
    Skill:

    Code:
    looteffect:
      Skills:
      - effect:particlesphere{particle=flame;amount=999;radius=2} @self
      - effect:particlesphere{particle=flame;amount=999;radius=5} @self
      - effect:particletornado{p=flame;color=#FF00FF;a=10;mr=2;rs=2;sh=3;cs=0;h=2;d=20;md=10;i=1} @Origin
    DropTable:

    Code:
    TestDrops:
      Conditions:
      - playerwithin 40
      Drops:
      - exp 100
      - heroesexp 200
      - SkeletonKingSwordtest 1 1
      DropsPerLevel:
      - exp 10
    https://pastebin.com/rs2ZhSQD
     
    #1
    Last edited: Aug 17, 2017
  2. Panda80

    Panda80 New Member

    Joined:
    Oct 16, 2017
    Messages:
    6
    Likes Received:
    2
    Very cool! Thank you very much! This was such a great help, loot boxes are just a pain but boss loot has got to be one of the coolest things i saw. Keep on coding! You're doing great! ^^
     
    #2
  3. Corefainge

    Corefainge New Member

    Joined:
    Nov 27, 2019
    Messages:
    1
    Likes Received:
    0
    cool idea but it's outdated? can't kill/open the ender_crystal :s
     
    #3

Share This Page