#special Pickaxe

1 messages · Page 1 of 1 (latest)

celest tapir
#

In my box server there are Compressed items such as diamonds iron and wood, if i make a pickaxe that has a certain % chance of giving one of those per block mined is that possible? also if it is can someone help me make it

nova sonnet
#

You need a custom fortune skript

#

Lemme find it

#
    if gamemode is survival:
        set {_fortune} to the level of fortune on player's tool
        set {_no_bonus_chance} to 2 / ({_fortune} + 2)
        set {_rand_pick} to a random number between 0 and 1
        set {_num_drops} to 1
        if {_rand_pick} is greater than {_no_bonus_chance}:
            set {_num_drops} to a random integer between 2 and ({_fortune} + 1)
        clear drops
        if event-block is crying_obsidian:
            give {_num_drops} of Purple Dye to player
        if event-block is ancient debris:
            give {_num_drops} of netherite ingot to player
        if event-block is Stone: 
            give {_num_drops} of Cobblestone to player```
#

Change the event-blocks to the blocks you want

#

And the {_num_drops} of (item)

native badger
#

@nova sonnet look my help ticket pls

nova sonnet
#

I dont have acces💀

#

Tf you think💀

nova sonnet
nova sonnet
celest tapir
#

I only want it to apply to 1 pickaxe tho, is that possible?

#

@nova sonnet

nova sonnet
#

Yes

#

After the on mine: part

#

Add

#

If name of player’s hand held item is pickaxe named (name):

#

And add one extra tab on every line

celest tapir
#

ok

#

also, how would i customize the compressed items

#

change the event block and the drops?

#

oh

#

im dumb u said

#

ty

nova sonnet
#

xD

#

No worries no worries

celest tapir
#

where would i add the If name of player’s hand held item is pickaxe named (name):
And add one extra tab on every line

#

because im not finding

nova sonnet
#

I have made 2 box servers my self so if you need stuff dm me

#

Under on mine:

celest tapir
#

ok

#

AAAAAAAAAAA

#

i got 15 errors

nova sonnet
#

Oh noooo

#

Wait did you add spaces or tabs @celest tapir

celest tapir
#

im fixing that rn

#

now i have 1

#

thats the only one

nova sonnet
#

Wait i know it

#

If player is holding a pickaxe named (name)

celest tapir
nova sonnet
#

Add : after the line

celest tapir
#

now theres no error but all picks give those items even when it isnt named the certain thing

#

and all blocks drop them

celest tapir
#

@nova sonnet

#

all blocks drop cobble netherite and purple dye

#

no error

nova sonnet
#

Send entire code

celest tapir
#

on mine:
if player is holding a pickaxe named "&bCompressed Pickaxe":
if gamemode is survival:
set {_fortune} to the level of fortune on player's tool
set {_no_bonus_chance} to 2 / ({_fortune} + 2)
set {_rand_pick} to a random number between 0 and 1
set {_num_drops} to 1
if {_rand_pick} is greater than {_no_bonus_chance}:
set {_num_drops} to a random integer between 2 and ({_fortune} + 1)
clear drops
if event-block is crying_obsidian:
give {_num_drops} of Purple Dye to player
if event-block is ancient debris:
give {_num_drops} of netherite ingot to player
if event-block is Stone:
give {_num_drops} of Cobblestone to player

#

also it does it in creative as well

#

all picks, tools and even hand drops the items

#

do you know why?

#

@nova sonnet

nova sonnet
#

Im tryna sleep xD

celest tapir
#

oh my bad

nova sonnet
#

Dw

autumn beacon
nova sonnet
#

Dont ping me

autumn beacon
#

dont spoon feed ¯_(ツ)_/¯

native badger
#

#1124074858960146432

autumn beacon
#

@native badger dont go into other threads asking people to help you. Just be patient