Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Block state provider: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 21: Line 21:
</div>
</div>


=== dual_noise_provider ===
=== dual_noise ===
Randomly chooses a block state according to two noise values.
Randomly chooses a block state according to two noise values.
<div class="treeview">
<div class="treeview">
Line 43: Line 43:
</div>
</div>


=== noise_provider ===
=== noise ===
Randomly chooses a block state according to a noise value.
Randomly chooses a block state according to a noise value.
<div class="treeview">
<div class="treeview">
Line 56: Line 56:
</div>
</div>


=== noise_threshold_provider ===
=== noise_threshold ===
Uses different block states when a noise value above or below the threshold.
Uses different block states when a noise value above or below the threshold.
<div class="treeview">
<div class="treeview">
Line 76: Line 76:
</div>
</div>


=== random_block_provider ===
=== random_block ===
Returns the default block state for a randomly chosen block.
Returns the default block state for a randomly chosen block.
<div class="treeview">
<div class="treeview">
Line 85: Line 85:
</div>
</div>


=== randomized_int_state_provider ===
=== randomized_int ===
Assigns a random value to an integer block property.
Assigns a random value to an integer block property.
<div class="treeview">
<div class="treeview">
Line 97: Line 97:
</div>
</div>


=== rotated_block_provider ===
=== rotated ===
Randomly rotates any block with {{cd|axis}} or {{cd|facing}} properties.
Randomly rotates any block with {{cd|axis}} or {{cd|facing}} properties.
<div class="treeview">
<div class="treeview">
Line 107: Line 107:
</div>
</div>


=== rule_based_state_provider ===
=== rule_based ===
Provides a block state depending on the current block(s) by matching a sequence of rules.
Provides a block state depending on the current block(s) by matching a sequence of rules.
<div class="treeview"><section begin="json format" />
<div class="treeview"><section begin="json format" />
Line 122: Line 122:
</div>
</div>


=== simple_state_provider ===
=== simple ===
Specifies a single block state directly
Specifies a single block state directly
<div class="treeview">
<div class="treeview">
Line 131: Line 131:
</div>
</div>


=== weighted_state_provider ===
=== weighted ===
Chooses a block state from a weighted list.
Chooses a block state from a weighted list.
<div class="treeview">
<div class="treeview">

Revision as of 11:05, 20 September 2026

Template:Exclusive A block state provider is used to provide a (potentially randomized) Minecraft:block and Minecraft:block state to be placed by Minecraft:configured features.

JSON format

Block state providers are defined using the following format:

Types

The following block state provider types exist.

copy_properties_provider

Copies common block state properties from the block at the evaluated position to the resulting state.

  • Template:Nbt: A block state provider
    • Template:Nbt: copy_properties_provider
    • Template:Nbt: Provides the block state which the copied properties are copied on top of. Only properties common between both the source and the target blocks will be copied.

dual_noise

Randomly chooses a block state according to two noise values.

noise

Randomly chooses a block state according to a noise value.

noise_threshold

Uses different block states when a noise value above or below the threshold.

random_block

Returns the default block state for a randomly chosen block.

randomized_int

Assigns a random value to an integer block property.

rotated

Randomly rotates any block with Template:Cd or Template:Cd properties.

rule_based

Provides a block state depending on the current block(s) by matching a sequence of rules.

<section begin="json format" />

simple

Specifies a single block state directly

weighted

Chooses a block state from a weighted list.

History

Template:Info needed section Template:HistoryTable

Navigation

Template:Navbox Java Edition technical

Minecraft:fr:Génération du monde personnalisée/Fournisseur d'état de bloc Minecraft:ja:ブロック状態プロバイダー Minecraft:ko:블록 상태 제공자 Minecraft:pt:Geração de mundo personalizado/provedor de estado de bloco Minecraft:ru:Натуральные декорации/Провайдер состояний блока Minecraft:uk:Постачальник стану блока Minecraft:zh:方块状态提供器