Hi there! I'm looking to take a scoreboard score and round it up if x - floor(x) ≥ 0.5. I tried multiply then divide by one-hundred but that always rounds down.
I'm thinking this:
new scoreboard score, copy of original
x' / 100
x' * 100
x - x'
I don't even think that would work as it would turn 560 into 51.
So I'm told this isn't feasible without a mod or a plugin, as it would require at least 2 command blocks per password, which would get out of hand pretty quickly.
Lately I've wanted to replace all plugins on my server with command block contraptions, and I think that a block locker "mod" would be a great replacement for Lockette.
In case you're unfamiliar with locked chests, how they work is a chest with the "Lock" tag set to a certain string makes it impossible to open that chest without holding an item named to the value of the Lock tag. For example, running
/setblock ~ ~-1 ~ chest 0 {Lock:"password123"}
would make it impossible to open that chest without an item in your hand named password123.
Here's how it would work: have command blocks check the CustomName of a chest when it's renamed and if so, set the "Lock" tag to the same value. So from a user's perspective, to lock a block they have to name a chest and give an item the same name.
Let me know if this is possible. I think it'd be tricky given the "set the 'Lock' tag to the same value" part, but I could be wrong here.
Type of Graphic: Server banner 3D or 2D: 2D Resolution (in px): 468x60 Text (if needed): YASMS Secondary Text (if needed): Yet Another Minecraft Server Colors: #00FF00 (text) Theme: none Font: Helvetica (preferably not thin) Size (in px): 468x680 Background (if it's an image, provide a link): default obsidian texture, tiled Have you Donated? And if so how much?: No, but if I could, I would Who would you like to complete your work? (Leave blank for anyone): Any other details:
0
So the answer is:
0
Hi there! I'm looking to take a scoreboard score and round it up if x - floor(x) ≥ 0.5. I tried multiply then divide by one-hundred but that always rounds down.
I'm thinking this:
new scoreboard score, copy of original
x' / 100
x' * 100
x - x'
I don't even think that would work as it would turn 560 into 51.
I'm at a loss here.
0
Here's a crash report that I got while attempting to join a server. I was using OptiFine version 1.10_HD_U_B6.
0
So I'm told this isn't feasible without a mod or a plugin, as it would require at least 2 command blocks per password, which would get out of hand pretty quickly.
0
Hello!
Lately I've wanted to replace all plugins on my server with command block contraptions, and I think that a block locker "mod" would be a great replacement for Lockette.
In case you're unfamiliar with locked chests, how they work is a chest with the "Lock" tag set to a certain string makes it impossible to open that chest without holding an item named to the value of the Lock tag. For example, running
would make it impossible to open that chest without an item in your hand named password123.
Here's how it would work: have command blocks check the CustomName of a chest when it's renamed and if so, set the "Lock" tag to the same value. So from a user's perspective, to lock a block they have to name a chest and give an item the same name.
Let me know if this is possible. I think it'd be tricky given the "set the 'Lock' tag to the same value" part, but I could be wrong here.
0
I was using Forge build #1722. What build are you usin where it works?
0
Now that OptiFine supports Forge, I'd like to point out that this a Forge bug, not an OptiFine bug.
Using ANY mods at all crashes Forge right now.
0
Not bad!
A few tips though:
Count down instead of up. If everyone sees "1...2..." on their screen they won't know that the fight starts on 3.
The players can press "start the fight" and then press "Custom Stuff". This starts the fight in the "Custom Stuff" room! That's a bug.
Spell check on the books can go a long way.
0
Does anyone still have this? I need this program and I can't find it anywhere but the broken Dropbox link.
Great stuff BTW, hoping you'll make it free software someday.
0
3D or 2D: 2D
Resolution (in px): 468x60
Text (if needed): YASMS
Secondary Text (if needed): Yet Another Minecraft Server
Colors: #00FF00 (text)
Theme: none
Font: Helvetica (preferably not thin)
Size (in px): 468x680
Background (if it's an image, provide a link): default obsidian texture, tiled
Have you Donated? And if so how much?: No, but if I could, I would
Who would you like to complete your work? (Leave blank for anyone):
Any other details:
0