#(zenithsociu) How to open default gui anvil, smithing_table...

23 messages · Page 1 of 1 (latest)

rigid turtle
#

Is there a method to open the default anvil in the event?

on player right clicks entity:
  - if <context.entity.is_player>:
    #open anvil (gui default with feature default)

Thank for help!

tropic prism
rigid turtle
tropic prism
#

(zenithsociu) How to open default gui anvil, smithing_table...

tired cipher
#

inventory open d:generic[holder=anvil]

#

though i dont know about smithing table or newer inventories, these are the only inventory types i found
ANVIL, BREWING, CHEST, DISPENSER, ENCHANTING, ENDER_CHEST, HOPPER, WORKBENCH

rigid turtle
tired cipher
#

you can use <inventorytag.inventory_type> to check the inventory type then just open a generic inventory with that holder

tropic prism
#

If this is resolved then

tall tuskBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@rigid turtle

rigid turtle
# tall tusk

Wait a minute, I have 2 more questions:

  • How to disable player right clicking on anvil block
  • How to open crafting table (I tried inventory open d:crafting[holder=crafting_table] failure)
tired cipher
#

- inventory open d:workbench

#

on player right clicks anvil: - determine cancelled

tall tuskBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@rigid turtle

tired cipher
#

./resolved

tall tuskBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@rigid turtle

rigid turtle
#

For job blocks. I can open its gui

- inventory open d:generic[holder=blast_furnace]
#or
- inventory open d:blast_furnace

But I can't use its vanilla function.
Is there a way to use vanilla function when opening job blocks:

  • Blast Furnace
  • Brewing Stand
  • Cartography Table
  • Grindstone
  • Loom
  • Smithing Table
  • Smoker
  • Stonecutter
tropic prism
#

#1125861457205149760 generally you can just use the same thread as it's the same issue, but in this case since Discord broke on this thread can stick with the new one

tall tuskBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@rigid turtle