How to ignore Silk Touch enchantment?

Started by Sweddy on Sun, 06/24/2018 - 09:53

Topic category: Help with modding (Java Edition)

Last seen on 16:40, 4. Oct 2018
Joined Sep 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to ignore Silk Touch enchantment?
Sun, 06/24/2018 - 09:53

I have a block with different variants, and I don't want players to be able to obtain these variants into their inventory in any way. The Silk Touch enchantment ruins this. You wouldn't want players to obtain the active version of a Furnace in regular gameplay, for example.

So how then do I make blocks ignore Silk Touch?

Last seen on 00:36, 3. Mar 2020
Joined Sep 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Try when player starts…
Thu, 06/28/2018 - 03:17

Try when player starts breaking block spawn gem (item you want it to drop) add block x y z air Unfortunately the block will break instantly. I am trying to do this for my mod too.