Is there a way to check if block has NBT or Tile Entity?

Started by minheragon12345 on Wed, 06/09/2021 - 15:48

Topic category: Help with modding (Java Edition)

Last seen on 11:21, 31. Jul 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is there a way to check if block has NBT or Tile Entity?
Wed, 06/09/2021 - 15:48

I'm making a mod that has an item with the ability to instantly break the block I right-click then put the block in my inventory, But I don't want players to just take those blocks that have NBT/Tile entity already like Chest, Redstone Repeater,... or those blocks with right-click usage like trapdoors, doors,... I know I can just detect those blocks, but I want this to work with other mods too, and I cant detect other mod's blocks.