#Check Fortune On Pickaxe

1 messages · Page 1 of 1 (latest)

flint gazelle
#

So I am trying to make it when lets say
you break a lapis block with a pickaxe with any level of fortune
it will just drop one lapis block I have tried

    cancel event
    if player's tool is a pickaxe of fortune:
        set event-block to air
        clear drops
        drop lapis block
    else:
        set event-block to air```
---------------------
And copied and pasted it but changing fortune 
to fortune 2: 
etc but when I do fortune 4 or higher
it doesnt do it.
All I am asking is if a pickaxe has fortune on it
and they mine a lapis block it will drop only 1 lapis block
but if the pickaxe has 0 fortune then it does not drop a thing.
surreal totem
#
    cancel event
    if player's tool is a pickaxe of fortune:
        if level of fortune of the player’s tool is 1:
            set event-block to air
            clear drops
            drop lapis block
        else:
            set event-block to air
    else:
        set event-block to air```
try that?
unborn narwhal
#

You literally clear the drops and drop 1 lapis block, what do you expect it to do?

#

You should scale the level of fortune with the amount of drops

flint gazelle
#

It should just drop 1 item

#

If you have a pickaxe with any level of fortune

unborn narwhal
#

So what’s your issue then?

surreal totem
flint gazelle
#

There is no issue just a question on how to make skript see if a pickaxe has any level of fortune and if it does have fortune then when they mine a specific block it will only drop 1 item

#

This is literally at the bottom of the text lol All I am asking is if a pickaxe has fortune on it and they mine a lapis block it will drop only 1 lapis block but if the pickaxe has 0 fortune then it does not drop a thing.

unborn narwhal
#

And what does it do now? Because if there’s no problems, i don’t know what you need help with…

#

You show no errors, you respond after 3 days, what do you expect from us? What isn’t working right now? Because if i read your messages, it’s doing exactly what you want it to do

small wind
flint gazelle
#

I can't make you understand if you can not read it properly,

#

All I am asking is if a pickaxe has fortune on it and they mine a lapis block it will drop only 1 lapis block but if the pickaxe has 0 fortune then it does not drop a thing.

small wind
#

I just said how to

#

He’s right you it’s need to check the fortune

flint gazelle
#

I don't know how to check the fortune

#

I can check 1 to 3

#

but 4 or higher it doesnt understand

small wind
#

If players tool had fortune

#

I think

#

Somthing like that

flint gazelle
#

So

#
    cancel event
    if player's tool is a pickaxe:
    if player's tool has fortune:
        set event-block to air
        clear drops
        drop lapis block
    else:
        set event-block to air```
#

oop

small wind
#

I think btw you don’t need the _ in lapis block

unborn narwhal
flint gazelle
#

I know but it doesn't matter much

#

Do I really need to put a question mark to prove it is a question when I say a literal question,

small wind
#

Or as red toofie said try if player's tool is a pickaxe of fortune:

flint gazelle
#

I will try those

small wind
#

He literally said how to do by saying we cart read when you’ve literally got told allready is saying smth

flint gazelle
flint gazelle
#

I am asking how to make skript understand if a pickaxe has any level of fortune and when it has fortune and mines a specific block it will drop just 1 item of my choice.

unborn narwhal
#

set level to level of fortune of item

flint gazelle
#

I will try that

unborn narwhal
#

then check if level is not 0

flint gazelle
#

How would I do that?

small wind
#

He just said

#

Bro read

#

If you cannot understand him don’t ask him for help

flint gazelle
#

No like

#

"set level to level of fortune of item" would this even count all fortune

#

Like fortune 4 to 5 etc

#

Doesn't exist in survival since 1 to 3 is normal it probably believes that is all there can be but there is higher

#

Cause I tried it if you can see at the first top part of the first msg,

#
    cancel event
    if player's tool is a pickaxe of fortune:
        set event-block to air
        clear drops
        drop lapis block
    else:
        set event-block to air```
#

I can set it to "if player's tool is a pickaxe of fortune 1:" and go to 2 and 3

#

but when I do 4 or higher it count's that as one .-.

small wind
#

Bro you clearly don’t listen he saying set it the value so you can get the value

unborn narwhal
#

Bro set a local var to the level of fortune

flint gazelle
#

Something like this if not I do not know I am not the best at skripting I am still a noobie ok on join: {blocksminedironblock::%player%} is not set: **set {blocksminedironblock::%player%} to 0** on mine of iron block: add 1 to {blocksminedironblock::%player%}

unborn narwhal
#

Bro i literally gave the code

#

Set a variable to the level of fortune on the tool

#

Idek what you’re tryin anymore cuz this is just a block counter

flint gazelle
#

How tf would I do that?

#

It is like saying to a cat go fly,

unborn narwhal
#

Bruh

#

set x to level of fortune of tool