How to add procedure for item minecraft:air?

Started by BlueRedCommand on Thu, 04/23/2020 - 07:25

Topic category: Help with modding (Java Edition)

Last seen on 20:31, 19. May 2020
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to add procedure for item minecraft:air?
Thu, 04/23/2020 - 07:25

Like the title says, I need a way to add procedure for vanilla items or be more specific- to air as item, and not as the block minecraft:air (right now it's only items, but it will be even better to know how to add those for block too).

Last seen on 14:11, 15. Jun 2021
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Why would you do that?…
Thu, 04/23/2020 - 14:10

Why would you do that? Having air as an item is impossible because air is a block. You can have it as "item" only if dropped on the ground or in an inventory.

Last seen on 20:31, 19. May 2020
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is an item of air…
Fri, 04/24/2020 - 13:17

There is an item of air actually, you can give yourself with command in the chat or in command block- /give <PLAYER NAME> minecraft:air, and this will work, just this item hasn't any visible texture or name, but it's work.

If i'd understood you wrong and you meant that blocks don't have item, like that you have block minecraft:dirt but not item minecraft:dirt, so I'm not sure at this, but I think that you are wrong.

Last seen on 16:33, 2. Jun 2021
Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The item "minecraft:air"…
Fri, 04/24/2020 - 14:38

The item "minecraft:air" refers to the empty itemstack. When you do "/give @p minecraft:air", you're given nothing, and not a nameless, textureless item. If you want to add a procedure to the item "minecraft:air", you can check if the player is holding nothing instead.