How do I make a block or item subtract only in survival and not creative when used?

Started by BlazingMammoth on Wed, 06/08/2022 - 18:39

Topic category: Help with modding (Java Edition)

Last seen on 18:41, 8. Jun 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a block or item subtract only in survival and not creative when used?
Wed, 06/08/2022 - 18:39

Sry for the confusing title, lemme explain.

So basically what I want is when an item or block is used in survival, it takes away 1 of that object, but be unaffected in creative, as it would in the base game. Currently for me, it subtracts an object in all modes. How do I fix this?

Last seen on 09:03, 13. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could use codition to…
Sat, 06/11/2022 - 03:40

You could use codition to check if the player is in creative or not. It's in the Player procedures tab

Here the link of the image

https://ibb.co/vVRNDkD