1. Wiki
  2. /Commands
  3. //setblock

/setblock

Put commands in your add-on as functions: GodCraft writes and packs them for you.Get GodCraft

/setblock: Places one block at a position, with options to keep or destroy what is there.

Syntax

<angle brackets> are required, [square brackets] optional. /setblock has 2 forms:

/setblock <position: position> <tileName: block> <blockStates: block_state_array> [oldBlockHandling: setblockmode]
/setblock <position: position> <tileName: block> [oldBlockHandling: setblockmode]

Commands: Commands

We use cookies to improve your experience and analyse site traffic. Learn more