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 October 13 Share Posted October 13 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 October 16 Share Posted October 16 (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 October 16 by ApexSplat Discord: dead_is4 Anime Enthusiast! Link to comment Share on other sites More sharing options...
mascat102 Posted Saturday at 01:12 AM Author Share Posted Saturday at 01:12 AM I would want this to be something on top of fortune. It would just multiply the drops of everything you mine, including fortune. Link to comment Share on other sites More sharing options...
Dead07 Posted Monday at 03:07 PM Share Posted Monday at 03:07 PM On 10/19/2024 at 2:12 AM, mascat102 said: I would want this to be something on top of fortune. It would just multiply the drops of everything you mine, including fortune. Then get the player's fortune level and multiply it by the multiplier Discord: dead_is4 Anime Enthusiast! 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