WIP: Creative pickblock functionality (fixes #197) #4552
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#4552
Loading…
Reference in New Issue
No description provided.
Delete Branch "pickblock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
According to Minecraft Wiki:
Assigning actions to middle-click is impossible in MTE as of 5.9.1, so pickblock functionality is bound to the place key with a bare hand.
not_in_creative_inventory ~= 0
)_vl_pickblock
field of node def)NOTE: As of 5.8.1, MTE doesn't provide an API to change player's selected hotbar slot.
mcl_beds
mcl_beehives
mcl_brewing
mcl_cocoas
mcl_chests
mcl_doors
mcl_farming
mcl_flowers
mcl_mangrove
mcl_ocean
mcl_stairs
Testing
Nothing happens for:
Would be nice to give:
WIP: Creative pickblock functionalityto WIP: Creative pickblock functionality (fixes #197)Wait, we could have that control+pick lock (aux1 + pickblock?) by creating an itemstack from meta of the node, right...?
Make sure it works with item frames as well. Besides, wouldn't it been better idea to do a shortcut key for this?
Minetest comes with a fixed set of controls, so we can only use those.
Nothing happens with empty flowerpots too. They have an
on_rightclick
function, and that is logically prioritized over pickblock. That will require more than just a patch with a few one-liners, and I'm afraid I can't afford to do that in this PR, or else it will just become too cluttered.What if you utilize the
zoom
key? It's not like it's doing anything with empty hand, and we're hijacking it anyway.If not alone, then maybe as modifier... so if empty hand is placed, then first it's checked if zoom is pressed, and if it is, then run pickblock functionality and return.
bd1f86fe4c
to271606cf27