how to check if player gives an custom item via give command and cancel it?

Started by SparkleArts on

Topic category: Help with modding (Java Edition)

Last seen on 20:20, 18. May 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to check if player gives an custom item via give command and cancel it?

I need help with the Global Event Trigger "Command Executed".

 

Can someone show me how I check exactly which command is executed and which argument is being used?

I want to make an custom Item from my Mod not be obtainable with the give command.

Last seen on 22:51, 18. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should do it, but I…
Sat, 10/08/2022 - 23:28


This should do it, but I haven't tested it.

Last seen on 22:51, 18. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, that the give command,…
Sat, 10/08/2022 - 23:42

Oh, that the give command, not a custom command, which means you can't get the amount. In that case this should work:

Last seen on 22:51, 18. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I accidentally placed set…
Sat, 10/08/2022 - 23:53

I accidentally placed set local size to size + 1 inside the if statement, it needs to be outside it so it always increases.

Last seen on 20:20, 18. May 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
One question NerdyPuzzle:…
Sun, 10/09/2022 - 06:09

One question NerdyPuzzle:

Where I can found these pink procedure blocks?

Last seen on 20:20, 18. May 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh one thing you need to…
Sun, 10/09/2022 - 06:17

Oh one thing you need to notice:

inside of the wait block local variables are not supported.

Last seen on 22:51, 18. May 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's from goldorion's…
Sun, 10/09/2022 - 11:38

That's from goldorion's arraylist plugin. You should make the variables global then.