SIsilicon/WorldEdit-BE

;barrel n to get a barrel with fullness n

Opened this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Problem

Specially but not only for computational redstone, it would be very handy to have a command that gives you a barrel filled with sufficient items so that, read by a comparator, it gives you a signal strength of n.

So for example
;barrel 1
would give you a barrel with 1 wood shovel, wheareas
;barrel 8
would give you a barrel with 14 shovels.

Barrels over other containers as it is lag friendly.
Shovels because they are not stackable, so when we need to break them, they won't spit out so many items, maximally 27.

Proposed Solution

;barrel n

Where 0 <= n <= 15

To know how many shovels or other type of stacks, you could use this function:

shovels ( n ) = ceil( max( n, 27(n-1)/14 ) )
Where n is the desired signal strength.

Alternatives

No response

Additional info

No response