import { world } from '@minecraft/server'
import { WorldProperties } from './world/utils/worldProperties.js'

import './blocks/mining.js'
import './blocks/placing.js'
import './blocks/broke.js'
import './blocks/placed.js'
import './items/attack.js'
import './items/used.js'
import './items/food.js'
import './items/usingOn.js'
import './world/tick.js'
import './entities/triggerEvent.js'
import './entities/death.js'
import './entities/join.js'
import './entities/leave.js'

// Tests
// import './tests/titleTest.js'
// import './tests/tickTest.js'
// import './tests/eventsTest.js'
// import './tests/scratchTest.js'
// import './tests/stickTest.js'
// import './tests/blazeRodTest.js'

// Sets the last loading time
world.setDynamicProperty(WorldProperties.lastLoadedTimestamp, Date.now())