Jump to content

SavageCabage619

Member
  • Posts

    26
  • Joined

  • Last visited

Posts posted by SavageCabage619

  1. im trying to write a skript, but whenever i load it, my game freezes

    code:

    on player jump:
        loop all players:
            spawn bat or cat or chicken or cod or cow or donkey or fox or horse or mooshroom or mule or ocelot or parrot or pig or puffer fish or rabbit or salmon or sheep or skeleton horse or snow golem or squid or strider or tropical fish or turtle or villager or wandering trader or bee or cave spider or dolphin or enderman or iron golem or llama or piglin or panda or polar bear or spider or wolf or zombified piglin or blaze or creeper or drowned or elder guardian or endermite or evoker or ghast or guardian or hoglin or husk or magma cube or phantom or piglin brute or ravager or shulker or silverfish or skeleton or slime or stray or vex or vindicator or witch or wither skeleton or zoglin or zombie or zombie villager or enderdragon or wither or giant or zombie horse or illusioner

    • Haha 1
  2. so im trying to write a skript, so whenever we jump a random mob spawns.

    What i am trying to do is something like:

    on player jump:

        spawn {Mob}

    and the {mob} will spawn one of all mobs. because I tried doing

    on player jump:

        chance of _% 

            spawn _ mob

        chance of _%

            spawn _mob

    and so on.

    But doing that sometimes spawns multiple mobs at once and sometimes doesnt spawn mobs at all.

  3. 16 minutes ago, AgentGamerPro said:

    if youre just going to spawn any mob, try
     

    
    set {Mob} to random mob out of all mobs
    summon {Mob}

    or use random integers instead of chances
     

    
    set {MobChance} to random integer between <MIN> and <MAX>

     

    how would i use the set {Mob} to random mob out of all mobs

  4. so im trying to make a code so whenever i jump, i spawn a random mob

    so i have it so that every mob have a certain amount of chance of spawning, but sometimes when i jump, i spawn 2 mobs not 1. I want it to spawn 1 mob only.

    Here is my code if you need (its long):on player jump:
        loop all players:
            chance of 4%:
                spawn bat
            chance of 4%:
                spawn cat
            chance of 4%:
                spawn chicken
            chance of 4%:
                spawn cod
            chance of 4%:
                spawn cow
            chance of 4%:
                spawn donkey
            chance of 4%:
                spawn fox
            chance of 4%:
                spawn horse
            chance of 4%:
                spawn mooshroom
            chance of 4%:
                spawn mule
            chance of 4%:
                spawn ocelot
            chance of 4%:
                spawn parrot
            chance of 4%:
                spawn pig
            chance of 4%:
                spawn puffer fish
            chance of 4%:
                spawn rabbit
            chance of 4%:
                spawn salmon
            chance of 4%:
                spawn sheep
            chance of 4%:
                spawn skeleton horse
            chance of 4%:
                spawn snow golem
            chance of 4%:
                spawn squid
            chance of 4%:
                spawn strider
            chance of 4%:
                spawn tropical fish
            chance of 4%:
                spawn turtle
            chance of 4%:
                spawn villager
            chance of 4%:
                spawn wandering trader
            chance of 4%:
                spawn bee
            chance of 4%:
                spawn cave spider
            chance of 4%:
                spawn dolphin
            chance of 4%:
                spawn enderman
            chance of 4%:
                spawn iron golem
            chance of 4%:
                spawn llama
            chance of 4%:
                spawn piglin
            chance of 4%:
                spawn panda
            chance of 4%:
                spawn polar bear
            chance of 4%:
                spawn spider
            chance of 4%:
                spawn wolf
            chance of 4%:
                spawn zombified piglin
            chance of 4%:
                spawn blaze
            chance of 4%:
                spawn creeper
            chance of 4%:
                spawn drowned
            chance of 4%:
                spawn elder guardian
            chance of 4%:
                spawn endermite
            chance of 4%:
                spawn evoker
            chance of 4%:
                spawn ghast
            chance of 4%:
                spawn guardian
            chance of 4%:
                spawn hoglin
            chance of 4%:
                spawn husk
            chance of 4%:
                spawn magma cube
            chance of 4%:
                spawn phantom
            chance of 4%:
                spawn piglin brute
            chance of 4%:
                spawn ravager
            chance of 4%:
                spawn shulker
            chance of 4%:
                spawn silverfish
            chance of 4%:
                spawn skeleton
            chance of 4%:
                spawn slime
            chance of 4%:
                spawn stray
            chance of 4%:
                spawn vex
            chance of 4%:
                spawn vindicator
            chance of 4%:
                spawn witch
            chance of 4%:
                spawn wither skeleton
            chance of 4%:
                spawn zoglin
            chance of 4%:
                spawn zombie
            chance of 4%:
                spawn zombie villager
            chance of 4%:
                spawn enderdragon
            chance of 4%:
                spawn wither
            chance of 4%:
                spawn giant
            chance of 4%:
                spawn zombie horse
            chance of 4%:
                spawn illusioner
     

  5. 8 minutes ago, BanditEagle said:

    I am not sure how well this will work, but there doesn't seem to be any errors with this. Try this and tell me.

    
    on damage:
      attacker is a mob
      victim is a player
      push victim backwards with force 1000

     

    the thing is, force is not knockback and i dont think its exactly knockback 1000 more like knockback 10

  6. On 4/23/2021 at 12:08 AM, Windooows said:

    Hi there? Are you looking for a skript but can't seem to find it anywhere? Then this might be the pog place for you today 😉 
     

    I will be coding / skripting skripts for players just for fun! 

    If anything is too complicated for me, then I will probably not be able to code it...

    I will be taking this challenge. Post your skript idea / thing you need down below 

     

    - windooows 

     

    can you make a skript so all mobs will give you knockback 1000000?

  7. 10 hours ago, rosathorn said:

    Make sure to learn & study Skript on your own! But I was in your shoes once, too, so I will provide you with the code you would need.

     

    
    on damage of player:
    	attacker is a spider
        apply weakness 1 to the victim for 10 seconds


    This should work. I will explain for you, so you can at least learn from this.

    'On damage of player' is the event, which is self explanatory.
    'Attacker is a spider' - ensuring the effect is ONLY given if it's a spider. You can change this on you own.

    'apply weakness 1 to the victim for 10 seconds' - Also self explanatory, change this to the effect you want.

    thanks!

  8. On 4/7/2021 at 3:42 PM, Jockerlight said:

    I am bored!

    Send Skripts you Need and I will past them in the topic 😉

    I will make them and you will get them in like some hours later 😉

    I need a skript for whenever a mob attacks you, you get levitation 99 for 2 seconds. Also a skript that increases mob speed to around speed 10 effect. 

    and another to give a random level 1000 potion effect whenever we jump

     

    thanks

  9. 56 minutes ago, Chloe30k said:

    on walk on cobblestone:
        chance of 5%:
            loop blocks in radius 5 around player:
                if loop-block is air:
                    if block above loop-block is air:
                        add loop-block's location to {_locs::*}
                        set {_loc} to random element of {_locs::*}
                        spawn a zombie at {_loc}

    I tried doing 

    on walk on block

    but it don't work

    i want my script to work on all blocks not just one, any ideas?

  10. 15 minutes ago, _Tarna_ said:

    Oh lol. Is it working fine now?

    Also note that the skript omga provided spawns a ravager at a certain location every 15 seconds rather than spawning a ravager at all players every 20 seconds like you wanted. 

    yes ik i fixed it

×
×
  • Create New...