marcelo-mason / PreciousStones

Self-service protection for Minecraft servers
http://dev.bukkit.org/server-mods/preciousstones/
56 stars 66 forks source link

Suggestion: stand-or-sneak Flag #1061

Closed Omanoctoa closed 7 years ago

Omanoctoa commented 7 years ago

In recent testing of a new field block, designed to be placed on top of Beacons, I realized a missing flag that would be useful alongside the Surfaces flag. Basically, in addition to the sneak-to-place flag, a stand-or-sneak flag, that would allow a field to be placed in either standing or sneaking stance.

The reason for this is simple: blocks with interfaces (Beacons, Furnaces, Crafting Tables, Enchanting Tables, chests, ) do something when the player right-clicks on them. The sneak-to-place flag works just fine, to place field blocks on these surfaces, but if a player attempts to place the field on any other block without sneaking...it places a normal block. In survival, this means fancy Field blocks (our have custom recipes) are accidentally wasted. A workaround is to make players place blocks adjacent to an inventory'd block...but this has many drawbacks and often results in wasted field blocks. The Surfaces flag only effects the sneaking state if Sneak-To-Place is true, and ignores Surfaces if placed normally

Is it possible to add a flag to target both standing and sneaking stances to place a field? Ideally, this would only be used with the meta-autoset: false flag, otherwise it would effect all blocks of that type placed anytime.

Omanoctoa commented 7 years ago

Possibly fixed in PS 10.7.2 Build 20/21 (sneak-to-place-only flag)