Wither skeleton drops not working

  • 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!

DPPPPP

Member
Jul 22, 2023
27
0
1
My code succesfully reloads but when wither skeletons are killed they drop nothing. Can anyone help??

my code:

every 30 seconds:
spawn wither skeleton at location(69, 53, 0, world("world_the_end"))
set name of last spawned entity to "&5Wither Minion"
set max health of last spawned entity to 200
apply instant damage 255 to last spawned entity for 1 second
send "&5Wither Minions have spawned in the end" to all players
on death of wither skeleton:
set {_w1} to random integer between 1 and 100
cancel drops
if {_w1} is 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 12 and 13 and 14 and 15 and 16 and 17 and 18 and 19 and 20 and 21 and 22 and 23 and 24 and 25 and 26 and 27 and 28 and 29 and 30 and 31 and 32 and 33 and 34 and 35 and 36 and 37 and 38 and 39 and 40 and 41 and 42 and 43 and 44 and 45 and 46 and 47 and 48 and 49 and 50 and 51 and 52 and 53 and 54 and 55 and 56 and 57 and 58 and 59 and 60 and 61 and 62 and 63 and 64 and 65 and 66 and 67 and 68 and 69 and 70 and 71 and 72 and 73 and 74 and 75 and 76 and 77 and 78 and 79 and 80 and 81 and 82 and 83 and 84 and 85 and 86 and 87 and 88 and 89 and 90 and 91 and 92 and 93 and 94 and 95 and 96 and 97 and 98 and 99 and 100:
drop 1 gunpowder with name "&5withered Powder"
if {_w1} is 100:
drop 1 coal with name "&5&k123 &0Withered Summoning Essence &5&k123"
 
Your issue is that you've checked to see if {_w1} is 1-100 all at once when it can only be one value. If you want to make it a 50% chance you'll have to modify that line to be:

Code:
if {_w1} is between 1 and 50: # 1 and 60: 60%, 1 and 80: 80%, etc
   # Continue code here


If your intention is to make it drop all the time, remove the {_w1} random integer line entirely and the if statement.
You can also use:
Code:
chance of 60%:
for chances but will have to put a stop after each item if you want it to only be one drop.