3 posts
Posted 01 September 2015 - 10:03 PM
Firstly, im running tekkit lite, so the 1.4.7 version of minecraft.
I need a program that can be constantly running (in loaded chunks).
It needs to add 1 to every player online once every 60 seconds.
Once that score reaches 90, it runs a command (that I specify)
When that command runs (once and only once) it removes 90 from the score and they start back from 0.
Thanks
957 posts
Location
Web Development
Posted 02 September 2015 - 12:30 AM
I can't actually think of a way to do this in CC for MC 1.4
That is, if you 'd like the computer to track players individually.
It IS possible to apply the command to all players at the same time, every 90 minutes.
It would be much simpler to do this with a plugin. Perhaps you should check out Craftbukkit and Spigot to see if anything like this exists.
3 posts
Posted 02 September 2015 - 12:39 AM
I can't actually think of a way to do this in CC for MC 1.4
That is, if you 'd like the computer to track players individually.
It IS possible to apply the command to all players at the same time, every 90 minutes.
It would be much simpler to do this with a plugin. Perhaps you should check out Craftbukkit and Spigot to see if anything like this exists.
Yeah, id use command blocks and scoreboard normally, but neither of these things exist… so yeah. Theres no feature to assign individual players a value?
7083 posts
Location
Tasmania (AU)
Posted 02 September 2015 - 02:00 AM
Oh, you can certainly assign players a value. The trick is telling the computer which players are online in the first place.
ComputerCraft computers aim to mimic real ones. They don't know who exists in your Minecraft world, same as a real computer doesn't know who exists in the real world.
You could install a peripheral mod that'd allow you to hook up a sensor of some sort, but that's still not going to allow you to cover the whole world.
You could instead use some sort of check-in system - add 30 points to their score every time they trigger your sensor, but only allow them to do so once every half hour. It'd be easier to make suggestions with more details about what you're actually trying to do here.
You do have access to command blocks, by the way. If you tweak your ComputerCraft config to allow it, you can even have your computers wrap them as peripherals (allowing you to set and run Minecraft commands), and get boolean results back out of them via redstone pulses. Beats me if you could make a sensor out of that… It'd depend on which commands were available back then.
You'd want to encase such a setup within bedrock, however. The config option is there because once enabled, any player with physical access to a command block can use a ComputerCraft computer to do whatever they like with it.
3 posts
Posted 02 September 2015 - 02:48 AM
Oh, you can certainly assign players a value. The trick is telling the computer which players are online in the first place.
ComputerCraft computers aim to mimic real ones. They don't know who exists in your Minecraft world, same as a real computer doesn't know who exists in the real world.
You could install a peripheral mod that'd allow you to hook up a sensor of some sort, but that's still not going to allow you to cover the whole world.
You could instead use some sort of check-in system - add 30 points to their score every time they trigger your sensor, but only allow them to do so once every half hour. It'd be easier to make suggestions with more details about what you're actually trying to do here.
You do have access to command blocks, by the way. If you tweak your ComputerCraft config to allow it, you can even have your computers wrap them as peripherals (allowing you to set and run Minecraft commands), and get boolean results back out of them via redstone pulses. Beats me if you could make a sensor out of that… It'd depend on which commands were available back then.
You'd want to encase such a setup within bedrock, however. The config option is there because once enabled, any player with physical access to a command block can use a ComputerCraft computer to do whatever they like with it.
We have a system that we run on our network, each server has its own system and they all work at the same rate.
Basically every 10 minutes the console does two things, 1: it adds 10 points to the players "points score" and 2: setblocks a redstone block, this triggers the command "Testfor @a[score_points_min=90]". That outputs to a comparator. The command block has a redstone torch and dust to the side of the comparator so it resets the comparator every time it runs. The comparator points to a command block that runs the command "e addpoints @a[score_rp_min=90] 15" this adds to the players enjin point score. Then after that, a command block runs "scoreboard players remove @a[score_rp_min=90] rp 90]" this removes the points so the system doesn't pay out more then it should.
All it does is award 15 e points every 90 minutes a player is online.