Custom Mob Drops

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iGamingPyro

New Member
Feb 22, 2017
7
0
0
Skript Version: 2.2-dev23
Skript Author: Njol, Mirreski, bensku, nfell2009, joeuguce99, RealGatt, RoyCurtis, and tim740
Minecraft Version:
---
Full Code:
code_language.skript:
on death of creeper:
    set {_creeperdrop} to a random number between 1 and 5
    if {_creeperdrop} = 1:
        drop 1 tnt
        stop
    else:
        stop
       
on death of spider:
    wait 1 tick
    drop 1 obsidian at event-location

So I have tested both of the above ways of doing this. There are no errors, but it just doesn't work. I can't figure out why. If anyone can help that would be great.

Addons using:
SkQuery (3.22.1)
TuSKe (1.7.3)
 
code_language.skript:
drop 1 of tnt

Try this haven't tested it.
 
Skript Version: 2.2-dev23
Skript Author: Njol, Mirreski, bensku, nfell2009, joeuguce99, RealGatt, RoyCurtis, and tim740
Minecraft Version:
---
Full Code:
code_language.skript:
on death of creeper:
    set {_creeperdrop} to a random number between 1 and 5
    if {_creeperdrop} = 1:
        drop 1 tnt
        stop
    else:
        stop
    
on death of spider:
    wait 1 tick
    drop 1 obsidian at event-location

So I have tested both of the above ways of doing this. There are no errors, but it just doesn't work. I can't figure out why. If anyone can help that would be great.

Addons using:
SkQuery (3.22.1)
TuSKe (1.7.3)

Ok, for one, use percentages.
code_language.skript:
on death of creeper:
    chance of 20%:
        drop 1 block of tnt at location of victim
        stop
    else:
        stop
    
on death of spider:
    wait 1 tick
    drop 1 of obsidian at location of victim
For two, you can't just tell it to do something "somewhere". You need to be specific.

EDIT: Try 42 if block of tnt doesn't work. It then gives you a warning suggesting to use "blah blah blah" instead of IDs, then just use that.
 
Ok, for one, use percentages.
code_language.skript:
on death of creeper:
    chance of 20%:
        drop 1 block of tnt at location of victim
        stop
    else:
        stop
   
on death of spider:
    wait 1 tick
    drop 1 of obsidian at location of victim
For two, you can't just tell it to do something "somewhere". You need to be specific.

EDIT: Try 42 if block of tnt doesn't work. It then gives you a warning suggesting to use "blah blah blah" instead of IDs, then just use that.
It's just TNT or TNT block, not block of tnt.
 
Status
Not open for further replies.