Skip to content

Commit

Permalink
- Made features accept block references
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix committed Mar 3, 2025
1 parent 8c730e6 commit 14d2dc0
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"fill_with": {
"title": "Fill With",
"description": "Reference to the block to fill the cave with.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"width_modifier": {
"title": "Width Modifier",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"ore_block": {
"title": "Ore Block",
"description": "Reference to the block to fill the cave with.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"max_empty_corners": {
"title": "Max Empty Corners",
Expand Down
12 changes: 6 additions & 6 deletions source/behavior/features/features/minecraft.geode_feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,31 +70,31 @@
"title": "Filler",
"type": "string",
"description": "The block to fill the inside of the geode.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"inner_layer": {
"title": "Inner Layer",
"type": "string",
"description": "The block that forms the inside layer of the geode shell.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"alternate_inner_layer": {
"title": "Alternate Inner Layer",
"type": "string",
"description": "The block that has a chance of generating instead of inner_layer.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"middle_layer": {
"title": "Middle Layer",
"type": "string",
"description": "The block that forms the middle layer of the geode shell.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"outer_layer": {
"title": "Outer Layer",
"type": "string",
"description": "The block that forms the outer shell of the geode.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"inner_placements": {
"title": "Inner Placements",
Expand All @@ -104,7 +104,7 @@
"items": {
"title": "Block Reference",
"description": "A block that may be replaced during placement.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json.json"
}
},
"min_outer_wall_distance": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"title": "Plant Body Block",
"description": "Plant body block.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
{
"title": "Age",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"title": "Places Block",
"description": "Reference to the block to be placed.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"search_range": {
"title": "Search Range",
Expand Down Expand Up @@ -51,7 +51,7 @@
"items": {
"title": "Block",
"description": " A list of blocks that the block in this feature can be placed on. Omit this field to allow any block to be placed on.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"title": "Identifier",
"description": "Reference to the block to fill the cave with.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"width_modifier": {
"title": "Identifier",
Expand Down
4 changes: 2 additions & 2 deletions source/behavior/features/features/minecraft.ore_feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"places_block": {
"title": "Places Block",
"description": "Reference to the block to be placed.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"may_replace": {
"title": "May Replace",
"description": "A list of blocks that may be replaced during placement. Omit this field to allow any block to be replaced.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"places_block": {
"title": "Places Block",
"description": "Reference to the block to be placed.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"placement_radius_around_floor": {
"title": "Placement Radius Around Floor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"definitions": {
"block_side": {
"oneOf": [
{ "title": "Block", "description": "Reference to the block it may attach to.", "type": "string", "$ref": "../../../general/block/identifier.json" },
{ "type": "array", "items": { "title": "Block", "description": "Reference to the block it may attach to.", "type": "string", "$ref": "../../../general/block/identifier.json" } }
{ "title": "Block", "description": "Reference to the block it may attach to.", "type": "string", "$ref": "../../../general/block/reference.json" },
{ "type": "array", "items": { "title": "Block", "description": "Reference to the block it may attach to.", "type": "string", "$ref": "../../../general/block/reference.json" } }
]
}
},
Expand All @@ -22,7 +22,7 @@
"title": "Places Block",
"description": "Reference to the block to be placed.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
{
"title": "Places Block",
Expand All @@ -34,7 +34,7 @@
"description": "Reference to the block to be placed.",
"type": "array",
"items": [
{ "title": "Block", "description": "Reference to the block to be placed.", "$ref": "../../../general/block/identifier.json" },
{ "title": "Block", "description": "Reference to the block to be placed.", "$ref": "../../../general/block/reference.json" },
{
"title": "Weight",
"description": "Random weight of this block. A higher number will increase the probability of this block to be picked during placement.",
Expand Down Expand Up @@ -113,7 +113,7 @@
"title": "Block",
"description": "A block that may be replaced during placement. Omit this field to allow any block to be replaced.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"items": {
"title": "Block",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"block_whitelist": {
Expand All @@ -70,7 +70,7 @@
"items": {
"title": "Block",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
}
}
Expand Down
36 changes: 18 additions & 18 deletions source/behavior/features/features/minecraft.tree_feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"title": "Decoration Block",
"description": "The block used for decorating the trunk.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"num_steps": {
"title": "Num Steps",
Expand Down Expand Up @@ -228,7 +228,7 @@
"hanging_block": {
"title": "Hanging Block",
"description": "The block to be used as a hanging block.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"hanging_block_placement_chance": {
"title": "Hanging Block Placement Chance",
Expand Down Expand Up @@ -380,7 +380,7 @@
"title": "Leaf Block",
"description": "The block thata forms the canopy of the tree.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"trunk_width": {
"title": "Trunk Width",
Expand Down Expand Up @@ -415,7 +415,7 @@
"title": "Decoration Block",
"description": "The block used for decorating the trunk.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"num_steps": {
"title": "Num Steps",
Expand All @@ -440,7 +440,7 @@
"title": "Trunk Block",
"description": "The block that forms the tree trunk.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"properties": {
Expand All @@ -450,10 +450,10 @@
"base_block": {
"title": "Base Block",
"oneOf": [
{ "$ref": "../../../general/block/identifier.json" },
{ "$ref": "../../../general/block/reference.json" },
{
"type": "array",
"items": { "title": "Block", "$ref": "../../../general/block/identifier.json" }
"items": { "title": "Block", "$ref": "../../../general/block/reference.json" }
}
]
},
Expand All @@ -469,7 +469,7 @@
"description": "List of blocks that the base cluster of a tree can replace.",
"type": "array",
"items": {
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"num_clusters": {
Expand All @@ -491,23 +491,23 @@
"description": "List of blocks where a tree can grow on.",
"type": "array",
"items": {
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"may_replace": {
"title": "May Reaplce",
"description": "List of blocks that a tree can replace.",
"type": "array",
"items": {
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"may_grow_through": {
"title": "May Grow Through",
"description": "List of blocks that a tree can grow through.",
"type": "array",
"items": {
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"acacia_trunk": {
Expand Down Expand Up @@ -1131,7 +1131,7 @@
"title": "Decoration Block",
"description": "The block used for decorating the trunk.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"num_steps": {
"title": "Num Steps",
Expand Down Expand Up @@ -1247,7 +1247,7 @@
"hanging_block": {
"title": "Hanging Block",
"description": "The block to be used as a hanging block.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"hanging_block_placement_chance": {
"title": "Hanging Block Placement Chance",
Expand Down Expand Up @@ -1452,7 +1452,7 @@
"title": "Root Block",
"description": "Block used for roots.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"above_root": {
"title": "Above Root",
Expand All @@ -1469,19 +1469,19 @@
"title": "Above Root Block",
"description": "The block placed on the top of the roots.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"muddy_root_block": {
"title": "Muddy Root Block",
"description": "The block used for muddy roots.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"mud_block": {
"title": "Mud Block",
"description": "The block used to determine if a muddy root should be placed.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"y_offset": {
"title": "Y Offset",
Expand All @@ -1493,7 +1493,7 @@
"description": "List of blocks that a root can grow through.",
"type": "array",
"items": {
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"root_decoration": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"fill_with": {
"title": "Fill With",
"description": "Reference to the block to fill the cave with.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"width_modifier": {
"title": "Width Modifier",
Expand Down Expand Up @@ -73,7 +73,7 @@
"replace_air_with": {
"title": "Replace Air With",
"description": "Reference to the block to replace air blocks with.",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"items": {
"title": "Replace Block",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
}
},
"ground_block": {
"title": "Ground Block",
"description": "Block used to create a base for the vegetation patch.",
"type": "string",
"$ref": "../../../general/block/identifier.json"
"$ref": "../../../general/block/reference.json"
},
"vegetation_feature": {
"title": "Vegetation Feature",
Expand Down

0 comments on commit 14d2dc0

Please sign in to comment.