Proksea/node_modules/prismarine-registry
2024-07-05 00:09:37 +08:00
..
.github First commit :) 2024-07-05 00:09:37 +08:00
lib First commit :) 2024-07-05 00:09:37 +08:00
test First commit :) 2024-07-05 00:09:37 +08:00
.gitpod First commit :) 2024-07-05 00:09:37 +08:00
.gitpod.DockerFile First commit :) 2024-07-05 00:09:37 +08:00
example.js First commit :) 2024-07-05 00:09:37 +08:00
HISTORY.md First commit :) 2024-07-05 00:09:37 +08:00
index.d.ts First commit :) 2024-07-05 00:09:37 +08:00
index.js First commit :) 2024-07-05 00:09:37 +08:00
LICENSE First commit :) 2024-07-05 00:09:37 +08:00
package.json First commit :) 2024-07-05 00:09:37 +08:00
README.md First commit :) 2024-07-05 00:09:37 +08:00

prismarine-registry

NPM version Build Status Discord Try it on gitpod

Creates an dynamic instance of node-minecraft-data.

Usage

const registry = require('prismarine-registry')('1.18')

registry.blocksByName['stone'] // See information about stone

API

See minecraft-data API

mcpc

loadDimensionCodec / writeDimensionCodec

  • loads/writes data from dimension codec in login packet

.chatFormattingByName, .chatFormattingById (1.19+)

Contains mapping from chat type ID (numeric or string) to information about how the chat type should be formatted and what the relevant parameters are.

{
  'minecraft:chat': { formatString: '<%s> %s', parameters: [ 'sender', 'content' ] },
  'minecraft:say_command': { formatString: '[%s] %s', parameters: [ 'sender', 'content' ] },
  'minecraft:msg_command': { formatString: '%s whispers to you: %s', parameters: [ 'sender', 'content' ] },
  'minecraft:team_msg_command': { formatString: '%s <%s> %s', parameters: [ 'team_name', 'sender', 'content' ] },
  'minecraft:emote_command': { formatString: '* %s %s', parameters: [ 'sender', 'content' ] }
}

.dimensionsById, dimensionsByName (1.19+)

Mapping to dimension data object containing dimension name, minY and height.