Skip to content

Bed

Messages related to using a bed bed

🌍 Localization

📂 Path localizations → language.yml → message.bed

⚖️ Default

yml
bed:
  no-sleep: "<fcolor:1>🛌 Вы можете спать только ночью или во время грозы"
  not-safe: "<fcolor:1>🛌 Вы не можете уснуть, пока рядом есть монстры"
  obstructed: "<fcolor:1>🛌 Эта кровать заблокирована"
  occupied: "<fcolor:1>🛌 Эта кровать занята"
  too-far-away: "<fcolor:1>🛌 Вы не можете уснуть, кровать слишком далеко"
yml
bed:
  no-sleep: "<fcolor:1>🛌 You can sleep only at night or during thunderstorms"
  not-safe: "<fcolor:1>🛌 You may not rest now; there are monsters nearby"
  obstructed: "<fcolor:1>🛌 This bed is obstructed"
  occupied: "<fcolor:1>🛌 This bed is occupied"
  too-far-away: "<fcolor:1>🛌 You may not rest now; the bed is too far away"

no-sleep

Message displayed when sleeping is not allowed due to it being daytime

not-safe

Message displayed when sleeping is not allowed due to nearby monsters

obstructed

Message displayed when the bed is obstructed by blocks

occupied

Message displayed when the bed is occupied by someone else

too-far-away

Message displayed when the bed is too far away

⚙️ Setting

📂 Path message.yml → bed

⚖️ Default

yml
bed:
  enable: true
  destination:
    type: ACTION_BAR
    times:
      stay: 60
  sound:
    enable: false

enable

Enables or disables the functionality of the module

destination

Where the message will be sent

HOW TO CHANGE THE DESTINATION?

Replace the value type: here and restart FlectonePulse using the /flectonepulse reload command. Additional settings will appear automatically.

TypeExplanationRequires additional configuration?
ACTION_BARMessage above the player's inventoryYes
BOSS_BARMessage at the top of the screenYes
BRANDMessage in F3No
CHATMessage in the chatNo
TITLEFull-screen messageYes
SUBTITLEFull-screen message (bottom line)Yes
TAB_HEADERMessage in TAB (top)No
TAB_FOOTERMessage in TAB (bottom)No
TOASTMessage in the top-right corner (achievement)Yes
Configuration for ACTION_BAR
yaml
destination:
  type: ACTION_BAR
  times:
    stay: 60

times

FieldExplanation
stayTime in ticks to hold the message
Configuration for BOSS_BAR
yaml
destination:
  type: BOSS_BAR
  duration: 100
  health: 1.0
  overlay: PROGRESS
  color: BLUE
  play-boos-music: false
  create-world-fog: false
  darken-screen: false

duration

Duration of the message display

health

How full the boss bar will be

overlay

TypeExplanation
PROGRESSSingle line
NOTCHED_6Divided into 6 parts
NOTCHED_10Divided into 10 parts
NOTCHED_12Divided into 12 parts
NOTCHED_20Divided into 20 parts

color

Display color

Type
PINK
BLUE
RED
GREEN
YELLOW
PURPLE
WHITE

play-boos-music

Whether music will play with the message

create-world-fog

Whether fog will appear with the message

darken-screen

Whether the screen will darken with the message

Configuration for TITLE (or SUBTITLE)
yaml
destination:
  type: TITLE (or SUBTITLE)
  subtext: ""
  times:
    fade-in: 20
    stay: 60
    fade-out: 20

subtext

Message for the second part of the display. For example, if TITLE is selected, subtext will be displayed below it, and vice versa.

times

FieldExplanation
fade-inTime in ticks for the message to appear
stayTime in ticks to hold the message
fade-outTime in ticks for the message to disappear
Configuration for TOAST
yaml
destination:
  type: TOAST
  icon: "minecraft:diamond"
  style: TASK

icon

Achievement icon, which can be any Minecraft item (must specify the full path)

style

Achievement type (TASK regular, GOAL goal, CHALLENGE challenge)

WARNING

May cause delays, so not recommended for use

sound

Sound playback

FieldTypeExplanation
enablebooleanEnables sound functionality
volumefloatSound volume from 0 to 1.0
pitchfloatSound pitch from 0 to 1.0
categoryStringCategory from MASTER, MUSIC, RECORD, WEATHER, BLOCK, HOSTILE, NEUTRAL, PLAYER, AMBIENT, VOICE
nameStringSound name, for example minecraft:entity.llama.spit

HOW TO USE SOUND?

Replace false with true and restart FlectonePulse using the /flectonepulse reload command. Additional sound settings will appear AFTER RELOADING.

The sound configuration will look like this:

yaml
sound:
  enable: true
  volume: 1.0
  pitch: 1.0
  category: "HOSTILE"
  name: "minecraft:entity.llama.spit"

🔐 Permissions

📂 Path permission.yml → message.bed

⚖️ Default

yml
bed:
  name: "flectonepulse.module.message.bed"
  type: TRUE
  sound:
    name: "flectonepulse.module.message.bed.sound"
    type: TRUE

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSENot available to anyone, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to not server operators

sound

Permission to use sound