mascat102 Posted October 9 Share Posted October 9 I'm trying to change my multiplier skript to something else and I got this. on break: if player's tool is enchanted with multishot 1: add drops of event-block to {blocks::*} clear drops loop {blocks::*}: give loop-value to player give loop-value to player stop Though whenever I break a block it just uses the first block I broke. So if I broke wood first anytime I use a tool with multishot it will give me wood. I can't see the problem or why this is happening because I recently started learning skript. I am wondering if anyone knows how to fix it. Link to comment Share on other sites More sharing options...
gabinun Posted October 10 Share Posted October 10 (edited) The issue is that you're storing the drops in the list {blocks::*} but not resetting it before each break event, leading to it retaining only the first block's drops. You need to clear {blocks::*} at the beginning of the event handler. Here’s the corrected script: on break: clear {blocks::*} player's tool is enchanted with multishot 1 add drops of event-block to {blocks::*} clear drops loop {blocks::*}: give loop-value to player give loop-value to player stop Edited October 10 by gabinun Link to comment Share on other sites More sharing options...
mascat102 Posted October 10 Author Share Posted October 10 (edited) Thank you for telling me this, but now the problem is it doesn't work with fortune. Do you have any way to fix that? Edited October 10 by mascat102 Link to comment Share on other sites More sharing options...
gabinun Posted Sunday at 03:04 PM Share Posted Sunday at 03:04 PM I don't think this is a good way of making fortune, and I will not be trying to make a Skript for fortune. If you want an autopickup with fortune, getting the plugin is the best choice. Link to comment Share on other sites More sharing options...
Dead07 Posted Wednesday at 06:35 PM Share Posted Wednesday at 06:35 PM (edited) Give the player the amount of that destroyed block equivalent to their fortune level on that item so basically give (fortune level) (destroyed block) to player. Use this: https://skripthub.net/docs/?id=929 Edited Wednesday at 06:38 PM by ApexSplat Discord: Dead#6905 Love anime! 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