Skip to content

//set should try to set the block that the player is holding #2788

@ThatCuteOne

Description

@ThatCuteOne

The Problem

A lot of typing when you just quickly fill an area for example:
You have searched for a block in the creative menu and put it in your inventory.
Now you have to type //set <block_type_id> which takes a bit of time depending on how fast you type and if you know the block_id for that block.
I know that this isn't that big of a problem this would be more of a Quality of life feature since you use the //set command a lot.

A Solution

The //set command should try to set the block the player is holding when running it with no args.
This should have a specific priority:

typed block>mainhand>offhand>error

This would skip the whole typing part without removing functionality for more complex set commands.

Alternatives

The Command suggestions could prioritize blocks that the player has in their inventory with the following priority.

  • Hotbar 0-9(starting at 0)
  • Inventory 0-26 (starting at 26? can be reversed)

Honestly this could be implemented to all commands
I don't know if this is technicly possible that's up to you to answer

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions