Jump to content

How do i blacklist items from /dupe?


Recommended Posts

command /dupe:
    trigger:
        if player's tool is diamond or iron or emerald or gold or iron or netherite:
        send "&c[ERROR] You cannot dupe this item." to player
    else:
        give player player's tool
        send "&4&lYou just duped &6&l%player's tool%"

This should work try it

also after the send lines do to player. Like

send "This is an example" to player

or

send "This is a broadcast that doesnt show in console" to all players

to make a broadcast that does not show up in console

Edited by Lapzzo

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

  • 2 years later...

if you want more of a complex thing u could try 

 

command /dupe <int=1>::
  trigger:
    set {_tool} to player's tool
    if {_tool} is air:
      send "&8&lL1f3&c&lSee1 &8» &aYou cannot dupe air!" to player
      stop
    else:
      if "%{_tool}%" contains "shulker box":
        set {_tag} to tag "tag;BlockEntityTag;Items" of nbt compound of {_tool} 
        if "%{_tag}%" contains "elytra" or "trident":
          send "&8&lL1f3&c&lSee1 &8» &aThis item is blacklisted." to player
          stop
      else:
      if {_tool} is a trident or elytra or dye:
        send "&8&lL1f3&c&lSee1 &8» &aThis item is blacklisted." to player
        stop
    give (arg-int * item amount of player's tool) of player's tool to player

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...