Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow item numbers to be less than 1 #31

Open
vytskalt opened this issue May 2, 2021 · 4 comments
Open

Allow item numbers to be less than 1 #31

vytskalt opened this issue May 2, 2021 · 4 comments

Comments

@vytskalt
Copy link

vytskalt commented May 2, 2021

Is your feature request related to a problem? Please describe.

The StaticGuiElement doesn't allow the number of items to be less than 1.

Describe the solution you'd like

Allow the number of items to be less than 1.

This is what happens when you do this:
image
It's a pretty cool effect, so that's why I would like to use it.

@vytskalt vytskalt added the enhancement New feature or request label May 2, 2021
@Phoenix616
Copy link
Owner

Phoenix616 commented May 2, 2021

Pretty sure using non-standard numbers can lead to odd behaviour with items in inventories hence why I blocked them. That would require some research if all supported versions can do this without issues.

@vytskalt
Copy link
Author

Pretty sure using non-standard numbers can lead to odd behaviour with items in inventories hence why I blocked them. That would require some research if all supported versions can do this without issues.

You're right, it can cause some glitches. But in my opinion, it would still be good if there was an "unsafe" method to do this.

@Phoenix616 Phoenix616 added help wanted and removed enhancement New feature or request labels Nov 29, 2021
@RedstoneFuture
Copy link

RedstoneFuture commented Jan 4, 2022

A zero as a number can be usefull for come GUI design situations, but if it's deprecated / unsafe by minecraft, the using of it is questionable. One more design-problem: you are already not able to use the "1" as numer. So if you would like visualize a number, you may display "0", "2" , "3" ... but not "1". Non-standard numbers are red in all ways, I think. This can be a problem in your GUI designs too.

Which kinds of glitches we get with non-standard numbers and which kinds of non-standard numbers are possible?

@vytskalt
Copy link
Author

vytskalt commented Jan 4, 2022

A zero as a number can be usefull for come GUI design situations, but if it's deprecated / unsafe by minecraft, the using of it is questionable. One more design-problem: you are already not able to use the "1" as numer. So if you would like visualize a number, you may display "0", "2" , "3" ... but not "1". Non-standard numbers are red in all ways, I think. This can be a problem in your GUI designs too.

Which kinds of glitches we get with non-standard numbers and which kinds of non-standard numbers are possible?

-127 to 127 is possible I think. If the number is 0 or negative then it can disappear from your inventory when clicking on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants