Parameters
Parameters are defined anywhere in an outcome .json file when surrounded by {} brackets. They allow you to utilize values based on the block, breaking player, or world when the block is broken.
This outcome prints the message "Hello, {playerName} from {blockPos}! I can see you at {playerPos}!", where:
{playerName} is the player's name
{blockPos} is the block position
{playerPos} is the players's position
Parameters are organized into three types: String Parameters, Double Parameters, and Integer Parameters.
String Parameters
String Parameters can be used anywhere in an Outcome .json file. The Lucky Block Mod will replace any instance of a String parameter when it is executed in the world.
Double Parameters
Double Parameters can be used anywhere in an Outcome .json file. The Lucky Block Mod will replace any instance of a Double parameter with the resulting Double value when it is executed in the world.
Integer Parameters
Integer Parameters can be used anywhere in an Outcome .json file. The Lucky Block Mod will replace any instance of a Integer parameter with the resulting Integer value when it is executed in the world.
Last updated