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

Started by BlazingMammoth on

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:
  • MCreator plugins:
  • Comments:
How do I make a block or item subtract only in survival and not creative when used?

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 07:34, 25. Oct 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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