difficulty

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Difficulty

type Difficulty interface {
	// contains filtered or unexported methods
}

Difficulty represents the difficulty of a Minecraft world. The difficulty of a world influences all kinds of aspects of the world, such as the damage enemies deal to players, the way hunger depletes, whether hostile monsters spawn or not and more.

type Easy

type Easy struct{}

Easy difficulty has mobs deal less damage to players than normal and starvation won't occur if a player has less than 5 hearts of health.

type Hard

type Hard struct{}

Hard difficulty has mobs that deal above average damage to players. Starvation will kill players with too little food and monsters will get additional effects.

type Normal

type Normal struct{}

Normal difficulty has mobs that deal normal damage to players. Starvation will occur until the player is down to a single heart.

type Peaceful

type Peaceful struct{}

Peaceful difficulty prevents most hostile mobs from spawning and makes players rapidly regenerate health and food.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL