CoolAlex4734 Posted July 27, 2022 Share Posted July 27, 2022 Hi Everyone! I have a question. I'm trying to make it so that when a mob is killed they drop something when a player has a certain item, item name, & enchantment, and I don't know how to do that. Here is the code I've done \/ \/ \/ on death: if victim is pig: #here is where I want it to be detected. clear the drops set {_drop} to porkchop named "&ePorkchop" drop {_drop} at victim's location Thanks! Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time. - Thomas Edison Keep Developing! Link to comment Share on other sites More sharing options...
enawec Posted July 28, 2022 Share Posted July 28, 2022 on death: if victim is pig: loop all items in player's inventory: loop-item is [item name] named "[choice of item name]" of [enchant] [enchant level in number form not letter form]: clear the drops set {_drop} to porkchop named "&ePorkchop" drop {_drop} at victim's location i have no clue whether this will work or not i haven't tested it. if it doesnt tell me the console error. IGN: enalecks Discord: enalecks Hobbies: Gaming (Minecraft, Apex Legends, and some other irrelevant ones,) Guitar (Electric), Watching YouTube, Playing Strucid (yes on Roblox but it's fun), Skateboarding, owning Discord servers, and Listening to Music (Avenged Sevenfold, Slipknot, and Five Finger Death Punch.)</> I might have forgotten some but I'll add them when they dawn on me. -ALEX- Link to comment Share on other sites More sharing options...
CoolAlex4734 Posted July 31, 2022 Author Share Posted July 31, 2022 So, for some reason it gave me this error \/ \/ \/ \/ Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time. - Thomas Edison Keep Developing! Link to comment Share on other sites More sharing options...
enawec Posted July 31, 2022 Share Posted July 31, 2022 2 hours ago, CoolAlex4734 said: So, for some reason it gave me this error \/ \/ \/ \/ give me a second to revise my skript IGN: enalecks Discord: enalecks Hobbies: Gaming (Minecraft, Apex Legends, and some other irrelevant ones,) Guitar (Electric), Watching YouTube, Playing Strucid (yes on Roblox but it's fun), Skateboarding, owning Discord servers, and Listening to Music (Avenged Sevenfold, Slipknot, and Five Finger Death Punch.)</> I might have forgotten some but I'll add them when they dawn on me. -ALEX- Link to comment Share on other sites More sharing options...
enawec Posted July 31, 2022 Share Posted July 31, 2022 2 hours ago, CoolAlex4734 said: So, for some reason it gave me this error \/ \/ \/ \/ here you are: on death: if victim is pig: if attacker's held item is wooden sword: if name of attacker's held item is "&eThe Butcher's Sword": if level of fire aspect of attacker's tool is 3: clear the drops set {_drop} to porkchop named "&ePorkchop" drop {_drop} at victim's location IGN: enalecks Discord: enalecks Hobbies: Gaming (Minecraft, Apex Legends, and some other irrelevant ones,) Guitar (Electric), Watching YouTube, Playing Strucid (yes on Roblox but it's fun), Skateboarding, owning Discord servers, and Listening to Music (Avenged Sevenfold, Slipknot, and Five Finger Death Punch.)</> I might have forgotten some but I'll add them when they dawn on me. -ALEX- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now