$ npm install prismarine-registry
Creates an dynamic instance of node-minecraft-data.
const registry = require('prismarine-registry')('1.18')
registry.blocksByName['stone'] // See information about stone
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' ] }
}
Mapping to dimension data object containing dimension name
, minY
and height
.
© 2010 - cnpmjs.org x YWFE | Home | YWFE