Skip to content

Commit

Permalink
fsould campfires now work too
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelDobCZ23 committed Dec 14, 2022
1 parent 18ecf49 commit d648327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}
}
Expand Down

0 comments on commit d648327

Please sign in to comment.