Block states
This is not the best way, but for now its an option if you REALLY need it.
If you'd like your EB to have a specific state, for example:
- A Lit lamp
- A Trapdoor in a specific position or looking into a specific direction
- A custom note block
- A lit furnace
- etc
You have to create your EB, set the things you want, etc and then create an activator PLAYER_PLACE

After that, go to commands and add a setblock command, in my case I want to setblock a lit furnace, so the setblock command will refeer to that block.
execute at %player% run setblock %block_x_int% %block_y_int% %block_z_int% furnace[lit=true]
Its a normal setblock command, if don't know how it works you should take a look at "how to use vanilla commands"
The example is placing a lit furnace, to place another stuff the block will have different nbt, you can check them in https://minecraft.fandom.com/wiki/Tutorials/Command_NBT_tags
So once I place it, even though in my inventory it looks like a normal furnace

Once I place it, it looks like:

And that's it, the idea is ready, now there are some problems that we will tell you below.
Now, actually it only has one problem, the direction, right now it doesn't keep the direction, so you'll need to create 4 activators using direction conditions to place it correctly.
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
- 425 servers running it right now (bStats)
- 14 downloads on SPlugins
€14.49
one-time, lifetime updates