This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Stealing from Ender Storage Enderchest by changing the dyes?
Started by RubysownII, 24 July 2014 - 03:15 PMPosted 24 July 2014 - 05:15 PM
Hello An owner of a server i go on to and warning turtles are banned i think that elimnates that but he uses an advanced computer to change the dyes on a Enderchest (Ender storage) fast and when it changes it also takes out items from that enderchest Can anyone tell me how? im quite new at this ive been trying to figure it out and its been bugging me
Posted 24 July 2014 - 05:22 PM
Using OpenPeripheral, I believe it is possible to wrap EnderStorage ender chests, and change the frequency. You'd just wrap the chest as a peripheral, set the frequency, and use turtle.suck().
Please note, there is still a way to prevent your items from being taken(as switching the frequencies can be done by ANYONE with enough dyes). You can use a diamond now, to "lock" your chests to an additional frequency, one that only you can access. It is a per-block change, and turtles CANNOT set to that frequency.
Please note, there is still a way to prevent your items from being taken(as switching the frequencies can be done by ANYONE with enough dyes). You can use a diamond now, to "lock" your chests to an additional frequency, one that only you can access. It is a per-block change, and turtles CANNOT set to that frequency.
Posted 24 July 2014 - 05:26 PM
I created a program (although extremely inefficient) that does precisely as described, I use it on factions servers to steal from ender chests.
Depending on the TPS of the server and the dimension, the process usually takes around 30-45 minutes. It takes this long I think because it's essentially a ton of for loops and writing to a file.
The concept is very easy to program though.
Depending on the TPS of the server and the dimension, the process usually takes around 30-45 minutes. It takes this long I think because it's essentially a ton of for loops and writing to a file.
The concept is very easy to program though.
Posted 24 July 2014 - 05:31 PM
Another thing to note, is that if you have OpenPeripheral, banning turtles wouldn't stop people from doing this, as it can be done with just a regular computer.
EDIT: I'd just recommend adding a diamond to any chests you don't want to be raided, that way nobody but you can use the frequency.
EDIT: I'd just recommend adding a diamond to any chests you don't want to be raided, that way nobody but you can use the frequency.
Edited on 24 July 2014 - 03:32 PM
Posted 24 July 2014 - 06:44 PM
Jeez, that's indeed inefficient, mine takes 3-4 minutes even with bad tps…the process usually takes around 30-45 minutes.
Anyways, OpenPeripheral configs allows you to blacklist modid's from being included as "peripheral"
In config/OpenPeripheralCore.cfg, there's a place where you can put the modid to exclude.
####################
# integration
####################
integration {
# Don't register OpenPeripheral handler for those Tile Entitites (either name or class)
S:disableClasses <
>
# Disable integration with mods identified by modid, even when they are loaded
S:disableMods <
EnderStorage
>
}
This will still allow EnderChests to be interacted exactly like a chest, but will remove EnderChests' related function such as setFrequency().Edited on 24 July 2014 - 04:57 PM
Posted 24 July 2014 - 07:46 PM
So exactly how do i do this? any sorts of coding because i havnt relized that computercraft could interact with ender storage
Posted 24 July 2014 - 08:01 PM
And ninja they banned turtles so thats outta the question mind someone making a quick easy script that would use a advanced computer or regular computer right a enderchest beside it and a chest above it to extract items into the chest above the enderchest? sounds like much but im still confused
Posted 24 July 2014 - 08:11 PM
Well, we're not going to write these types of programs for you, as we have a standing rule against malicious code. Making something like this would be considered griefing, and we don't condone that.
Posted 24 July 2014 - 09:25 PM
At 4096 possible colour combinations it should take about a minute to cycle through them all and check if there's an item in them, clearing the inventory would possibly bump that to 2. For greater efficiency it's probably worth recording "used" colour combinations and just flicking between them for say 5 minutes between scans to see if people have changed their colour codes.
On the other hand, Diamond Locking is basically a must in SMP, especially given how often you see people select eg. Red-Red-Red or Orange-Orange-Orange for their nether lava pump tank, or Brown-Brown-Brown for their quarry. On the (quite small) server I play on, we each decided on a wool colour to be ours, so the first colour of any chest or tank indicates the player who owns it. But we still diamond lock them. Now I just need to get them to upgrade to CC1.6.3 so I can dye my turtles Badass Blue…
On the other other hand, don't be a dick and steal people's stuff out of Ender storage.
On the fourth hand, don't leave stuff in ender storage! It's a great mod for transport but, if not the worst, is close when it comes to actual storage. Stick a precision import bus on that bad boy and grab it into your AE system ASAP
On the other hand, Diamond Locking is basically a must in SMP, especially given how often you see people select eg. Red-Red-Red or Orange-Orange-Orange for their nether lava pump tank, or Brown-Brown-Brown for their quarry. On the (quite small) server I play on, we each decided on a wool colour to be ours, so the first colour of any chest or tank indicates the player who owns it. But we still diamond lock them. Now I just need to get them to upgrade to CC1.6.3 so I can dye my turtles Badass Blue…
On the other other hand, don't be a dick and steal people's stuff out of Ender storage.
On the fourth hand, don't leave stuff in ender storage! It's a great mod for transport but, if not the worst, is close when it comes to actual storage. Stick a precision import bus on that bad boy and grab it into your AE system ASAP
Posted 25 July 2014 - 01:43 AM
Dont worry i figured out how to do it thanks for the help!
Posted 25 July 2014 - 02:02 AM
That's no coding, it's just some text file, link my post to your server owner, maybe he'll change his decision.So exactly how do i do this? any sorts of coding because i havnt relized that computercraft could interact with ender storage
Posted 25 July 2014 - 02:07 AM
I believe his goal was to be the one to actually have the stealing program, not prevent against it.That's no coding, it's just some text file, link my post to your server owner, maybe he'll change his decision.