-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.1.0 - Build For Preview, Initial Commit
- Loading branch information
0 parents
commit cfe5141
Showing
6 changed files
with
757 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"metadata": { | ||
"authors": ["PavelDobCZ23"], | ||
"license": "GNU GPL v3 + The Commons Clause", | ||
"url": "https://www.icecraftstudio.repl.co" | ||
}, | ||
"format_version": 2, | ||
"header": { | ||
"description": "Campfires now set you and the entites on fire like they've used to! §9Made by PavelDobCZ23", | ||
"name": "On Campfire - On Fire", | ||
"uuid": "03862db4-c4b9-42e1-b57b-daf391a5a05a", | ||
"version": [ 0, 1, 0 ], | ||
"min_engine_version": [ 1, 19, 60 ] | ||
}, | ||
"modules": [ | ||
{ | ||
"description": "On Campfire - On Fire [BP] - data module", | ||
"type": "data", | ||
"uuid": "2d602755-1a04-49fc-995c-0fb98b62a494", | ||
"version": [0, 1, 0] | ||
}, | ||
{ | ||
"description": "On Campfire - On Fire [BP] - script module", | ||
"type": "script", | ||
"language": "javascript", | ||
"uuid": "514c9ddc-fd40-4189-9b10-bfc358089a33", | ||
"version": [0, 1, 0], | ||
"entry": "scripts/main.js" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"module_name": "@minecraft/server", | ||
"version": "1.1.0-beta" | ||
} | ||
], | ||
"subpacks": [ | ||
{ | ||
"folder_name": "performance", | ||
"name": "§aPerformance Mode", | ||
"memory_tier": 0 | ||
}, | ||
{ | ||
"folder_name": "normal", | ||
"name": "Normal Mode", | ||
"memory_tier": 0 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { system, world, BlockLocation } from '@minecraft/server'; | ||
import { scheduledTicks } from './config/config'; | ||
const DIMENSION_LIST = ['minecraft:overworld','minecraft:nether','minecraft:the_end']; | ||
|
||
system.runSchedule(() => { | ||
for (let index = 0;index < DIMENSION_LIST.length;index++) { | ||
const dimension = world.getDimension(DIMENSION_LIST[index]); | ||
for (const entity of dimension.getEntities()) { | ||
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); | ||
} catch {} | ||
} | ||
} | ||
},scheduledTicks); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const scheduledTicks = 4; | ||
export { scheduledTicks } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const scheduledTicks = 20; | ||
export { scheduledTicks } |