๐งตStringBlock Mechanic
STRINGBLOCK-type allows for up-to 127 custom blocks.
One per custom_variation
Another quirk with this CustomBlock is that it has 2 different hitbox-states All variations after 64 will have a smaller hitbox than those before.
How does it work?
This is a type of CustomBlock best aimed at plants, rocks and other foliage. It uses the vanilla TripWire block and therefore will disable all normal behaviour TripWires might have.
How do I create a stringblock?
Nexo Resourcepack configuration
Below is an example of how to configure the model/texture to use.
block/cross
is what normal vanilla plants use and allows for converting a 2d-texture into a block.
If you want an example, look at RoseBushes in-game.
StringBlock Mechanic Configuration
To use this mechanic you need to tell nexo which model to use (to use the generated one, just put the id name of your item).
Then you need to use custom_variation that is not already used by another decoration.
You can also configure the hardness of the block, which specifies how long a block should take to break.
drop.best_tool
allows you to specify which tool should be best.
An example would be PICKAXE for a small stone
Minor sub-mechanics
Stringblocks also have some additional properties.
placeable_on_water
allows you to place it on water like Lilypads
is_tall
makes the customblock have a double hitbox, much like Tall Grass
random_place
takes a list of strings representing other stringblock-mechanics.
This will then place a random one of these when the "parent" is placed
Sapling
You can also add some randomness to the growth, or just increase the delay between checks.
Go into mechanics.yml
and under stringblock-mechanic, adjust sapling_growth_check_delay
This is in ticks, so 20 = 1 second.
BlockLocker
You can use this to allow protection via BlockLocker Valid protectionTypes are CONTAINER, DOOR, ATTACHABLE
Last updated