Pineapple_Lilly Posted August 18, 2020 Share Posted August 18, 2020 (edited) Can someone help me with a skript for shovels with fortune? I know nothing about skript and this is all I have. command /createshovel <integer>: trigger: give player 1 of diamond shovel with fortune {integer} set nbt {fortune} of player's tool to {integer} on break: lore of player's tool contains "Fortune": cancel event set {_c} to a random number between 1 and nbt {fortune} of player's tool drop {_c} of event-block at location of event-block Edited August 18, 2020 by Pineapple_Lilly Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 18, 2020 Share Posted August 18, 2020 Next time you should ask in the Skript Category. Also when sending code, you should either send it in a site like pastebin.com or format it correctly. You should also send any errors you get when asking for skript help. Also what are you trying to do? To give a player an item with an enchant, just do give player diamond shovel of fortune 5. Are you trying to make a custom fortune or something? Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Pineapple_Lilly Posted August 18, 2020 Author Share Posted August 18, 2020 I am trying to make fortune shovels drop more dirt. Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 18, 2020 Share Posted August 18, 2020 2 minutes ago, Pineapple_Lilly said: I am trying to make fortune shovels drop more dirt. You could get the enchantment level with this (https://skripthub.net/docs/?id=929) and just multiply the drops by the enchantment level + 1. +1 because if they had fortune 1, it would still drop 1. Or however you want the system to work. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- 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