Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameShowFake
Syntaxshowfake [<material>|.../cancel] [<location>|...] (players:<player>|...) (d:<duration>{10s})
Short DescriptionMakes the player see a block change that didn't actually happen.
Full DescriptionMakes the player see a block change that didn't actually happen.
This means that the server will still register the block being what it was before the command,
and players not included in the command will still see the original block.

You must specify a location (or list of locations), and a material (or list of materials).
The material list does not have to be of the same size as the location list (materials will be repeated automatically).

Optionally, specify a list of players to show the change to.
If unspecified, will default to the linked player.

Optionally, specify how long the fake block should remain for.
If unspecified, will default to 10 seconds.
After the duration is up, the block will revert back to whatever it really is (on the server-side).

Note that while the player will see the block as though it were real, the server will have no knowledge of this.
This means that if the player, for example, stands atop a fake block that the server sees as air, that player will be seen as flying.
The reverse applies as well: if a player walks through fake air (that is actually solid), the server will see a player walking through walls.
This can easily lead to players getting kicked by anti-cheat systems or similar results.
You can enable the player to walk through fake air via Mechanism:PlayerTag.noclip.
Note as well that some clientside block effects may occur (eg fake fire may appear momentarily to actually ignite things, but won't actually damage them).

Warning: extremely complex chunks (those with a significant variety of block types in a small area) might not be able to retain fake blocks over time properly.
Related Tags<PlayerTag.fake_block_locations> Returns a list of locations that the player will see a fake block at, as set by Command:showfake or connected commands.
<PlayerTag.fake_block[<location>]> Returns the fake material that the player will see at the input location, as set by Command:showfake or connected commands. (...)
Usage Example
# Use to place a fake gold block at where the player is looking
- showfake gold_block <player.cursor_on>
Usage Example
# Use to place a stone block right on player's head, that only stays for a second.
- showfake stone <player.location.add[0,1,0]> duration:1s
Usage Example
# Use to place fake lava that the player is standing in, for all the server to see
- showfake lava <player.location> players:<server.online_players>
Synonyms (Search Aid)fakeblock
Groupplayer
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/ShowFakeCommand.java#L31