Skip to content

Commit

Permalink
fix: new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
leaftail1880 committed Aug 27, 2024
1 parent 7a03350 commit 1a0e397
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/modules/commands/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const f = form((form, player) => {

type Rules = Partial<World['gameRules']>

const base: Rules = {
const base = {
commandBlocksEnabled: false,
spawnRadius: 0,
keepInventory: false,
Expand All @@ -31,21 +31,21 @@ const base: Rules = {
showRecipeMessages: true,
recipesUnlock: true,
naturalRegeneration: true,
doDayLightCycle: true,
doDayLightCycle: false,
doEntityDrops: true,
doFireTick: false,
doTileDrops: true,
doWeatherCycle: true,
}
} satisfies Rules

const ruleSets: Record<string, Rules> = {
const ruleSets: Record<string, Omit<Rules, keyof typeof base>> = {
'Безопасный\n§7Гриф отключен, тнт не взрывается': {
mobGriefing: false,
doMobLoot: false,
tntExplodes: false,
respawnBlocksExplode: false,
doMobSpawning: false,
showDeathMessages: true,
doWeatherCycle: false,

...base,
},
Expand All @@ -56,6 +56,7 @@ const ruleSets: Record<string, Rules> = {
tntExplodes: true,
respawnBlocksExplode: true,
showDeathMessages: false,
doWeatherCycle: true,

...base,
},
Expand Down

0 comments on commit 1a0e397

Please sign in to comment.