Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Convert Large Item Amounts to Item Stacks in Minecraft
--Zeehkers local a = 86 --change number to amount of items -- ONLY CHANGE IF YOU KNOW WHAT YOU'RE DOING local b = 64*((a/64)-(math.floor(a/64))) if a/64 == math.floor(a/64) then for c = 1, #tostring(a/64), 1 do if string.sub(tostring(a/64), c, c) == "." then if math.floor(a/64) == 1 then print(string.sub(tostring(math.floor(a/64)), 1, c - 1).." stack") else print(string.sub(tostring(math.floor(a/64)), 1, c - 1).." stacks") end break end end elseif a < 0 or a ~= math.floor(a) or a ~= tonumber(a) then print("you did something wrong!!!") else for c = 1, #tostring(b), 1 do if string.sub(tostring(b), c, c) == "." then if math.floor(a/64) == 1 then print(math.floor(a/64).." stack and "..string.sub(tostring(b), 1, c - 1)) else print(math.floor(a/64).." stacks and "..string.sub(tostring(b), 1, c - 1)) end break end end end -- ONLY CHANGE IF YOU KNOW WHAT YOU'RE DOING
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
help with lua number input
test
фыв
anti.lua
test3
1
xml panel repeater
test
مكسر
test123
Please log in to post a comment.