Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Block.fromString #71

Merged
merged 5 commits into from
Mar 4, 2023
Merged

added Block.fromString #71

merged 5 commits into from
Mar 4, 2023

Conversation

sertonix
Copy link
Contributor

eg:

const BlockJava = require('prismarine-block')('1.18')
const BlockPe = require('prismarine-block')('pe_1.18.0')
const lit_candle_java = BlockJava.fromString('minecraft:candle[lit=true]',0)
const lit_candle_pe = BlockPe.fromString('minecraft:candle["lit":true]',0)

@rom1504
Copy link
Member

rom1504 commented Sep 30, 2022

looks good

can you also add it in doc ?

@rom1504 rom1504 merged commit f55ebde into PrismarineJS:master Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants