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
Try it now
Copy this into ExecutableBlocks and reload
From the SCore custom commands reference. Paste it into a config, run the plugin's reload command, and you have a working starting point to edit.
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
playerCommands:
- ABSORPTION amount:5 time:200 # Gives the player absorption
activator1: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of target
targetCommands:
- ABSORPTION amount:5 time:200 # Gives the target absorptionPlugin used on this page
ExecutableBlocksCustom blocks that react to players, with activators and commands.
- 5.0/5 from 8 reviews
- 422 servers running it right now (bStats)
- 14 downloads on SPlugins
€14.49
one-time, lifetime updates