so im trying to make the skeletron ( normal one ) drop an item that i created but i can't seem to make the code work. SO here's the code: http://pastebin.com/EDUDXT8R Any Help Would Be Very Apreaciated Thx .
Why do you need to code it? If it's just an additional item, I think you can define it in the Drops section of Skeletron.ini, something like [Drops] 1-2 MyItem=100 That's 100% to drop 1-2 of the item on death, in addition to the default drops. EDIT: I'm not 100% sure that "Skeletron.ini" is the right file name, but you can always add it to Skeletron Head.ini instead. For the hardmode version, there's Skeletron Prime.ini
Alright, to modify the items a NPC drops, find its .ini file. Find Skeleton's .ini file, then modify the drops in that file, then save that file into your modpack. The code you created is not needed.
yeah it is i tried with only the .ini but it didint worked... about a year ago i managed to change the zombie drop but i dont remember the code for it
You didn't forget to rebuild the modified ini into a mod and enable it in-game, did you? Check the rest of the entries. Here's how the Fireball mod adds a chance for a Circle of Bone drop to Skeletron Head.ini : Code: [Stats] npcSlots=6 width=80 height=102 type=35 aiStyle=11 timeLeft=750 damage=32 defense=10 soundHit=2 soundKilled=2 lifeMax=4400 displayName=Skeletron scale=1 noGravity=True noTileCollide=True boss=True value=50000 [Buff Immunities] Poisoned=True On Fire!=True Confused=True Cursed Inferno=True [Drops] 1 Circle of Bone=25