How can i open a Gui with a block on my hand (and not in the floor)

Started by mrmaxi's on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i open a Gui with a block on my hand (and not in the floor)
Tue, 11/26/2024 - 18:31 (edited)

Hi!, so im making a BackPack for my mod, but i want it to open my custom inventory Gui WHEN you are selecting it on the inventory and then press right click,

but also when the block is placed in the floor, how can i do that???

Edited by mrmaxi's on Tue, 11/26/2024 - 18:31
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Triggers in creating a block…
Wed, 11/27/2024 - 12:06

Triggers in creating a block:
When block placed (Placing this block triggers procedure)

On block right clicked (When block is place and player right clicks it triggers procedure)

If u want it to open when u have it in hand its better to change in from block to item and to add procedure when player right clicks on block with this item it places a backpack block then