Replies: 9 comments 2 replies
-
|
There was script example for automatic wheat farming, but it is for cheatutils v2: It will require few adjustments for v3, since syntax was changed. If you need delay you can just add condition like this in the beginning: if (game.getTicks() % 10 != 0) {
return;
}It can be possible to add ability to code automatic spawn proofing, I just need to expose method that returns light level for block coordinates. And for entities interactions I think it is not currently possible. |
Beta Was this translation helpful? Give feedback.
-
|
Light level would be nice, but not strictly necessary. Might be useful to check for spots that are more than 1 block of air above though. I had trouble checking to see if I could/needed to place a block in cases where it wasn't air, but was spawnable (occupied by grass or flowers, for example), or wasn't full (I think soul sand is spawnable). With regard to the farm example, can I just use something like |
Beta Was this translation helpful? Give feedback.
-
|
There is no such methods. Block Automation gives you more high level methods. I rewrote script for v3: |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I think the scripting engine is great, really powerful and flexible. Would it be possible to expand to add methods to use items in the player's hands? Also, if you do add a light-level check, it would be possible to only plant on blocks that are light enough to grow. |
Beta Was this translation helpful? Give feedback.
-
|
I can probably add something like |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, that would be useful, because then I could use a tool with fortune to increase harvest (like carrots and potatoes), and have a stack in the offhand to replant. Plus, since you're example is checking for farmland, I could expand the example to check "if block is soul sand and player hand is nether wart" before planting. That would allow for lots of options: all the crops, nether wart, sugar cane, even bamboo. Could also check if block is a melon or pumpkin for breaking. |
Beta Was this translation helpful? Give feedback.
-
|
You already have |
Beta Was this translation helpful? Give feedback.
-
|
Ok, this works pretty well. Can the It would be nice to be able to simply "useOffHand" for planting - that way whatever the player is holding gets planted rather than having to modify the script based on what is getting farmed. Also, is there a way to bind the blockAutomation to a toggle? |
Beta Was this translation helpful? Give feedback.
-
|
well, another way to handle it is to use "tags", though I don't understand their support completely. For example, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the past, I've used a mod called "AutoHarvestMod". It attempts to do exactly what it sounds like - break all mature crops in reach, on the same level as your feet, as well as mushrooms & berries. It will also replant with whatever is in your hand. Additional functionality includes: shearing any sheep within reach, feeding any adult (breedable) animals that match the food you're holding, break grass (and optionally flowers) to get seeds. Is this something that could be added to "automation"? It includes a delay as some server detect too many packets coming in.
I also modified it to add a spawn-proofing function which is really helpful. Basically it looks for spawnable surfaces within reach (though not necessarily visible), and places something on it (button, slab, carpet, pressureplate, etc). This is tremendously useful because you don't have to see what you're doing. It also works while flying, so you can just fly around the nether and spawnproof those hard to reach places (like on the ceiling).
How hard would this be? Is there already code that can search in a small area around the player that could be leveraged?
Beta Was this translation helpful? Give feedback.
All reactions