Skip to content

Commit

Permalink
v. 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Warhead51707 committed May 19, 2024
1 parent 89aa659 commit c9322fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BP/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
{
"module_name": "@minecraft/server",
"version": "1.12.0-beta"
"version": "1.11.0-beta"
},
{
"module_name": "@minecraft/server-ui",
Expand Down
11 changes: 3 additions & 8 deletions BP/scripts/JigsawBlockBedrock/src/generator/jigsaw_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ world.afterEvents.entityLoad.subscribe(async event => {
if (playerPlaced.x == block.location.x && playerPlaced.y == block.location.y && playerPlaced.z == block.location.z) return
}

if (data.level == 0) {
block.setType(data.turnsInto)
return
}

generate(event.entity)
} catch { }
}, 3)
Expand Down Expand Up @@ -76,7 +71,7 @@ export async function generate(source: Entity) {

return
}

const maxLevels: number = Math.floor(data.levels)

if (data.level >= maxLevels) {
Expand All @@ -85,7 +80,7 @@ export async function generate(source: Entity) {

return
}

targetPool = await getTemplatePool(targetPool.fallback)

if (targetPool == undefined) {
Expand Down Expand Up @@ -437,7 +432,7 @@ export async function getPlacement(position: Vector3, dimension: Dimension, data
}

if (targetPool.fallback == undefined) return null

const fallbackPool = await getTemplatePool(targetPool.fallback)

if (fallbackPool == undefined) return null
Expand Down

0 comments on commit c9322fe

Please sign in to comment.