#Dupe skript

1 messages · Page 1 of 1 (latest)

rare sail
#

I need to make it so that it checks the shulker and not dupe when it spots a nether star, i tried doing it but it didn't work

the skript so far:

command /dupe:
trigger:
if player's held item is air:
send "&cYou need to hold an item" to player

    else if player's held item is shulker box:
set {_shulker} to player's held item
    set {_nbt_data} to nbt of {_shulker}
open virtual shulker from player's held item to {_inv}
if {_inv} contains nether star:
send "This shulker contains: %loop-value% and cannot dupe" to player
    else if:
give player player's held item
send "this works!" to player
rare masonBOT
#

x8ight suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard