From d6483274c990770881ea3312f12116e1019c05b3 Mon Sep 17 00:00:00 2001 From: PavelDobCZ23 Date: Wed, 14 Dec 2022 23:05:57 +0100 Subject: [PATCH] fsould campfires now work too --- scripts/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/main.js b/scripts/main.js index f0aee37..9550cad 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -9,7 +9,9 @@ system.runSchedule(() => { try { const blockLocation = new BlockLocation(Math.floor(entity.location.x),Math.floor(entity.location.y),Math.floor(entity.location.z)); const blockStandingIn = dimension.getBlock(blockLocation); - if (blockStandingIn?.typeId === 'minecraft:campfire') entity.setOnFire(8); + if (blockStandingIn?.typeId === 'minecraft:campfire' || blockStandingIn?.typeId === 'minecraft:soul_campfire') { + entity.setOnFire(8); + } } catch {} } }