Jump to content

Undo Farmland?


PhotriusPyrelus

Recommended Posts

Removing farmland will destroy the block. There is no way to turn it back into soil; this is deliberate, to prevent players from gaming the soil-fertility mechanic. There is a mod that allows you to dig up farmland and get the soil block back, if you are OK with mods.

Edited by Philtre
Link to comment
Share on other sites

10 hours ago, Philtre said:

Removing farmland will destroy the block. There is no way to turn it back into soil; this is deliberate, to prevent players from gaming the soil-fertility mechanic. There is a mod that allows you to dig up farmland and get the soil block back, if you are OK with mods.

If farmland can save nutrients, it seems like placed soil blocks should be able to as well.  Couldn't a right-click function be added to the shovel on farm land to convert it back to soil without resetting the nutrients?

I guess strictly speaking, a player could still 'game' the mechanic, but that'd be a lot of work, using a shovel to turn it back to soil, digging it up, replacing it, and re-tilling it...

  • Cookie time 1
Link to comment
Share on other sites

1 hour ago, PhotriusPyrelus said:

If farmland can save nutrients, it seems like placed soil blocks should be able to as well.

At first glance, it may seem that way. But is farmland actually a block like any other? Or is it perhaps a special block, and the act of tilling soil changes not only the texture, but also completely redefines the way the block is handled under the hood?

The thing you have to keep in mind is that the entire world is made out of blocks. There are quite literally billions of them. And you need to save that world to disk, and stream it back at runtime to load in chunks as the player moves. So as a programmer, you have a vested interest in minimizing the amount of data required to define each individual block's properties. If you add one single number that all blocks must store, your world must save, load, and process an additional billion numbers during gameplay.

So how many numbers does farmland store? Three for the maximum nutrient levels. Three for the current nutrient level. Three for the amount of fertilizer applied. One for the current moisture level. And likely several additional data fields that aren't exposed to the player.

If you asked every single dirt block to store this information, you might well triple or quadruple the amount of data it would normally store. And while your field of a hundred-odd pieces of farmland will not have a performance impact - rest assured that tens of millions of dirt blocks certainly will.

  • Amazing! 1
Link to comment
Share on other sites

Yeah, good points.  x_x

EDIT:  What if it only held on to the nutrient data until it returned to its natural level?

A better solution might be if you could only use the proposed right-click shovel 'untill' function on a farmland tile that was at its maximum nutrient levels?

Edited by PhotriusPyrelus
Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.