Jump to content

Fortune Shovel


Pineapple_Lilly

Recommended Posts

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 by Pineapple_Lilly
Link to comment
Share on other sites

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

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...