Custom crops

Custom SOLID crops

This type of crops are related to crops that places a block, as PUMPKIN and MELON does.

Let's create a pumpkin seed that instead of placing a pumpkin block, it will place a ORANGE_WOOL (just because they are both orange, but you can select whatever you want)

  • Create the block with /ei create <id>

  • Select the material -> PUMPKIN_SEEDS

  • Create an activator CROP_PLACE_BLOCK

  • And you will see that we have 3 different zones of commands

    • Block commands is for running the commands from the block itself

    • Target Block commands the same as the last one but from the block PLACED itself (in this case, the pumpkin PLACED)

    • And owner commands the commands of the owner (if you want something to happen to the owner when this crop grows and place a block)

  • So, in target block commands we will add the command SETBLOCK ORANGE_WOOL

  • And then save and test

Custom crops on grow tick

If want something to happen each time the crop grows, as the seeds do, carrots, potatoes, etc this is the type of block that you want

Let's create a carrots that each time it grows has a 50% of dropping a golden carrot

  • First let's create the block /eb create <id>

  • Let's set the material to CARROT

  • Let's create the activator CROP_GROW

  • And in the commands using RANDOM RUN (command already explained in utilities commands) let's use the DROPITEM command to drop a golden carrot with 50% of probability.

And that's it, let's save and test

Last updated