suppergerrie2 / ModJam5

Minecraft mod for ModJam5
GNU General Public License v3.0
5 stars 4 forks source link

Add a way to select working area for farmer drones #14

Closed Haze33E closed 5 years ago

Haze33E commented 6 years ago

No idea if this is possible just an idea I had for crop farm and tree farm drones.

It would be great if there was an item we could place on the ground to establish their zone of operation. Like imagine placing 4 torches (just an example) and the area between the torches is where the drones are allowed to plant and harvest crops/chop trees. This would allow you to have their home/chest in an area outside the farming area. But you'd need to have separate "torches" for crop farm drones and tree farm drones. Then make it so the drones only farm in the nearest farm area to their home so drones don't run off to a different farming area.

This would allow for larger or smaller farms and to not have chests in the middle of them.

suppergerrie2 commented 6 years ago

Could be an interesting mechanic. I'd probably make it so the chest has to be next to a torch tho. At the moment I am not sure if it would be better than how I am doing it now. I now have a range exactly the correct size (so the water is never to far away).

Haze33E commented 6 years ago

Yeah I know you made their home area to match the water dispersal but it limits the size of a crop farm. From observing the crop farm drones most of the time they are just sitting on their chest with nothing to do. If they had to manage a larger crop field they would actually be harvesting and planting more often raising productivity.

Right now making an automated farm using villagers is more productive then using the crop farm drones. Just because they are limited in the area they are able to plant and harvest crops. The tree farm drones don't have the problem of productivity. I just don't like having the chests in the farm taking up space.

suppergerrie2 commented 6 years ago

The size is limited because I haven't added upgrades yet. The code supports bigger sizes, but only specific ranges.

Also the chest doesn't take up space, you couldn't place seeds there because of the water.

Haze33E commented 6 years ago

If I had water around the outside edge of a farm the chest would still take up space that could be used for crops. I know it's only a single block but it still takes space. If the crop farm drones functioned more like a brown coat villager where they were able to pick up items from the ground then a chest wouldn't be needed. And when I say pick up items from the ground I don't mean actively picking them up like hauler drones but like a player or villager where it's an automatic radius pickup.

suppergerrie2 commented 6 years ago

You'd still need a chest for when their inventory is full. But I'll show you later today how big the area will be with 1 range upgrade

suppergerrie2 commented 6 years ago

image This would be the area after 1 area/range upgrade. A lot bigger!

suppergerrie2 commented 6 years ago

image With the water around it the spot in the middle can still not be used for planting seeds, so the chest doesn't use planting space.

Haze33E commented 6 years ago

That increased farm size is nice it would be about the perfect size. And I know what you mean about the chest not taking space but doesn't that have more to do with the coding for the drone. Some line of code telling the drone to ignore tilling the dirt in the home location.

suppergerrie2 commented 6 years ago

I placed farmland in the whole square and that block in the middle turned to dirt because it didn't have water. (https://www.youtube.com/watch?v=-qsKB5RwTac&feature=youtu.be)

Haze33E commented 6 years ago

Oh yeah I forgot wet farmland only forms 4 blocks from a water source the middle is 5 blocks from the edge. I've been awake for a while so my mind is a little foggy.

suppergerrie2 commented 5 years ago

I think this issue has been solved with the addition of the upgrade system.